Hi Jack, I've added the source code to the UserResource class before the Consumer Manager instantiation and compiling again the distribution (running again the ant command) but the problem with OpenID continues. Did I do it correctly? I've also tried it by directly specifying the socks proxy host and port into the source code.
Thanks! Isaac 2011/10/13 Jack Hsu <[email protected]> > Hi Isaac, > > I think the issue is with the openid4java library we are using for OpenID > communication. > > If you have the source code available you can try inserting the following > code in the org.biomart.api.rest.UserResource class, at the beginning of the > constructor (before instantiating ConsumerManager). > > > String proxyHost = System.getProperty( "http.proxyHost", > System.getProperty("socksProxyHost") ); > String proxyPort = System.getProperty( "http.proxyPort", > System.getProperty("socksProxyPort") ); > > if (proxyHost != null && proxyPort != null) { > org.openid4java.util.ProxyProperties proxyProps = new > org.openid4java.util.ProxyProperties(); > proxyProps.setProxyHostName(proxyHost); > proxyProps.setProxyPort( Integer.parseInt(proxyPort) ); > org.openid4java.util.HttpClientFactory.setProxyProperties(proxyProps); > } > > http://code.google.com/p/openid4java/wiki/ConsumerForwardProxy > > -jack > > > From: Isaac cano <[email protected]> > Date: Thu, 13 Oct 2011 04:04:28 -0400 > To: Jack Hsu <[email protected]> > Cc: BioMart Users <[email protected]> > Subject: Re: [BioMart Users] OpenID -- Error 400 - Bad request > > Hi Jack, > > Thanks for your answer. I assume then that the openID functionality is also > supported when using proxy settings. I'll continue investigating why I can't > use the openID functionality when using proxies, both HTTP or SOCKS (other > communications such us accessing to other marts works for me when setting > the proxy). > > Thanks! > > Isaac > > 2011/10/11 Jack Hsu <[email protected]> > >> Hi Isaac, >> >> BioMart only supports proxy settings that is built into Java networking. ( >> http://download.oracle.com/javase/6/docs/technotes/guides/net/proxies.html >> ) >> >> It may be the case here that the default Java settings are not enough to >> use the SOCKS proxy server. We currently don't have a way to support proxy >> settings beyond through JVM system properties. >> >> -jack >> >> >> From: Isaac cano <[email protected]> >> Date: Tue, 11 Oct 2011 04:53:48 -0400 >> To: BioMart Users <[email protected]> >> Subject: [BioMart Users] OpenID -- Error 400 - Bad request >> >> Dear BioMart users, >> >> I'm running BioMart 0.8 RC6 in a server that is connected to >> Internet through a proxy/socks server. I've configured the >> biomart.all.properties xml file with the corresponding proxy/socks setting >> and every connection from/to our BioMart server to other marts like Ensembl >> is working but the OpenID functionality is not. I receive the following >> error messages to the error log file: >> >> 2011-10-11 10:58:49,908 WARN >> [31538514@qtp-31278839-8:RealmVerifier.java:107]: >> RP discovery / realm validation disabled; >> 2011-10-11 10:58:49,912 INFO >> [31538514@qtp-31278839-8:ConsumerManager.java:286]: >> Associations disabled. >> 2011-10-11 10:58:49,912 WARN >> [31538514@qtp-31278839-8:RealmVerifier.java:107]: >> RP discovery / realm validation disabled; >> 2011-10-11 10:58:49,918 INFO [31538514@qtp-31278839-8:Discovery.java:128]: >> Starting discovery on URL identifier: >> https://www.google.com/accounts/o8/id >> 2011-10-11 10:58:50,023 INFO >> [31538514@qtp-31278839-8:HttpMethodDirector.java:438]: >> I/O exception (java.net.SocketException) caught when processing request: >> Can't connect to SOCKS proxy:Connection refused >> >> And the corresponding message that is shown in the biomart portal (openID >> pop-up) is the following: >> >> <html> <head> <meta http-equiv="Content-Type" content="text/html; >> charset=ISO-8859-1"/> <title>Error 400 Bad Request</title> </head> >> <body><h2>HTTP ERROR 400</h2> <p>Problem accessing /martservice/user/auth. >> Reason: <pre> Bad Request</pre></p><hr /><i><small>Powered by >> Jetty://</small></i><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> >> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </body> >> </html> >> >> Is the OpendID functionality supported in the current release when using >> proxy/socks servers? >> >> Thanks in advance, >> >> -- >> Isaac Cano >> Bioinformatics >> Linkcare Health Services SL >> C/Villarroel 170 >> 08036 - Barcelona >> Tel.: (+34)932 275 400, ext. 4182\4523 >> Mobile: (+34) 666 186 748 >> Fax: (+34) 932 275 455 >> [email protected] >> >> > > > -- > Isaac Cano > Bioinformatics > Linkcare Health Services SL > C/Villarroel 170 > 08036 - Barcelona > Tel.: (+34)932 275 400, ext. 4182\4523 > Mobile: (+34) 666 186 748 > Fax: (+34) 932 275 455 > [email protected] > > -- Isaac Cano Bioinformatics Linkcare Health Services SL C/Villarroel 170 08036 - Barcelona Tel.: (+34)932 275 400, ext. 4182\4523 Mobile: (+34) 666 186 748 Fax: (+34) 932 275 455 [email protected]
_______________________________________________ Users mailing list [email protected] https://lists.biomart.org/mailman/listinfo/users
