backplane-import / test-import

1 stars 0 forks source link

HTTP Basic authentication with xf:submission doesn't work in Firefox #2

Open backplane-import opened 13 years ago

backplane-import commented 13 years ago

Imported from backplanejs Google Code issue 6.

Reporter alex.sansom@webbackplane.com
Date 20 Nov 2009 12:28:46 PM UTC

What steps will reproduce the problem?

  1. Open the following URL in Firefox http://67.202.30.116/basic-authentication.html
  2. Click 'Submit' trigger to trigger submission
  3. Submission fails to get beyond xforms-submit

What is the expected output? What do you see instead?

I expect two separate modal xf:messages, one each for xforms-submit and xforms-submit-done followed by the display of a list of financial product names.

Please use labels and text to provide additional information.

The submission tries to retrieve the following file that is protected by HTTP Basic authentication http://xforms.localhost/protected/inst-product-list-complex.html.

The form xf:submission includes an xf:header element child element that supplies the 'Authorization' header details and username/password details as a base64 encoded string.

The form does what's expected when it's loaded with Internet Explorer (tested with IE 7).

Firefox version tested with was 3.5.5.

backplane-import commented 13 years ago

Update by philbooth on 23 Nov 2009 3:13:56 PM UTC

Owner set to philbooth

Ticket status set to Started

backplane-import commented 13 years ago

Comment by philbooth on 23 Nov 2009 4:43:53 PM UTC

This problem is occurring because the xf:name element appears to not be decorated as expected. Thus, when it is used in xforms-submission.js#setHeaders(), the browser throws an exception when the called to nodelist[0].getValue() is attempted.

backplane-import commented 13 years ago

Comment by philbooth on 24 Nov 2009 11:39:24 AM UTC

I've raised a corresponding issue in Ubiquity XForms:

http://code.google.com/p/ubiquity-xforms/issues/detail?id=612