Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve scoped NPM packages from Nexus Repository Manager 2 #5177

Closed
malice00 opened this issue Mar 21, 2022 · 5 comments
Closed
Labels
analyzer About the analyzer tool needs info An issue where further information is required

Comments

@malice00
Copy link

We have a Nexus 2 as a proxy for our NPM-packages. I have noticed that scoped packages are returning 404 upon being requested by ORT. It looks like ORT is URL-encoding the '/' in scoped packages, which Nexus doesn't like.
Seeing how normal installation of packages works, I assume that NPM itself requests packages without URL-encoding.
The official registry at https://registry.npmjs.org/ will serve modules for both encoded and direct requests.

18:48:11.513 [DefaultDispatcher-worker-2] INFO  org.ossreviewtoolkit.analyzer.managers.Npm - Could not retrieve package information for '@react-native%2Fassets' from NPM registry https://XXX/publicNPM: Not Found (HTTP code 404)
18:48:12.566 [DefaultDispatcher-worker-2] INFO  org.ossreviewtoolkit.analyzer.managers.Npm - Could not retrieve package information for '@react-native%2Fnormalize-color' from NPM registry https://XXX/publicNPM: Not Found (HTTP code 404)
18:48:12.819 [DefaultDispatcher-worker-2] INFO  org.ossreviewtoolkit.analyzer.managers.Npm - Could not retrieve package information for '@react-native%2Fpolyfills' from NPM registry https://XXX/publicNPM: Not Found (HTTP code 404)
18:48:13.617 [DefaultDispatcher-worker-2] INFO  org.ossreviewtoolkit.analyzer.managers.Npm - Could not retrieve package information for '@types%2Fistanbul-lib-report' from NPM registry https://XXX/publicNPM: Not Found (HTTP code 404)
18:48:13.985 [DefaultDispatcher-worker-2] INFO  org.ossreviewtoolkit.analyzer.managers.Npm - Could not retrieve package information for '@types%2Fyargs' from NPM registry https://XXX/publicNPM: Not Found (HTTP code 404)
@sschuberth
Copy link
Member

Which revision of ORT are you using? Specifically, are you using a version that has #5162 merged? I would expect that PR to fix your issue.

@sschuberth sschuberth added analyzer About the analyzer tool needs info An issue where further information is required labels Mar 22, 2022
@malice00
Copy link
Author

My revision is a couple of days older than the merge -- I'll recreate my image and give it another go. Thanks for the info!

@malice00
Copy link
Author

This is indeed solved with the merge of #5162!

@raviteja0312
Copy link

I am currently using nexus oss 2.13.1 version and facing same issue for scoped packages, so what version should i upgrade to download scoped packages without any error?

@sschuberth
Copy link
Member

sschuberth commented Sep 15, 2022

The PR was merged on March 18. So any later version of ORT will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer About the analyzer tool needs info An issue where further information is required
Projects
None yet
Development

No branches or pull requests

3 participants