[RTFACT-17016] Creating repository with illegal name using REST API Created: 25/Jun/18  Updated: 06/Jul/19  Resolved: 15/Jan/19

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: None
Fix Version/s: 6.7.0

Type: Bug Priority: Normal
Reporter: Mohamad Masarwa (Inactive) Assignee: Bar Haim
Resolution: Fixed Votes: 3
Labels: None

Issue Links:
contains RTFACT-18090 Create Repository REST API causes DB ... Resolved
is duplicated by RTFACT-17862 Repository name starting with number ... Resolved
is duplicated by RTFACT-16669 REST API allows to create repository ... Resolved
is duplicated by RTFACT-17152 Allowed to create repo with illegal n... Resolved
is duplicated by RTFACT-17956 Artifactory config constraints check ... Resolved
Assigned QA: Andrey Tashlitsky
Sprint: Leap 35


Artifactory create a repository with an illegal name if it was done by rest api, here is an example for the cURL command:

$ curl -uadmin:password -XPUT -H"content-type: application/json" "http://localhost:8081/artifactory/api/repositories/1" -d'{"rclass" : "virtual","packageType": "generic"}'


The output:

Successfully created repository '1'


The configdescriptor.xml file:


Generated at Sun Nov 17 20:38:29 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.