XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.27.3
    • Fix Version/s: None
    • Component/s: Remote Repository
    • Labels:
      None
    • Severity:
      Critical
    • Location:
      External

      Description

      When fetching from a remote repository, artifactory does not seem to be following redirects.  For example, observe:

      $ curl -L -v -o /dev/null 'http://mirror.centos.org/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso'
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 2001:19f0:0:2a::10:80...
      * Connected to mirror.centos.org (2001:19f0:0:2a::10) port 80 (#0)
      > GET /centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso HTTP/1.1
      > Host: mirror.centos.org
      > User-Agent: curl/7.79.1
      > Accept: */*
      > 
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 302 Found
      < Date: Tue, 05 Apr 2022 12:22:18 GMT
      < Server: Apache/2.4.6 (CentOS)
      < X-Xss-Protection: 1; mode=block
      < X-Content-Type-Options: nosniff
      < Referrer-Policy: same-origin
      < X-Frame-Options: SAMEORIGIN
      < Location: http://isoredirect.centos.org/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
      < Content-Length: 274
      < Content-Type: text/html; charset=iso-8859-1
      < 
      * Ignoring the response-body
      { [274 bytes data]
      100   274  100   274    0     0   1022      0 --:--:-- --:--:-- --:--:--  1026
      * Connection #0 to host mirror.centos.org left intact
      * Issue another request to this URL: 'http://isoredirect.centos.org/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso'
      *   Trying 2001:4178:5:200::10:80...
      *   Trying 35.180.43.213:80...
      * Connected to isoredirect.centos.org (35.180.43.213) port 80 (#1)
      > GET /centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso HTTP/1.1
      > Host: isoredirect.centos.org
      > User-Agent: curl/7.79.1
      > Accept: */*
      > 
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 302 Found
      < Date: Tue, 05 Apr 2022 12:22:19 GMT
      < Server: PasteWSGIServer/0.5 Python/2.7.5
      < X-Frame-Options: SAMEORIGIN
      < X-Xss-Protection: 1; mode=block
      < X-Content-Type-Options: nosniff
      < Referrer-Policy: same-origin
      < Content-Length: 0
      < Location: http://mirror.csclub.uwaterloo.ca/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
      < Content-Type: text/html; charset=UTF-8
      < 
        0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
      * Connection #1 to host isoredirect.centos.org left intact
      * Issue another request to this URL: 'http://mirror.csclub.uwaterloo.ca/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso'
      *   Trying 2620:101:f000:4901:c5c:0:f:1055:80...
      * Connected to mirror.csclub.uwaterloo.ca (2620:101:f000:4901:c5c:0:f:1055) port 80 (#2)
      > GET /centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso HTTP/1.1
      > Host: mirror.csclub.uwaterloo.ca
      > User-Agent: curl/7.79.1
      > Accept: */*
      > 
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 200 OK
      < Server: nginx/1.18.0 (Ubuntu)
      < Date: Tue, 05 Apr 2022 12:22:19 GMT
      < Content-Type: application/octet-stream
      < Content-Length: 1020264448
      < Last-Modified: Tue, 03 Nov 2020 14:55:52 GMT
      < Connection: keep-alive
      < ETag: "5fa16f78-3cd00000"
      < Accept-Ranges: bytes
      < 
      { [1134 bytes data]
        0  973M    0 1228k    0     0   428k      0  0:38:45  0:00:02  0:38:43 1178k
      

      As you can see, the final fetch is only done after a 302/redirect.

      If I have mirror.centos.org configured as a remote repository in artifactory and then try to fetch that same path from artifactory, it returns a 404.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              bmurrell Brian J. Murrell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

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