Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1325

JAXBParser does not ignore Unicode byte order mark

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.1.0
    • jclouds-core
    • None

    Description

      This prevents jclouds from deserializing some XML documents, specifially Azure Queue Storage list queues responses. Some background from svet:

      After digging deeper I found (1) which points to two JDK bugs (2) and (3). Turns out they fixed it at some point to consume the BOM but then reverted because it breaks backwards compatibility. Also of interest, the UTF character 0xFEFF is serialized as EF BB BF in the UTF-8 byte sequence (4).

      1. https://stackoverflow.com/questions/4897876/reading-utf-8-bom-marker
      2. http://bugs.java.com/view_bug.do?bug_id=4508058
      3. http://bugs.java.com/view_bug.do?bug_id=6378911
      4. http://www.unicode.org/faq/utf_bom.html#BOM

      Attachments

        Activity

          People

            gaul Andrew Gaul
            gaul Andrew Gaul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: