Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-6485

WebDAV upload fails using a dot "." as path element

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.1.1.1, 4.4.0, 4.4.2
    • Fix Version/s: 5.4.0
    • Component/s: None
    • Labels:
      None
    • 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 "..".

        Attachments

          Activity

            People

            • Assignee:
              shayb Shay Bagants
              Reporter:
              marcelst Marcel Steinbach
              Assigned QA:
              Mor Iluz (Inactive)
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: