Bug 1066199
| Summary: | Missing stream close on UrlResource.cacheStream() | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Toshiya Kobayashi <tkobayas> | ||||
| Component: | BRE (Expert, Fusion) | Assignee: | Mario Fusco <mfusco> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | BRMS 5.3.1 | CC: | nwallace | ||||
| Target Milestone: | GA | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2025-02-10 03:35:07 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1080634 | ||||||
| Attachments: |
|
||||||
|
Description
Toshiya Kobayashi
2014-02-18 01:47:07 UTC
Please wait for applying the above PR. I'll create another PR after BZ1075293 (https://github.com/droolsjbpm/drools/pull/322) is accepted. Created attachment 883571 [details] UrlResource.java Attached UrlResource.java which is written on top of https://github.com/droolsjbpm/drools/pull/322 Once the PR#322 is merged into 5.3.x branch, I can create a pull request for this BZ so feel free to let me know. But the change is only for UrlResource.cacheStream() so you may be able to commit referring this java file. I have changed cacheStream() to throw IOException but I'm not sure if it is a good idea. The original implementation catches and hides all Exceptions. Please review and choose the best way. The main purpose of this BZ is closing stream. Thanks! # Please note that we have to close FileOutputStream (fout.close()) before renaming (fi.renameTo(cacheFile)). If not, Windows fails to rename. Verified on 5.3.1.BRMS-P06. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |