| Summary: | FileReader should check for ECF UserCancelledException and throw an IOException with cause OperationCancelledException | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | David Green <greensopinion> | ||||
| Component: | p2 | Assignee: | Pascal Rapicault <pascal> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | matthew, pascal | ||||
| Version: | unspecified | Flags: | pascal:
review+
|
||||
| Target Milestone: | 3.6 RC2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 312005 | ||||||
| Attachments: |
|
||||||
Created attachment 169158 [details]
patch to wrap UserCancelledException in an OperationCancelledException
I've applied the patch, ran the test suite and looked at the callers and I don't see any problems with the changes. I've reviewed the patch and committed it. Wow, thanks for the super-fast fix! |
org.eclipse.equinox.internal.p2.repository.FileReader provides an InputStream via this method: org.eclipse.equinox.internal.p2.repository.FileReader.read(...).new InputStream() {...}.checkException() checkException() should look at the cause and handle UserCancelledException, wrapping it in an OperationCancelledException. Patch attached.