Uploaded image for project: 'Build Info'
  1. Build Info
  2. BI-432

Using full path and flat=false in file spec causing status code: 400

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.9.2
    • Component/s: None
    • Labels:
      None

      Description

      {
        "files": [
          {
            "pattern": "/tmp/aaa/a",
            "target": "libs-release-local/",
            "flat": "false"
          }
        ]
      }
      

      The above code snippet build the following pattern:
      http://127.0.0.1:8081/artifactory/libs-release-local/../../../../../tmp/aaa/a
      which causes:
      java.io.IOException: Failed to deploy file. Status code: 400
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:659)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yahavi Yahav Itzhak
                Reporter:
                yahavi Yahav Itzhak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: