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

Removal of slash duplication in URL causes issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It looks like when Artifactory is trying to reach remote URLs, it trims duplication of slashes in the URLs.

      We have experienced this when trying to proxy "https://registry.aquasec.com" as a remote Docker repository.
      (The above is a private registry, not public)

      It is not possible to use Artifactory as a remote repository to the above site, as for downloads of the actual layers it redirects to another server to download the layers. Looks like there is some kind of a verification of the URL, that causes the URL with single slash to not work while with '//" it works.

      For example, sequence of events when downloading an image:
      1. Artifactory tries to download the layer via:

      https://registry.aquasec.com/v2/scanner/blobs/sha256:48ecbb6b270eb481cb6df2a5b0332de294ec729e1968e92d725f1329637ce01b
      

      2. It responds a redirect:

      <a href="https://weumanaged159.blob.core.windows.net/890e130e03f14f6da2306b51380d6ecd-wrwho1mmyw//docker/registry/v2/blobs/sha256/48/48ecbb6b270eb481cb6df2a5b0332de294ec729e1968e92d725f1329637ce01b/data?se=2019-02-05T09%3A31%3A44Z&amp;sig=HCWl%2BGE09P885LLai%2Fdq40Pp%2FuUmygD2Zbi6tjEpx90%3D&amp;sp=r&amp;sr=b&amp;sv=2016-05-31&amp;regid=890e130e03f14f6da2306b51380d6ecd">Temporary Redirect</a>.
      

      3. Artifactory tries to download from (note a single URL):

      https://weumanaged159.blob.core.windows.net/890e130e03f14f6da2306b51380d6ecd-wrwho1mmyw/docker/registry/v2/blobs/sha256/08/088ff8e8c1bc7315529684029cfee2731889983f79efa3b74ffa62bb06c92eb7/data?se=2019-02-05T09%3A31%3A44Z&sig=7g8hHBBMl4PVZeh2W2SuBJmtaXFuUnjvNvJE7EmY%2Fxw%3D&sp=r&sr=b&sv=2016-05-31&regid=890e130e03f14f6da2306b51380d6ecd
      

      Note the extra slash available in the response in step #2, but missing in the URL in step #3.
      This is the issue.

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                arielk Ariel Kabov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: