Failure in XMLHttpRequest/send-authentication-basic.htm

RESOLVED FIXED in Firefox 67

Status

()

defect
P3
normal
RESOLVED FIXED
2 years ago
2 months ago

People

(Reporter: shawnjohnjr, Assigned: twisniewski)

Tracking

(Blocks 1 bug)

unspecified
mozilla67
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox67 fixed)

Details

Attachments

(1 attachment)

XMLHttpRequest: send() - "Basic" authenticated requests with user name and password passed to open()	

assert_equals: expected "DID" but got "DID-NOT"
Assignee: nobody → shuang
I think the reason of failure is relate to the previous test case had already did authentication.



[task 2017-05-31T09:18:47.341026Z] 09:18:47     INFO - TEST-START | /XMLHttpRequest/send-authentication-basic-cors.htm
[task 2017-05-31T09:18:47.412761Z] 09:18:47     INFO - PID 1531 | 1496222327409	Marionette	DEBUG	loaded listener.js
[task 2017-05-31T09:18:47.555653Z] 09:18:47     INFO - .
[task 2017-05-31T09:18:47.555992Z] 09:18:47     INFO - TEST-OK | /XMLHttpRequest/send-authentication-basic-cors.htm | took 216ms
[task 2017-05-31T09:18:47.556454Z] 09:18:47     INFO - TEST-START | /XMLHttpRequest/send-authentication-basic-repeat-no-args.htm
[task 2017-05-31T09:18:47.635050Z] 09:18:47     INFO - PID 1531 | 1496222327633	Marionette	DEBUG	loaded listener.js
[task 2017-05-31T09:18:47.821242Z] 09:18:47     INFO - .
[task 2017-05-31T09:18:47.822230Z] 09:18:47     INFO - TEST-OK | /XMLHttpRequest/send-authentication-basic-repeat-no-args.htm | took 265ms
[task 2017-05-31T09:18:47.822299Z] 09:18:47     INFO - TEST-START | /XMLHttpRequest/send-authentication-basic-setrequestheader-and-arguments.htm
[task 2017-05-31T09:18:47.885133Z] 09:18:47     INFO - PID 1531 | 1496222327882	Marionette	DEBUG	loaded listener.js
[task 2017-05-31T09:18:48.037133Z] 09:18:48     INFO - .
[task 2017-05-31T09:18:48.037891Z] 09:18:48     INFO - TEST-OK | /XMLHttpRequest/send-authentication-basic-setrequestheader-and-arguments.htm | took 215ms
[task 2017-05-31T09:18:48.038597Z] 09:18:48     INFO - TEST-START | /XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm
[task 2017-05-31T09:18:48.107105Z] 09:18:48     INFO - PID 1531 | 1496222328102	Marionette	DEBUG	loaded listener.js
[task 2017-05-31T09:18:48.302770Z] 09:18:48     INFO - .
[task 2017-05-31T09:18:48.303686Z] 09:18:48     INFO - TEST-OK | /XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm | took 265ms
[task 2017-05-31T09:18:48.303761Z] 09:18:48     INFO - TEST-START | /XMLHttpRequest/send-authentication-basic-setrequestheader.htm
[task 2017-05-31T09:18:48.377280Z] 09:18:48     INFO - PID 1531 | 1496222328373	Marionette	DEBUG	loaded listener.js
[task 2017-05-31T09:18:48.568601Z] 09:18:48     INFO - .
[task 2017-05-31T09:18:48.568851Z] 09:18:48     INFO - TEST-OK | /XMLHttpRequest/send-authentication-basic-setrequestheader.htm | took 266ms
[task 2017-05-31T09:18:48.569406Z] 09:18:48     INFO - TEST-START | /XMLHttpRequest/send-authentication-basic.htm
[task 2017-05-31T09:18:48.627002Z] 09:18:48     INFO - PID 1531 | 1496222328625	Marionette	DEBUG	loaded listener.js
[task 2017-05-31T09:18:48.783944Z] 09:18:48     INFO - 
[task 2017-05-31T09:18:48.784275Z] 09:18:48     INFO - TEST-UNEXPECTED-FAIL | /XMLHttpRequest/send-authentication-basic.htm | XMLHttpRequest: send() - "Basic" authenticated requests with user name and password passed to open() - assert_equals: expected "DID" but got "DID-NOT"
[task 2017-05-31T09:18:48.784520Z] 09:18:48     INFO - @http://web-platform.test:8000/XMLHttpRequest/send-authentication-basic.htm:22:9
[task 2017-05-31T09:18:48.784835Z] 09:18:48     INFO - Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1405:20
[task 2017-05-31T09:18:48.785900Z] 09:18:48     INFO - test@http://web-platform.test:8000/resources/testharness.js:497:9
[task 2017-05-31T09:18:48.785950Z] 09:18:48     INFO - @http://web-platform.test:8000/XMLHttpRequest/send-authentication-basic.htm:14:7
[task 2017-05-31T09:18:48.785989Z] 09:18:48     INFO - TEST-OK | /XMLHttpRequest/send-authentication-basic.htm | took 215ms
Priority: -- → P3

Updated

2 years ago
Blocks: xhr
Assignee: shuang → nobody
Assignee

Comment 3

2 months ago

Shawn's analysis here seems to have been correct.

It looks as though some of the send/auth XHR web platform tests are mistakenly re-using the same auth1 landing. Since those landings are only meant to be valid once per session, the test should logically use a unique landing to avoid causing the next test to potentially fail.

I've got a patch on try here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1f10a819a3b508aa2f644c6fe66818dd1c67b2c8

Assignee

Comment 4

2 months ago

fix some WPTs to not re-use the same 'valid once per session' auth landing, which incorrectly causes test-failures.

Assignee

Comment 5

2 months ago

Since I'm not sure if you'll see the request on Phabricator, I though I should ni? you here so you know about it, Anne.

Flags: needinfo?(annevk)

Comment 6

2 months ago

Reviewed, thanks for fixing these! (And I do get Phabricator email, just a bit swamped yesterday.)

Flags: needinfo?(annevk)

Comment 7

2 months ago
Pushed by twisniewski@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15affcdf9d0d
fix some WPTs to not re-use the same 'valid once per session' auth landing, which incorrectly causes test-failures. r=annevk

Comment 8

2 months ago
bugherder
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Assignee: nobody → twisniewski
Component: DOM → DOM: Core & HTML
Product: Core → Core
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/15889 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.