Blank page accessing formfill enabled protected resource with Access Gateway

  • 3283370
  • 06-Mar-2007
  • 26-Apr-2012

Environment


Novell Access Management 3 Access Administration
Novell Access Management 3 Linux Access Gateway
Novell Access Management 3 Netware Access Gateway
Novell Access Management 3 Linux Novell Identity Server

Situation

Form fill policy set up on an Access Gateway protected resource and appears to be filling everything properly. However, the page it generates to submit the form generates JavaScript errors. Specifically, Firefox error console complains that document.forms[0].submit is not a function, and IE doesn't work either.

Here is the source of the page generated by the Access Gateway - it just comes up blank, and nothing happens:



type="hidden" name="log" id="user_login" class="input" value="user" size="20"
tabindex="10"> value="password" size="20" tabindex="20"> id="submit" value="Login »" tabindex="100"> name="redirect_to" value="/blog/servlet/">





Resolution

Avoid using an input field named "submit". In the case above, we had the following

< input type="hidden" name="submit" id="submit" value="Login »" tabindex="100">

The Javascript engine can't differentiate between submit() (the method) and submit (the input type).

This is a javascript limitation, not a bug in formfill. So you'll either need to change the origin webserver's use of the variable"submit" or rewrite the page before Form Fill sees it.