Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-33540

downloadUrl for assets in /rest/v1/search contain extra forward slash after migrating from OrientDB to PostgreSQL

    Details

    • Notability:
      n/a
    • InvestmentLayer:
      support-escalated
    • Aha Concept:
      non-concept

      Description

      SYMPTOM:

      After migrating to PostgreSQL, noticed downloadUrl in "/service/rest/v1/search" contains duplicate "/".
      NOTE: so far this extra slash does not cause any issue to download with Chrome and curl.

      REPRODUCE STEPS:

      1. install Nexus 3.38 with PostgreSQL, and create a raw-hosted repository
      2. Upload a file into the raw-hosted repository
      3. Use search API /service/rest/v1/search?repository=raw-hosted

      EXPECTED:

      Download URL should be exactly same as OrientDB.

      ACTUAL BEHAVIOUR:

      The downloadUrl contains an extra "/" after repository name:

      {
        "items" : [ {
          "id" : "cmF3LWhvc3RlZDo3OGRkZTZlOA",
          "repository" : "raw-hosted",
          "format" : "raw",
          "group" : "/test/sh",
          "name" : "/test/sh/test.sh",
          "version" : "",
          "assets" : [ {
            "downloadUrl" : "https://nxrm3-pg-k8s.standalone.localdomain:8443/repository/raw-hosted//test/sh/test.sh",
        ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sshamrai Sergii Shamrai
              Reporter:
              hosako Hajime Osako
              Last Updated By:
              Michael Oliverio Michael Oliverio
              Owner:
              Sergii Shamrai Sergii Shamrai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title