Subject: | Can not login in Red Hat bugzilla |
Server: bugzilla.redhat.com/bugzilla
Trying to login in Red Hat bugzilla system fails with the following
messgae: "No such field 'Bugzilla_login' at
/usr/lib/perl5/vendor_perl/5.8.8/WWW/Mechanize.pm line 1052".
Apparently the login form is not the first one in the page but the
second (see mech-dump output below).
When I changed the _login method to use the second form instead of the
first I was able to login:
- $mech->form_number(1);
+ $mech->form_number(2);
Mech-dump output
$ mech-dump https://bugzilla.redhat.com/bugzilla/query.cgi?GoAheadAndLogIn=1
--------------------
GET https://bugzilla.redhat.com/bugzilla/show_bug.cgi
id= (text)
<NONAME>=Go (submit)
POST https://bugzilla.redhat.com/bugzilla/query.cgi
Bugzilla_login= (text)
Bugzilla_password= (password)
GoAheadAndLogIn=1 (hidden readonly)
GoAheadAndLogIn=Login (submit)
GET https://bugzilla.redhat.com/bugzilla/token.cgi
a=reqpw (hidden readonly)
loginname= (text)
<NONAME>=Submit Request (submit)
--------------------
Would it be possible to specify the bugzilla login form in the module
constructor? Maybe a named variable loginform or even a named variable
profile (possible standard, redhat, ...) with custom configurations?
TIA,
jpo