Uploaded image for project: 'XMLTooling - C++'
  1. XMLTooling - C++
  2. CPPXT-39

MetadataProvider creates backup metadata with invalid encoding "UTF8"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.1, 1.2, 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      RHEL5.3 with official RPMs

    • Operating System:
      Linux
    • CPU Type:
      x86
    • C/C++ Compiler:
      Multiple

      Description

      When shibd retrieves metadata via HTTPS/HTTP it writes out a local backup copy with an invalid encoding ("UTF8" instead of "UTF-8") in the XML processing instructions at the beginning of the file.
      The invalid encoding is not part of the metadata file, also tracing the network traffic shows that those PIs with the invalid encoding are not transmitted over the wire. strace(1) shows it's written to disk though. I poked around a bit in the code but had no idea where to look for (xerces setEncoding method?).

      Unless I'm mistaken in my testing this happens whether the metadata hosted via HTTP/S is signed or unsigned, as well as if it already contains those PIs with a correct encoding or does not contain any PIs.
      This was with validation turned on, but turning this off does not change things.

      This is with 2.2 (don't have anything else round anymore) and still seems to be the case with 2.2.1.

      Checking the local metadata backup copy of the spaces wiki (e.g. for aconet-aai) should also show this (and xmlwf will complain about "unknown encoding").

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cantor.2@osu.edu Scott Cantor
              Reporter:
              peter Peter Schober
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: