[RTFACT-9126] NPM remote that is offline still fetches metadata from remote Created: 28/Jan/16 Updated: 14/Nov/17 Resolved: 20/Jun/16
|Project:||Artifactory Binary Repository|
|Reporter:||Aaron Rhodes||Assignee:||Shay Bagants|
Steps to reproduce:
1) Create npm local, remote and virtual repos
Should not attempt to retrieve metadata from a remote that is offline.
|Comment by Shay Bagants [ 14/Jun/16 ]|
The Fetching external dependencies for 'mypackage' from 'npm-remote' logger is misleading as it is printed that Artifactory found an external dependency even if it fetches the external dependency from the cache and not from an actual remote server.
Having said that, since the previous logger is quite confusing, we have removed it. Instead, we have added a new debug logger that indicates if an external reference was found in the package.json that the client tries to resolve through a virtual repository (this was the original goal). The new logger looks like this:
As well, an indication to know if Artifactory actually goes out to fetch an external dependency is similar log to below: