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

Allowed to create repo with illegal name with Artifactory REST API

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: 6.1.0, 5.11.1
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
      None

      Description

      When navigating to the UI and creating a repository, as soon as 0X is entered into the repository key textbox, it complains about the use of illegal characters.  One is able to create this exact same repository name with the REST API.  Artifactory will fail to startup after this repo has been added.  Perhaps add the same logic for the REST API as already present in the UI.

       

      REPRODUCE

      1. Run the REST API call for creating a repository:     curl -uadmin:password -X PUT http://art.com/artifactory/api/repositories/0X04-npm -H "Content-Type: application/json" -d '{"rclass":"local", "packageType": "npm"}'
      1. Restart Artifactory and it will complain/fail

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                scottm Scott Mosher
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: