Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17956

Artifactory config constraints check after Artifactory restart

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Artifactory REST API allows to create a repository starting with number in repository name and fails after restart due to error in config.

       

      Issue reproduction steps:

      1. Create a repository starting with name using REST API:

      curl -X PUT "http://localhost:8081/artifactory/api/repositories/1234-disha-local" -H "Content-Type: application/json" -d '{ "rclass" : "local" }' -uadmin:password

      Successfully created repository '1234-disha-local'

       

      2. Restart artifactory and see the below error:

      Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '1234-disha-local' is not a valid value for 'NCName'.

       

      A similar issue faced when repo name has spaces in it earlier.

       

      Ask:

      Please lower the constraint checking while artifactory start up or disallow artifactory to create repositories as such in first place.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Disham Disha Meswania
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: