[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:, 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


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 "..".

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 Tue Sep 22 17:20:33 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.