Merge pull request #1912 from mvdbeek/relax_password_manager_matching

Retrieve authentification also for long urls
This commit is contained in:
Martin Cech
2016-03-16 14:19:47 -04:00
+1 -1
View File
@@ -49,7 +49,7 @@ class Registry( object ):
url_sans_protocol = common_util.remove_protocol_from_tool_shed_url( url )
for shed_name, shed_url in self.tool_sheds.items():
shed_url_sans_protocol = common_util.remove_protocol_from_tool_shed_url( shed_url )
if shed_url_sans_protocol.find( url_sans_protocol ) >= 0:
if url_sans_protocol.startswith( shed_url_sans_protocol ):
return self.tool_sheds_auth[ shed_name ]
log.debug( "Invalid url '%s' received by tool shed registry's password_manager_for_url method." % str( url ) )
return None