Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-116

DataDictionary.readFromURL glitch when Java security policy restricts file system access

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.1.0
    • Component/s: None
    • 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.)

        Attachments

          Activity

            People

            • Assignee:
              admin Steve Bate
              Reporter:
              ryarran Rhys Yarranton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: