Uploaded image for project: 'Konveyor Tackle'
  1. Konveyor Tackle
  2. TACKLE-709

XML validation fails for 1.0.0 version of the Settings schema on credentials creation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • 2.1.0
    • 2.0.0.Final
    • UI
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem

      XML validation fails when creating a Maven Settings credential when the input file is using the http://maven.apache.org/SETTINGS/1.0.0 schema. This doesn't happen when using a file with the http://maven.apache.org/SETTINGS/1.2.0 schema.

      How reproducible

      Always

      Steps to Reproduce:

      • Create a new Maven Settings credential.
      • Upload the attached tackle-test.xml file

      Actual results

      An error is displayed in the UI (see attached screenshot):

      file_0.xml:2: element settings: Schemas validity error : Element '{http://maven.apache.org/SETTINGS/1.0.0}settings': No matching global declaration available for the validation root.
      

      Expected results

      The file is validated and can be used.

      Additional info

      Changing the file settings for the following will make it work:

      <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
      

        1. tackle-test.xml
          0.4 kB
          Ramon Roman Nissen
        2. Screenshot from 2022-08-03 06-20-30.png
          88 kB
          Shveta Sachdeva

              ibolton@redhat.com Ian Bolton
              rromanni@redhat.com Ramon Roman Nissen
              Shveta Sachdeva Shveta Sachdeva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: