You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building 2.2.0 org.bridgedb.webservice.uniprot.Test fails with:
java.lang.IllegalArgumentException: host parameter is null
at org.apache.commons.httpclient.HttpConnection.setHost(HttpConnection.java:249)
at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnectionWithTimeout(SimpleHttpConnectionManager.java:189)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.bridgedb.webservice.uniprot.IDMapperUniprot.runQuery(IDMapperUniprot.java:329)
at org.bridgedb.webservice.uniprot.IDMapperUniprot.runMappingQuery(IDMapperUniprot.java:125)
at org.bridgedb.webservice.uniprot.IDMapperUniprot.mapID(IDMapperUniprot.java:189)
at org.bridgedb.webservice.uniprot.Test.testBasic(Test.java:40)
This is caused by the HttpStatus.SC_MOVED_TEMPORARILY handling not resolving relative URIs like /mapping/M20170829A7434721E10EE6586998A056CCD0537EF5E350T.tab according to the requested URI.
For some reason this uses method.setFollowRedirects(false);. The fix is to use URI.resolve() to ensure correct parsing of any relative URI.
The text was updated successfully, but these errors were encountered:
When building 2.2.0
org.bridgedb.webservice.uniprot.Test
fails with:This is caused by the
HttpStatus.SC_MOVED_TEMPORARILY
handling not resolving relative URIs like/mapping/M20170829A7434721E10EE6586998A056CCD0537EF5E350T.tab
according to the requested URI.For some reason this uses
method.setFollowRedirects(false);
. The fix is to useURI.resolve()
to ensure correct parsing of any relative URI.The text was updated successfully, but these errors were encountered: