Launchpad OpenID Provider generates malformed POST assertion responses
Bug #574911 reported by
Forest
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical SSO provider |
Fix Released
|
Undecided
|
David Owen | ||
Launchpad itself |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When the Launchpad OpenID provider wants to produce an assertion that is too large for an http GET redirect, it correctly tries to produce an html form so the assertion can be POSTed instead. Unfortunately, the response it generates contains only a <form> element (no surrounding <html> or <body>) with a Content-Type of text/plain (instead of text/html). This ends up being rendered by Firefox as a raw html fragment, which is useless to the user. The OpenID assertion never reaches its destination.
This test tool can reproduce the problem:
http://
Testcase ISD_196
Related branches
lp://staging/~canonical-isd-hackers/canonical-identity-provider/bug_574911_large_assertions
- Ricardo Kirkner (community): Approve
-
Diff: 182 lines (+68/-33)3 files modifiedidentityprovider/templates/post-assertion.html (+23/-0)
identityprovider/tests/test_views_server.py (+36/-31)
identityprovider/views/server.py (+9/-2)
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |
status: | Triaged → New |
importance: | Low → Undecided |
Changed in launchpad-foundations: | |
status: | New → Invalid |
Changed in canonical-identity-provider: | |
milestone: | none → 2.6.0 |
Changed in canonical-identity-provider: | |
assignee: | nobody → David Owen (dsowen) |
Changed in canonical-identity-provider: | |
status: | New → In Progress |
tags: | added: canonical-losa-isd |
Changed in canonical-identity-provider: | |
status: | In Progress → Fix Committed |
Changed in canonical-identity-provider: | |
status: | Fix Committed → Fix Released |
description: | updated |
To post a comment you must log in.
The faulty response is coming from /<token>/+decide