[RTFACT-17152] Allowed to create repo with illegal name with Artifactory REST API Created: 21/Jul/18  Updated: 24/Jul/18  Resolved: 24/Jul/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: REST API
Affects Version/s: 6.1.0, 5.11.1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Scott Mosher Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates RTFACT-17016 Creating repository with illegal name... Resolved
Relationship
relates to RTFACT-7231 Config descriptor doesn't validate ma... Open

 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

Generated at Fri Dec 13 22:19:23 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.