Login fails when logging in while accessing URL with query parameters

Bug #597324 reported by Łukasz Czyżykowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Benji York

Related branches

Revision history for this message
Gary Poster (gary) wrote :

Could you give a bit more background/information to dupe?

Thanks

Changed in launchpad-foundations:
status: New → Incomplete
Revision history for this message
Łukasz Czyżykowski (lukasz-czyzykowski) wrote :

1. log out from launchpad
2. go to this url
3. click login
4. after authenticating/confirming and clicking "Continue" to go to third party website you'll be presented with this error

Revision history for this message
Gary Poster (gary) wrote :

You didn't specify the URL to which to go ("2. go to this url"). I tried both 'https://launchpad.net/+openid-callback' and the really long one (with a nonce!) and, unsurprisingly, got "Your login was unsuccessful: Invalid openid.mode: '<No mode set>'". This seems very reasonable to me--why would someone go to the +openid-callback page unless they are in the middle of an openid dance? It also does not match your description of the bug.

I'm afraid I still do not understand your report.

Revision history for this message
Łukasz Czyżykowski (lukasz-czyzykowski) wrote :
Gary Poster (gary)
Changed in launchpad-foundations:
status: Incomplete → Triaged
importance: Undecided → Low
tags: added: openid
Gary Poster (gary)
Changed in launchpad-foundations:
assignee: nobody → Benji York (benji)
Benji York (benji)
Changed in launchpad-foundations:
status: Triaged → In Progress
Benji York (benji)
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
milestone: none → 10.08
tags: added: qa-needstesting
Revision history for this message
Benji York (benji) wrote :

QA Failed. Apparently there is some difference in behavior between the prod and dev OpenID providers. Investigating further.

tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Benji York (benji) wrote :

A branch that should fix the problem which caused QA to fail is in review.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Revision history for this message
Stuart Bishop (stub) wrote :

A test passed using a simple search query, but failed with No REFERRER Header error using the example bug URL (converting to edge). This would be because a form POST needs to be done due to the size of the query string.

Even if the Canonical SSO starts sending the REFERRER headers, that doesn't mean 3rd party OPs will provide it when we want to support them, so ideally we should relax this restriction for the login process.

tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Gary Poster (gary) wrote :

Benji, the pertinent code for what Stuart is talking about is maybeBlockOffsiteFormPost from lib/canonical/launchpad/webapp/publication.py

Revision history for this message
Benji York (benji) wrote :

The error reported in message #10 is now fixed. The last few revisions (11113 on) should be reviewed and then I'll land this branch.

Changed in launchpad-foundations:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Ursula Junque (ursinha)
Changed in launchpad-foundations:
status: Fix Released → Fix Committed
milestone: 10.08 → 10.09
Revision history for this message
Benji York (benji) wrote :

The bad behavior mentioned in #10 has been fixed and verified.

Once bug 608920 is fixed we can do final QA on this bug. It's blocked until then.

Gary Poster (gary)
Changed in launchpad-foundations:
milestone: 10.09 → 10.10
Revision history for this message
Benji York (benji) wrote :

Bug 608920 has been fixed so after verifying that I saw correct behavior, I tested this out on staging and edge. Both failed with a "Bad signature" error. Investigating.

tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Benji York (benji) wrote :

So... now I can't reproduce the "Bad signature" error. Marking qa-ok.

tags: added: qa-ok
removed: qa-bad
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.