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

When remote repository contain "/" in the end of the url the rest API return wrong value

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.4.6
    • Fix Version/s: 5.6.0
    • Component/s: None
    • Labels:
    • Support Tickets:
      Show
      Box, Inc. - Support Case
    • Product Backlog:
    • Product Comments:
      Added to Q1 2018 backlog
    • QA Estimation:
      0.2
    • Support Comments:
      Customer is not waiting for a fix

      Description

      If the remote repository contain "/" in the end of the url the output of the storage rest API the download url will contain 2 slashes as the following screenshot :

      Steps to reproduce :
      1. Quick install Maven repository
      2.Change the remote repository (jcenter) and add / to the url (e.g. http://jcenter.bintray.com/)
      3. Use the rest api as the following :
      curl -H "X-JFrog-Art-Api:$API_KEY" -X GET "https://localhost:8081/artifactory/api/storage/jcenter-cache/AbsFrame/Frame/1.0.7/Frame-1.0.7-javadoc.jar"
      As the following screenshot the remoteURL contain 2 slash :

        Attachments

          Activity

            People

            • Assignee:
              aviz Avi Zaig (Inactive)
              Reporter:
              batelt Batel Tova
              Assigned QA:
              Anastasiya Muntyan
              Support Rep(s):
              Batel Tova
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified