You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Fritsch, Michael" <mi...@coremedia.com.INVALID> on 2022/05/09 13:30:13 UTC

FW: After update from 1.11 to 1.13 form login does not work

Hello,

I used nutch 1.11 to crawl pages behind a login page.
The http-auth configuration looked like this:

---------------------------------------------------------------------------
<?xml version="1.0"?>
<auth-configuration>
  <credentials authMethod="formAuth"
               loginUrl=loginURL<https://sso.coremedia.com/zendesk/index.jsp?brand_id=3187316&amp;locale_id=1&amp;return_to=https%3A%2F%2Fsupport.coremedia.com%2Fhc%2Fen-us&amp;timestamp=1464019963>
               loginFormId="loginForm"
               loginRedirect="true">
    <loginPostData>
      <field name="user[email]"
             value="username"/>
      <field name="user[password]"
             value="password"/>
    </loginPostData>
    <additionalPostHeaders>
    </additionalPostHeaders>
  </credentials>
</auth-configuration>
--------------------------------------------------------------------

Everything worked fine. Then I updated to 1.13 (I also tried 1.18) and changed the configuration as described in the http-auth.xml file:

-----------------------------------------------------------------------------

<auth-configuration>
  <credentials authMethod="formAuth"
               loginUrl=loginURL<https://sso.coremedia.com/zendesk/index.jsp?brand_id=3187316&amp;locale_id=1&amp;return_to=https%3A%2F%2Fsupport.coremedia.com%2Fhc%2Fen-us&amp;timestamp=1464019963>
               loginFormId="loginForm"
               loginRedirect="true">
    <loginPostData>
      <field name="user[email]"
             value="username"/>
      <field name="user[password]"
             value="password"/>
    </loginPostData>
    <additionalPostHeaders>
    </additionalPostHeaders>
    <removedFormFields>
    </removedFormFields>
    <loginCookie>
      <policy>BROWSER_COMPATIBILITY</policy>
    </loginCookie>
  </credentials>

</auth-configuration>

-----------------------------------------------

Now, the login did not work anymore. After some redirects, it gives an HTML response 403. I tried all loginCookie policy entries, but nothing worked.
The login is to a Zendesk support system with Atlassian Crowd as a login provider. Has anything changed between 1.11 and 1.13 is something more strict than before?


I found a very similar question in this mailing list (https://www.mail-archive.com/user@nutch.apache.org/msg15746.htmlfrom ) from 2017, which has no solutions.

I would appreciate any help!

Best regards

Michael


Dr. Michael Fritsch
Technical Editor

T: +49.40.325587.214
E: michael.fritsch@coremedia.com<ma...@coremedia.com>

CoreMedia GmbH - Be iconic
Ludwig-Erhard-Str. 18
20459 Hamburg, Germany
www.coremedia.com<http://www.coremedia.com/>
------------------------------------------------------------
Managing Directory: Sören Stamer
Commercial Register: Amtsgericht Hamburg, HR B 162480
----------------------------------------------------------------------
Stay up to date and follow us on LinkedIn<https://www.linkedin.com/company/coremedia-corp> or Twitter<https://twitter.com/contentcloud>


Re: Does Nutch work with Hadoop Versions greater than 3.1.3?

Posted by Markus Jelsma <ma...@openindex.io>.
To add to Sebastian, it runs on Hadoop 3.3.x very good as well. Actually, i
never had any Hadoop version that could not run Nutch out of the box and
without issues.

Op ma 13 jun. 2022 om 11:54 schreef Sebastian Nagel
<wa...@googlemail.com.invalid>:

> Hi Michael,
>
> Nutch (1.18, and trunk/master) should work together with more recent Hadoop
> versions.
>
> At Common Crawl we use a modified Nutch version based on the recent trunk
> running on Hadoop 3.2.2 (soon 3.2.3) and Java 11, even on a mixed Hadoop
> cluster
> with x64 and arm64 AWS EC2 instances.
>
> But I'm sure there are more possible combinations.
>
> One important note: in trunk/master there is a yet unsolved regression
> caused by
> the newly introduced plugin-based URL stream handlers, see NUTCH-2936 and
> NUTCH-2949. Unless these are resolved, you need to undo these commits in
> order
> to run Nutch (built from trunk/master) in distributed mode.
>
> Best,
> Sebastian
>
> On 6/13/22 01:37, Michael Coffey wrote:
> > Do current 1.x versions of Nutch (1.18, and trunk/master) work with
> versions of Hadoop greater than 3.1.3? I ask because Hadoop 3.1.3 is from
> October 2019, and there are many newer versions available. For example,
> 3.1.4 came out in 2020, and there are 3.2.x and 3.3.x versions that came
> out this year.
> >
> > I don’t care about newer features in Hadoop, I just have general
> concerns about stability and security. I am working on reviving an old
> project and would like to put together the best possible infrastructure for
> the future.
> >
> >
>

Re: Does Nutch work with Hadoop Versions greater than 3.1.3?

Posted by Sebastian Nagel <wa...@googlemail.com.INVALID>.
Hi Michael,

Nutch (1.18, and trunk/master) should work together with more recent Hadoop
versions.

At Common Crawl we use a modified Nutch version based on the recent trunk
running on Hadoop 3.2.2 (soon 3.2.3) and Java 11, even on a mixed Hadoop cluster
with x64 and arm64 AWS EC2 instances.

But I'm sure there are more possible combinations.

One important note: in trunk/master there is a yet unsolved regression caused by
the newly introduced plugin-based URL stream handlers, see NUTCH-2936 and
NUTCH-2949. Unless these are resolved, you need to undo these commits in order
to run Nutch (built from trunk/master) in distributed mode.

Best,
Sebastian

On 6/13/22 01:37, Michael Coffey wrote:
> Do current 1.x versions of Nutch (1.18, and trunk/master) work with versions of Hadoop greater than 3.1.3? I ask because Hadoop 3.1.3 is from October 2019, and there are many newer versions available. For example, 3.1.4 came out in 2020, and there are 3.2.x and 3.3.x versions that came out this year.
> 
> I don’t care about newer features in Hadoop, I just have general concerns about stability and security. I am working on reviving an old project and would like to put together the best possible infrastructure for the future.
> 
> 

Does Nutch work with Hadoop Versions greater than 3.1.3?

Posted by Michael Coffey <mc...@yahoo.com.INVALID>.
Do current 1.x versions of Nutch (1.18, and trunk/master) work with versions of Hadoop greater than 3.1.3? I ask because Hadoop 3.1.3 is from October 2019, and there are many newer versions available. For example, 3.1.4 came out in 2020, and there are 3.2.x and 3.3.x versions that came out this year.

I don’t care about newer features in Hadoop, I just have general concerns about stability and security. I am working on reviving an old project and would like to put together the best possible infrastructure for the future.


RE: FW: After update from 1.11 to 1.13 form login does not work

Posted by "Fritsch, Michael" <mi...@coremedia.com.INVALID>.
Hi Sebastian,

thanks for your ideas.

I have tried all cookie policies (NETSCAPE, BROWSER_COMPATIBILITY, RFC....) and none of them worked.
I also changed http.enable.cookie.header to true but this didn't changed anything, either.

However, when we  looked into our Crowd-Logs it seems, that the initial login with username/password succeeded. Maybe, there is something wrong with the login cookie/token?
In the log, I see lines like this:

2022-05-10 15:13:32,873 TRACE api.HttpBase - fetched 6028 bytes of compressed content (expanded to 10203 bytes) from https://support.compname.com/hc/en-us/articles/203962208-Document-and-version-history-dates.html
2022-05-10 15:13:32,873 TRACE httpclient.Http - url: https://support.compname.com/hc/en-us/articles/203962208-Document-and-version-history-dates.html; status code: 403; bytes received: 6028; Content-Encoding: gzip; extracted to 10203 bytes
2022-05-10 15:13:33,171 INFO  fetcher.FetcherThread - FetcherThread 59 fetch of https://support.compname.com/hc/en-us/articles/203962208-Document-and-version-history-dates.html failed with: Http code=403, url=https://support.compname.com/hc/en-us/articles/203962208-Document-and-version-history-dates.html
2022-05-10 15:13:33,362 INFO  fetcher.Fetcher - -activeThreads=50, spinWaiting=50, fetchQueues.totalSize=2, fetchQueues.getQueueCount=1-



Best, 
Michael


-----Original Message-----
From: Sebastian Nagel <wa...@googlemail.com.INVALID> 
Sent: Dienstag, 10. Mai 2022 10:23
To: user@nutch.apache.org
Subject: Re: FW: After update from 1.11 to 1.13 form login does not work

Hi Michael,

the only differences in the protocol-httpclient plugin between Nutch 1.11 and
1.13 are
- NUTCH-2280 [1] which allows to configure the cookie policy
- NUTCH-2355 [2] which allows to set an explicit cookie for a request URL

Could this be related?

Are there any useful hints what could be the reason in the log messages if you set
  log4j.logger.org.apache.nutch.protocol.httpclient=TRACE
in the log4j.properties ?

Best,
Sebastian

[1] https://issues.apache.org/jira/browse/NUTCH-2280
[2] https://issues.apache.org/jira/browse/NUTCH-2355

On 5/9/22 15:30, Fritsch, Michael wrote:
> Hello,
> 
> I used nutch 1.11 to crawl pages behind a login page.
> The http-auth configuration looked like this:
> 
> ----------------------------------------------------------------------
> -----
> <?xml version="1.0"?>
> <auth-configuration>
>   <credentials authMethod="formAuth"
>                loginUrl=loginURL<https://sso.coremedia.com/zendesk/index.jsp?brand_id=3187316&amp;locale_id=1&amp;return_to=https%3A%2F%2Fsupport.coremedia.com%2Fhc%2Fen-us&amp;timestamp=1464019963>
>                loginFormId="loginForm"
>                loginRedirect="true">
>     <loginPostData>
>       <field name="user[email]"
>              value="username"/>
>       <field name="user[password]"
>              value="password"/>
>     </loginPostData>
>     <additionalPostHeaders>
>     </additionalPostHeaders>
>   </credentials>
> </auth-configuration>
> --------------------------------------------------------------------
> 
> Everything worked fine. Then I updated to 1.13 (I also tried 1.18) and changed the configuration as described in the http-auth.xml file:
> 
> ----------------------------------------------------------------------
> -------
> 
> <auth-configuration>
>   <credentials authMethod="formAuth"
>                loginUrl=loginURL<https://sso.coremedia.com/zendesk/index.jsp?brand_id=3187316&amp;locale_id=1&amp;return_to=https%3A%2F%2Fsupport.coremedia.com%2Fhc%2Fen-us&amp;timestamp=1464019963>
>                loginFormId="loginForm"
>                loginRedirect="true">
>     <loginPostData>
>       <field name="user[email]"
>              value="username"/>
>       <field name="user[password]"
>              value="password"/>
>     </loginPostData>
>     <additionalPostHeaders>
>     </additionalPostHeaders>
>     <removedFormFields>
>     </removedFormFields>
>     <loginCookie>
>       <policy>BROWSER_COMPATIBILITY</policy>
>     </loginCookie>
>   </credentials>
> 
> </auth-configuration>
> 
> -----------------------------------------------
> 
> Now, the login did not work anymore. After some redirects, it gives an HTML response 403. I tried all loginCookie policy entries, but nothing worked.
> The login is to a Zendesk support system with Atlassian Crowd as a login provider. Has anything changed between 1.11 and 1.13 is something more strict than before?
> 
> 
> I found a very similar question in this mailing list (https://www.mail-archive.com/user@nutch.apache.org/msg15746.htmlfrom ) from 2017, which has no solutions.
> 
> I would appreciate any help!
> 
> Best regards
> 
> Michael
> 
> 
> Dr. Michael Fritsch
> Technical Editor
> 
> T: +49.40.325587.214
> E: michael.fritsch@coremedia.com<ma...@coremedia.com>
> 
> CoreMedia GmbH - Be iconic
> Ludwig-Erhard-Str. 18
> 20459 Hamburg, Germany
> www.coremedia.com<http://www.coremedia.com/>
> ------------------------------------------------------------
> Managing Directory: Sören Stamer
> Commercial Register: Amtsgericht Hamburg, HR B 162480
> ----------------------------------------------------------------------
> Stay up to date and follow us on 
> LinkedIn<https://www.linkedin.com/company/coremedia-corp> or 
> Twitter<https://twitter.com/contentcloud>
> 
> 

Re: FW: After update from 1.11 to 1.13 form login does not work

Posted by Sebastian Nagel <wa...@googlemail.com.INVALID>.
Hi Michael,

the only differences in the protocol-httpclient plugin between Nutch 1.11 and
1.13 are
- NUTCH-2280 [1] which allows to configure the cookie policy
- NUTCH-2355 [2] which allows to set an explicit cookie for a request URL

Could this be related?

Are there any useful hints what could be the reason in the log messages
if you set
  log4j.logger.org.apache.nutch.protocol.httpclient=TRACE
in the log4j.properties ?

Best,
Sebastian

[1] https://issues.apache.org/jira/browse/NUTCH-2280
[2] https://issues.apache.org/jira/browse/NUTCH-2355

On 5/9/22 15:30, Fritsch, Michael wrote:
> Hello,
> 
> I used nutch 1.11 to crawl pages behind a login page.
> The http-auth configuration looked like this:
> 
> ---------------------------------------------------------------------------
> <?xml version="1.0"?>
> <auth-configuration>
>   <credentials authMethod="formAuth"
>                loginUrl=loginURL<https://sso.coremedia.com/zendesk/index.jsp?brand_id=3187316&amp;locale_id=1&amp;return_to=https%3A%2F%2Fsupport.coremedia.com%2Fhc%2Fen-us&amp;timestamp=1464019963>
>                loginFormId="loginForm"
>                loginRedirect="true">
>     <loginPostData>
>       <field name="user[email]"
>              value="username"/>
>       <field name="user[password]"
>              value="password"/>
>     </loginPostData>
>     <additionalPostHeaders>
>     </additionalPostHeaders>
>   </credentials>
> </auth-configuration>
> --------------------------------------------------------------------
> 
> Everything worked fine. Then I updated to 1.13 (I also tried 1.18) and changed the configuration as described in the http-auth.xml file:
> 
> -----------------------------------------------------------------------------
> 
> <auth-configuration>
>   <credentials authMethod="formAuth"
>                loginUrl=loginURL<https://sso.coremedia.com/zendesk/index.jsp?brand_id=3187316&amp;locale_id=1&amp;return_to=https%3A%2F%2Fsupport.coremedia.com%2Fhc%2Fen-us&amp;timestamp=1464019963>
>                loginFormId="loginForm"
>                loginRedirect="true">
>     <loginPostData>
>       <field name="user[email]"
>              value="username"/>
>       <field name="user[password]"
>              value="password"/>
>     </loginPostData>
>     <additionalPostHeaders>
>     </additionalPostHeaders>
>     <removedFormFields>
>     </removedFormFields>
>     <loginCookie>
>       <policy>BROWSER_COMPATIBILITY</policy>
>     </loginCookie>
>   </credentials>
> 
> </auth-configuration>
> 
> -----------------------------------------------
> 
> Now, the login did not work anymore. After some redirects, it gives an HTML response 403. I tried all loginCookie policy entries, but nothing worked.
> The login is to a Zendesk support system with Atlassian Crowd as a login provider. Has anything changed between 1.11 and 1.13 is something more strict than before?
> 
> 
> I found a very similar question in this mailing list (https://www.mail-archive.com/user@nutch.apache.org/msg15746.htmlfrom ) from 2017, which has no solutions.
> 
> I would appreciate any help!
> 
> Best regards
> 
> Michael
> 
> 
> Dr. Michael Fritsch
> Technical Editor
> 
> T: +49.40.325587.214
> E: michael.fritsch@coremedia.com<ma...@coremedia.com>
> 
> CoreMedia GmbH - Be iconic
> Ludwig-Erhard-Str. 18
> 20459 Hamburg, Germany
> www.coremedia.com<http://www.coremedia.com/>
> ------------------------------------------------------------
> Managing Directory: Sören Stamer
> Commercial Register: Amtsgericht Hamburg, HR B 162480
> ----------------------------------------------------------------------
> Stay up to date and follow us on LinkedIn<https://www.linkedin.com/company/coremedia-corp> or Twitter<https://twitter.com/contentcloud>
> 
>