Woodstox
  1. Woodstox
  2. WSTX-275

System ID with pipe character throws URISyntaxException

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.5
    • Labels:
      None
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      Some CMSs on Windows export XML documents in such a way that the DTD's System ID contains a '|' to "escape" the ':' after the drive letter, e.g. "file:///c|/path/to/dtd". Of course, the '|' character is not a valid URI character and therefor processing such XML with Woodstox is currently not possible (throws URISyntaxException)

      It would be great if you could extend com.ctc.wstx.util.URLUtil.uriFromSystemId(String) such that it can System IDs like the above.

      1. patch.java
        1 kB
        Robert Barbey
      2. URLUtilTest.java
        0.6 kB
        Robert Barbey

        Activity

        Hide
        Tatu Saloranta added a comment -

        Apologies for slow processing; added suggested work-around, will be in 4.1.5 (won't backport in 4.0)

        Show
        Tatu Saloranta added a comment - Apologies for slow processing; added suggested work-around, will be in 4.1.5 (won't backport in 4.0)

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Robert Barbey
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: