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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 5.4.6
    • Fix Version/s: 5.6.0
    • Component/s: None
    • Labels:
    • Severity:
      Medium

      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 Zohar (Tova)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-14786 -
                  SYNCHRONIZED
                  • Last Sync Date: