[RTFACT-6485] WebDAV upload fails using a dot "." as path element Created: 15/Apr/14  Updated: 14/Nov/17  Resolved: 13/Jun/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: 3.1.1.1, 4.4.0, 4.4.2
Fix Version/s: 5.4.0

Type: Bug Priority: Normal
Reporter: Marcel Steinbach Assignee: Shay Bagants
Resolution: Fixed Votes: 4
Labels: None

Assigned QA: Mor Iluz (Inactive)
Sprint: Leap 12, Leap 13, Leap 14

 Description   

Uploading a file to a URL containing a dot as path (e.g with the intention "current path") fails.
For example:

curl -u "user:pass" -T file.jar http://repository/artifactory/libs-snapshot-local/./file.jar
{
  "errors" : [ {
    "status" : 500,
    "message" : "Path element cannot end with a dot: libs-snapshot-local/./pom.xml"
  } ]
}%

Unfortuantely, maven-site-plugin creates upload URLs containing a dot, so uploading a site to Artifactory with mvn site-deploy is currently not possible .

I figure the state machine in org.artifactory.util.PathValidator tries to prevent files starting or ending with dots, but does not consider "." or "..".



 Comments   
Comment by Steve Fisher [ 20/May/16 ]

Given that mvn site:deploy generates paths of the form <url>/./<directory> this bug should be fixed sooner rather than later. It currently stops me migrating to artifactory.

Generated at Wed Feb 19 05:12:21 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.