Uploaded image for project: 'OpenSAML - C++'
  1. OpenSAML - C++
  2. CPPOST-55

DiscoFeed doesn't escape line feeds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4rc1
    • Fix Version/s: 2.4
    • Component/s: Metadata
    • Labels:
      None
    • Environment:

      Centos 5

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

      Description

      The UK fed metadata has a bug in it:
      <OrganizationDisplayName xml:lang="en">Bournville College of Further Education
      </OrganizationDisplayName>

      (that is to say a line feed and spaces after the name). This is of course correct XML (just not what the user wanted).

      The Disco feed spits this out:

      "value": "Bournville College of Further Education
      ",
      IE and FF can eat this, but Chrome and Safari cannot. If I read http://www.ietf.org/rfc/rfc4627.txt correctly, <cr><lf> needs to be escaped - although I suspect that the user would prefer to have it stripped....

      FWIW, testing is in the early stages, but unicode seems to be OK...

        Attachments

          Activity

            People

            Assignee:
            cantor.2@osu.edu Scott Cantor
            Reporter:
            rdw@iay.org.uk Rod Widdowson
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: