commit/galaxy-central: dan: Fix for installing from toolshed that uses 307 redirects that are not being handled nicely by urllib2.urlopen when the urllib2.Request has data provided.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/18777feed30b/ Changeset: 18777feed30b Branch: stable User: dan Date: 2014-06-04 17:05:36 Summary: Fix for installing from toolshed that uses 307 redirects that are not being handled nicely by urllib2.urlopen when the urllib2.Request has data provided. Affected #: 1 file diff -r c68aa8a8e769437473bd23586d1b55fc66cc8c47 -r 18777feed30bc0a41e2f46b49e561cd23eb3b564 lib/tool_shed/util/common_install_util.py --- a/lib/tool_shed/util/common_install_util.py +++ b/lib/tool_shed/util/common_install_util.py @@ -448,6 +448,8 @@ # Handle secure / insecure Tool Shed URL protocol changes and port changes. tool_shed_url = common_util.get_tool_shed_url_from_tool_shed_registry( trans.app, tool_shed_url ) url = common_util.url_join( tool_shed_url, '/repository/get_required_repo_info_dict' ) + # Fix for handling 307 redirect not being handled nicely by urllib2.urlopen when the urllib2.Request has data provided + url = urllib2.urlopen( urllib2.Request( url ) ).geturl() request = urllib2.Request( url, data=urllib.urlencode( dict( encoded_str=encoded_required_repository_str ) ) ) response = urllib2.urlopen( request ).read() if response: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org