You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Juho Mäkinen <ju...@gmail.com> on 2005/06/20 09:15:58 UTC
Possible bug in protocol-httpclient -> HttpBasicAuthentication.java
At least in the lastets nightly build, in HttpBasicAuthentication of
protocol-httpclient:
String username = NutchConf.get().get("http.auth.basic." +
challenge + ".user");
LOG.fine("BasicAuthentication username=" + username);
String password = NutchConf.get().get("http.auth.basic." +
challenge + ".user");
LOG.fine("BasicAuthentication password=" + password);
Notice that the code is getting both user AND password from
the property http.auth.basic. + challenge + .user. I believe that
it should get it from .password :)
- Juho Mäkinen
Re: Possible bug in protocol-httpclient -> HttpBasicAuthentication.java
Posted by Andrzej Bialecki <ab...@getopt.org>.
Juho Mäkinen wrote:
> At least in the lastets nightly build, in HttpBasicAuthentication of
> protocol-httpclient:
>
> String username = NutchConf.get().get("http.auth.basic." +
> challenge + ".user");
> LOG.fine("BasicAuthentication username=" + username);
> String password = NutchConf.get().get("http.auth.basic." +
> challenge + ".user");
> LOG.fine("BasicAuthentication password=" + password);
>
> Notice that the code is getting both user AND password from
> the property http.auth.basic. + challenge + .user. I believe that
> it should get it from .password :)
Yes, this looks like a bug - I'll fix this. Thank you!
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com