Skip to content

Conversation

@sbliven
Copy link
Member

@sbliven sbliven commented Jun 27, 2018

Uniprot now redirects to https. This fixes the URL, as well as adds code to do the redirect.

I couldn't find any existing code to follow redirects, but it would be useful to apply this to all downloads. The redirect code is a private static function in 4.2. In the 5.0 branch it would make sense to make it a utility method (e.g core/utils/FileDownloadUtils) and apply it everywhere we open HttpUrlConnections.

Uniprot now redirects to https. This fixes the URL, as well as adds
code to do the redirect
Copy link
Contributor

@josemduarte josemduarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good to me.

We've been hit by the http->https issue a few times in the last months. It is unfortunate that the standard java library by default does not redirect.

Agree on having the new method as a common utility for 5.x

@sbliven sbliven merged commit 7a26257 into biojava:bugfixes-4.2 Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants