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

The NPM search endpoint doesn't handle forward slashes in scoped package names correctly

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:
    • Story Points:
      2

      Description

      Using the npm search endpoint (http://myhost:8081/repository/my-npm-repo/-/v1/search?text=%22%40myscope%2Fmyproject%401.0.0%22&size=20), with a forward slash in a scoped package name (normal for scoped packages) results in an error.

      The issue is due to incorrect handling of the url I think, as it works fine when I add quotes:

      http://myhost:8081/repository/my-npm-repo/-/v1/search?text="%22%40myscope%2Fmyproject%401.0.0%22"&size=20

      However, the NPM client does NOT add quotes, and therefore, this doesn't work with plain npm.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            daankets Daan Kets
            Last Updated By:
            Mykyta Shevelov Mykyta Shevelov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title