[BI-432] Using full path and flat=false in file spec causing status code: 400 Created: 28/Sep/17  Updated: 28/Dec/17  Resolved: 28/Dec/17

Status: Resolved
Project: Build Info
Component/s: None
Affects Version/s: 2.9.1
Fix Version/s: 2.9.2

Type: Bug Priority: Normal
Reporter: Yahav Itzhak Assignee: Yahav Itzhak
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relationship
is related to BAP-403 Using full path and flat=false in fil... Resolved
is related to HAP-1010 Using full path and flat=false in fil... Resolved
is related to TCAP-305 Using full path and flat=false in fil... Resolved

 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)


Generated at Thu Dec 12 06:56:37 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.