Describe the bug
When uploading a bom file for a product, if the URL received from the NPM registry for downloading the license text is wrong, then the upload process stops and breaks.
To Reproduce
Steps to reproduce the behavior:
Upload a bom file that contains btoa version 1.2.1 as a component;
`btoa1.2.1pkg:npm/btoa@1.2.1btoa@1.2.1npm`
Because the registry is returning the following response that contains a wrong URL.
repository":{"type":"git","url":"git://git.coolaj86.com/coolaj86/btoa.js.git"}
The function libraryService.urlAutocomplete(dbLibrary); is breaking when trying to download the License and Source code
See error invalid URI scheme git
Expected behavior
When encountering invalid URLs Lucy should discard them instead of trying to make the request
Describe the bug When uploading a bom file for a product, if the URL received from the NPM registry for downloading the license text is wrong, then the upload process stops and breaks.
To Reproduce Steps to reproduce the behavior:
repository":{"type":"git","url":"git://git.coolaj86.com/coolaj86/btoa.js.git"}
invalid URI scheme git
Expected behavior When encountering invalid URLs Lucy should discard them instead of trying to make the request