AJAX broken on bug page when accessed on the wrong domain

Bug #411657 reported by Eleanor Berger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Eleanor Berger

Bug Description

If you access a bug page on a domain other than bugs. things stop working. The duplicate and privacy form no longer get initialized and the button for posting a comment disappears. The reason for that is that there are restrictions on making XHRs across domains, and the form overlays try to get their contents from the bugs domain.

Ideally, we should force using the correct domain by redirecting, but for now using the path portion of the URL instead of the full URL when setting the links works just fine.

Tags: lp-bugs
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit

Fixed in devel r9084.

Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Eleanor Berger (intellectronica) wrote :

Re-opening, since this doesn't seem to be completely fixed yet. If this gets more complicated, it's likely that the best solution will be to force a redirect to the correct domain.

Changed in malone:
status: Fix Committed → Triaged
milestone: 2.2.8 → 3.0
Deryck Hodge (deryck)
Changed in malone:
milestone: 3.0 → 3.1.10
Changed in malone:
status: Triaged → In Progress
Deryck Hodge (deryck)
Changed in malone:
status: In Progress → Fix Committed
Changed in malone:
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.