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

npm package name ending in ".json" causing 404 (download) and 405 (publish) via npm API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: 6.13.1
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:
      None

      Description

      We discovered upload and download problems for npm packages with names ending with ".json".

      For a given package everything works as expected when its name ends with "-json". If the same package has a a name ending with ".json", Artifactory shows the following behavior:

      • Upload and download through the UI work as expected
      • Artifactory's NPM API shows
        • HTTP 405 error for publishing (uploading)
        • HTTP 404 error for resolving (downloading) a package that has been successfully uploaded through the UI

      Note that the naming doesn't follow https://www.npmjs.com/package/module-best-practices#naming-conventions

      Additional information can be found in support ticket #118031

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              martin.rueegsegger Martin Rueegsegger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: