Re: IllegalArgumentException: No form exists: user-login-form

2019-07-09 Thread Ryan Suarez
ok, so the error message is quite clear.  There is no form on that link
you provided with an id or name of 'user-login-form'.

On Mon, 2019-07-08 at 22:39 -0400, Susheel Kumar wrote:
> Hello Sebastian,
> 
> Thanks for getting back.  Here is the Login.html link which is
> throwing no
> form exists error.
> 
> https://www.dropbox.com/s/jkts0eogarfs03j/Log%20in%20.html?dl=0
> 
> Please take a look and suggest what could be wrong when trying to
> sign in
> to this site.
> 
> Also below content of auth-configuration section of httpclient-
> auth.xml
> 
> ---
>   loginUrl="https://qa.mysite.sitecorp.com/user/login;
> loginFormId="user-login-form"
> loginRedirect="false">
>  
>   value="Crawler"/>
>   value="spid3r_us"/>
>  
>  
>   value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100
> Safari/537.36"
> />
>  
>  
>
>  
>  
>BROWSER_COMPATIBILITY
>  
>
> 
> 
> 
> 
> On Wed, Jul 3, 2019 at 10:22 AM Sebastian Nagel
>  wrote:
> 
> > Hi,
> > 
> > the error message is quite clear:
> > 
> > > 2019-07-02 10:36:59,202 DEBUG httpclient.HttpFormAuthentication -
> > > No form
> > > element found with 'id' = user-login-form, trying 'name'.
> > > 2019-07-02 10:36:59,205 DEBUG httpclient.HttpFormAuthentication -
> > > No form
> > > element found with 'name' = user-login-form
> > 
> > But without access to the login page content, it's nearly
> > impossible to
> > determine
> > what's going wrong.
> > 
> > 
> > > I tried crawling the same url/login page using Selenium Chrome
> > > Drive and
> > 
> > it
> > > does load and fill in the user id/pwd text boxes.
> > 
> > Sounds like the page HTML source looks different with Selenium.
> > Note that
> > the
> > protocol-httpclient does not modify the DOM tree via Javascript, it
> > is
> > derived
> > from the bare HTML only.  That could be a reason why the form
> > element is
> > not found
> > while it works in a browser (emulation).
> > 
> > 
> > Best,
> > Sebastian
> > 


Re: IllegalArgumentException: No form exists: user-login-form

2019-07-09 Thread Sebastian Nagel
Hi Ryan,

there is one:

  

But you would need to copy the content out from dropbox, put the page on your 
own server
and try it.

Best,
Sebastian

On 7/9/19 3:21 PM, Ryan Suarez wrote:
> ok, so the error message is quite clear.  There is no form on that link
> you provided with an id or name of 'user-login-form'.
> 
> On Mon, 2019-07-08 at 22:39 -0400, Susheel Kumar wrote:
>> Hello Sebastian,
>>
>> Thanks for getting back.  Here is the Login.html link which is
>> throwing no
>> form exists error.
>>
>> https://www.dropbox.com/s/jkts0eogarfs03j/Log%20in%20.html?dl=0
>>
>> Please take a look and suggest what could be wrong when trying to
>> sign in
>> to this site.
>>
>> Also below content of auth-configuration section of httpclient-
>> auth.xml
>>
>> ---
>>  > loginUrl="https://qa.mysite.sitecorp.com/user/login;
>> loginFormId="user-login-form"
>> loginRedirect="false">
>>  
>>>   value="Crawler"/>
>>>   value="spid3r_us"/>
>>  
>>  
>>>   value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3)
>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100
>> Safari/537.36"
>> />
>>  
>>  
>>
>>  
>>  
>>BROWSER_COMPATIBILITY
>>  
>>
>>
>>
>>
>>
>> On Wed, Jul 3, 2019 at 10:22 AM Sebastian Nagel
>>  wrote:
>>
>>> Hi,
>>>
>>> the error message is quite clear:
>>>
 2019-07-02 10:36:59,202 DEBUG httpclient.HttpFormAuthentication -
 No form
 element found with 'id' = user-login-form, trying 'name'.
 2019-07-02 10:36:59,205 DEBUG httpclient.HttpFormAuthentication -
 No form
 element found with 'name' = user-login-form
>>>
>>> But without access to the login page content, it's nearly
>>> impossible to
>>> determine
>>> what's going wrong.
>>>
>>>
 I tried crawling the same url/login page using Selenium Chrome
 Drive and
>>>
>>> it
 does load and fill in the user id/pwd text boxes.
>>>
>>> Sounds like the page HTML source looks different with Selenium.
>>> Note that
>>> the
>>> protocol-httpclient does not modify the DOM tree via Javascript, it
>>> is
>>> derived
>>> from the bare HTML only.  That could be a reason why the form
>>> element is
>>> not found
>>> while it works in a browser (emulation).
>>>
>>>
>>> Best,
>>> Sebastian
>>>



Re: IllegalArgumentException: No form exists: user-login-form

2019-07-09 Thread Susheel Kumar
Thanks for the idea Sebastian.  Let me try that.


On Tue, Jul 9, 2019 at 10:15 AM Sebastian Nagel
 wrote:

> Hi Ryan,
>
> there is one:
>
>action="/user/login"
> method="post" id="user-login-form" accept-charset="UTF-8">
>
> But you would need to copy the content out from dropbox, put the page on
> your own server
> and try it.
>
> Best,
> Sebastian
>
> On 7/9/19 3:21 PM, Ryan Suarez wrote:
> > ok, so the error message is quite clear.  There is no form on that link
> > you provided with an id or name of 'user-login-form'.
> >
> > On Mon, 2019-07-08 at 22:39 -0400, Susheel Kumar wrote:
> >> Hello Sebastian,
> >>
> >> Thanks for getting back.  Here is the Login.html link which is
> >> throwing no
> >> form exists error.
> >>
> >> https://www.dropbox.com/s/jkts0eogarfs03j/Log%20in%20.html?dl=0
> >>
> >> Please take a look and suggest what could be wrong when trying to
> >> sign in
> >> to this site.
> >>
> >> Also below content of auth-configuration section of httpclient-
> >> auth.xml
> >>
> >> ---
> >>   >> loginUrl="https://qa.mysite.sitecorp.com/user/login;
> >> loginFormId="user-login-form"
> >> loginRedirect="false">
> >>  
> >> >>   value="Crawler"/>
> >> >>   value="spid3r_us"/>
> >>  
> >>  
> >> >>   value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3)
> >> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100
> >> Safari/537.36"
> >> />
> >>  
> >>  
> >>
> >>  
> >>  
> >>BROWSER_COMPATIBILITY
> >>  
> >>
> >>
> >>
> >>
> >>
> >> On Wed, Jul 3, 2019 at 10:22 AM Sebastian Nagel
> >>  wrote:
> >>
> >>> Hi,
> >>>
> >>> the error message is quite clear:
> >>>
>  2019-07-02 10:36:59,202 DEBUG httpclient.HttpFormAuthentication -
>  No form
>  element found with 'id' = user-login-form, trying 'name'.
>  2019-07-02 10:36:59,205 DEBUG httpclient.HttpFormAuthentication -
>  No form
>  element found with 'name' = user-login-form
> >>>
> >>> But without access to the login page content, it's nearly
> >>> impossible to
> >>> determine
> >>> what's going wrong.
> >>>
> >>>
>  I tried crawling the same url/login page using Selenium Chrome
>  Drive and
> >>>
> >>> it
>  does load and fill in the user id/pwd text boxes.
> >>>
> >>> Sounds like the page HTML source looks different with Selenium.
> >>> Note that
> >>> the
> >>> protocol-httpclient does not modify the DOM tree via Javascript, it
> >>> is
> >>> derived
> >>> from the bare HTML only.  That could be a reason why the form
> >>> element is
> >>> not found
> >>> while it works in a browser (emulation).
> >>>
> >>>
> >>> Best,
> >>> Sebastian
> >>>
>
>


