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

Report Statistics in smart remote repo is broken, if target URL is running Artifactory in root context

    XMLWordPrintable

    Details

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

      Description

      Steps to reproduce:
      1. Use this KB to make Artifactory run without the `/artifactory` context (ROOT)
      2. Start another Artifactory instance and create a Smart Remote Repository pointing to one of the local repos in the first instance
      3. Make sure to tick the "Report Statistics" checkbox
      4. Download something from the "remote" repo, and then from the "cache", in order to trigger the "report statistics" mechanism

      The bug:
      The request is reaching Artifactory like this (note the generic-local repo name before the `/api`:

      20190507161237|28|REQUEST|RESTRICTED_IP|admin|PUT|/generic-local/api/storage/statistics/generic-local|HTTP/1.1|201|208
      

      Therefore, it actually creates a file under this path: /generic-local/api/storage/statistics/generic-local

      Instead, it should look like this:

      20190507161237|28|REQUEST|RESTRICTED_IP|admin|PUT|/api/storage/statistics/generic-local|HTTP/1.1|201|208
      

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                avivb Aviv Blonder
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

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