-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add support for file:// protocol in plugin URI #399
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine just needs checkstyle issues sorted
👍 |
This failed when releasing with two spotbugs errors, not sure why it didn't show up initially, are you able to take a look? |
Sure! I will check |
Both issue are complaint about the fact that we are trying to use a URL ( http or file ) that's created from an user parameter... and so unsafe. But for the first (http), it was already present, but in another function (as I just extracted the code to a new function). For me there are both false positive, as that's the expected behaviour no? |
yes you can create a PR to suppress it then |
Done here : #400 |
Allow to install plugin from local folder with the file:// format, linked to #365
Refactored the PluginManager.downloadToFile function to add condition on the URL format to manage HTTPs/HTTP and file protocol.
Extract the current http fetch into a dedicated internal function.