[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:
duplicates RTFACT-17016 Creating repository with illegal name... Resolved
relates to RTFACT-7231 Config descriptor doesn't validate ma... Open


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.



  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 Tue Jul 07 10:47:29 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.