Re: IllegalArgumentException: No form exists: user-login-form

2019-07-09 Thread Susheel Kumar
It looks like when i run the html page from my local tomcat
http://localhost:8082/mysite/ I am not getting the "no form exist" error.

What could be going wrong with actual site?  How can i debug/troubleshoot
further?

Thanks,
Susheel

On Tue, Jul 9, 2019 at 10:08 PM Susheel Kumar  wrote:

> Thanks for the idea Sebastian.  Let me try that.
>
>
> On Tue, Jul 9, 2019 at 10:15 AM Sebastian Nagel
>  wrote:
>
>> Hi Ryan,
>>
>> there is one:
>>
>>   > action="/user/login"
>> method="post" id="user-login-form" accept-charset="UTF-8">
>>
>> But you would need to copy the content out from dropbox, put the page on
>> your own server
>> and try it.
>>
>> Best,
>> Sebastian
>>
>> On 7/9/19 3:21 PM, Ryan Suarez wrote:
>> > ok, so the error message is quite clear.  There is no form on that link
>> > you provided with an id or name of 'user-login-form'.
>> >
>> > On Mon, 2019-07-08 at 22:39 -0400, Susheel Kumar wrote:
>> >> Hello Sebastian,
>> >>
>> >> Thanks for getting back.  Here is the Login.html link which is
>> >> throwing no
>> >> form exists error.
>> >>
>> >> https://www.dropbox.com/s/jkts0eogarfs03j/Log%20in%20.html?dl=0
>> >>
>> >> Please take a look and suggest what could be wrong when trying to
>> >> sign in
>> >> to this site.
>> >>
>> >> Also below content of auth-configuration section of httpclient-
>> >> auth.xml
>> >>
>> >> ---
>> >>  > >> loginUrl="https://qa.mysite.sitecorp.com/user/login;
>> >> loginFormId="user-login-form"
>> >> loginRedirect="false">
>> >>  
>> >>> >>   value="Crawler"/>
>> >>> >>   value="spid3r_us"/>
>> >>  
>> >>  
>> >>> >>   value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3)
>> >> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100
>> >> Safari/537.36"
>> >> />
>> >>  
>> >>  
>> >>
>> >>  
>> >>  
>> >>BROWSER_COMPATIBILITY
>> >>  
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> On Wed, Jul 3, 2019 at 10:22 AM Sebastian Nagel
>> >>  wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> the error message is quite clear:
>> >>>
>>  2019-07-02 10:36:59,202 DEBUG httpclient.HttpFormAuthentication -
>>  No form
>>  element found with 'id' = user-login-form, trying 'name'.
>>  2019-07-02 10:36:59,205 DEBUG httpclient.HttpFormAuthentication -
>>  No form
>>  element found with 'name' = user-login-form
>> >>>
>> >>> But without access to the login page content, it's nearly
>> >>> impossible to
>> >>> determine
>> >>> what's going wrong.
>> >>>
>> >>>
>>  I tried crawling the same url/login page using Selenium Chrome
>>  Drive and
>> >>>
>> >>> it
>>  does load and fill in the user id/pwd text boxes.
>> >>>
>> >>> Sounds like the page HTML source looks different with Selenium.
>> >>> Note that
>> >>> the
>> >>> protocol-httpclient does not modify the DOM tree via Javascript, it
>> >>> is
>> >>> derived
>> >>> from the bare HTML only.  That could be a reason why the form
>> >>> element is
>> >>> not found
>> >>> while it works in a browser (emulation).
>> >>>
>> >>>
>> >>> Best,
>> >>> Sebastian
>> >>>
>>
>>