Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-18110

Creating entity with "--" through XUI Wizard causes error

    XMLWordPrintable

    Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.5.2
    • None
    • UI
    • Rank:
      1|i058ye:

      Description

      Bug description

      If a user has metadata that is being loaded in AM through the wizard and the metadata filename is in the following format the metadata will not load and will error with invalid meta data.

      test--test.xml
      

       

      How to reproduce the issue

       

      1. Edit filename of valid metadata as listed above
      2. Navigate to top level realm and try to create a remote entity.
      3. Upload file in XUI
      4. Try to save the file.
      Expected behaviour
      File will be uploaded the data is valid
      
      Current behaviour
      XUI throws error because of filename

      Work around

      Removing a single "-" will allow the data to be loaded

      Code analysis

      This stack is thrown in the container:
      
      org.apache.catalina.startup.Catalina.start Server startup in 49267 ms
      [Fatal Error] :52:46: The string "--" is not permitted within comments.
      [Fatal Error] :52:46: The string "--" is not permitted within comments.
      [Fatal Error] :52:46: The string "--" is not permitted within comments.
      [Fatal Error] :52:46: The string "--" is not permitted within comments.
      [Fatal Error] :7:46: The string "--" is not permitted within comments.
      [Fatal Error] :6:46: The string "--" is not permitted within comments.
      [Fatal Error] :126:828: Element type "support" must be followed by either attribute specifications, ">" or "/>".
      [Fatal Error] :1:212: The markup in the document following the root element must be well-formed.
      [Fatal Error] :1:212: The markup in the document following the root element must be well-formed.
      [Fatal Error] :1:212: The markup in the document following the root element must be well-formed.
      [Fatal Error] :1:212: The markup in the document following the root element must be well-formed.
      [Fatal Error] :52:46: The string "--" is not permitted within comments.

        Attachments

          Activity

            People

            Unassigned Unassigned
            abel.hoxeng Abel Hoxeng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: