Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-747

Can't open XML files with URI reserved characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Incomplete
    • 2.4.0
    • None
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 20715

    Description

      Using a SAXParser.parse function that takes an input file of type java.io.File
      some files with valid Windows file names can't be opened. In particular, if
      there is a # in the file name like: File#2.xml.

      A related issue is the parse functions that take an input of type String which
      is to contain a URI. In that case, it accepts the # if it is escaped with a %
      but it doesn't convert +'s to spaces as the java.net.URLEncoder class does. (By
      the way, a + is valid in a file name, so there's really no solution to this
      second issue. Just fix the first one (java.io.File) and I'll be happy)

      As a result of these two things, there is no parse command that will accept all
      valid MS Windows file names.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgood@edeploy.com Matthew Good
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: