[QFJ-116] DataDictionary.readFromURL glitch when Java security policy restricts file system access Created: 06/Dec/06 Updated: 10/Jan/07 Resolved: 10/Jan/07 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | None |
Affects Version/s: | 1.0.3 |
Fix Version/s: | 1.1.0 |
Type: | Bug | Priority: | Default |
Reporter: | Rhys Yarranton | Assignee: | Steve Bate |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
JDK 1.5 |
Description |
readFromURL() tries the passed value as a file before it tries it as a resource. If there is a Java security policy enabled that restricts access to the file system, new FileInputStream() may throw AccessControlException, as opposed to the FileNotFoundException that is caught. As a workaround, we converted the resource name to a URL before calling the method. (URL is tried before file.) |