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

npm remotes should serve stale metadata if upstream is not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.17.4
    • Component/s: NPM
    • Labels:
      None
    • Severity:
      Medium
    • Team:
      dev-artifactory-packages

      Description

      Artifactory should serve stale metadata for npm remotes if the upstream is having issues (timeout, corrupt JSON, etc). It should print an error in the system logs, but otherwise still function for end users. The current behavior is to return a 404 for the package metadata instead.

       

      For example, if the upstream has invalid JSON for the metadata, the request would fail with a 404 and log:

      "Error while parsing the response of a remote npm JSON query on 'https://registry.npmjs.org/package': Can not deserialize instance of java.lang.String out of START_OBJECT token

        Attachments

          Activity

              People

              Assignee:
              Oleksis Oleksii Semenov [EXT] (Inactive)
              Reporter:
              gmartinez Giancarlo Martinez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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