[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


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 Tue Aug 11 16:55:24 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.