Error when trying to login to a wiki using openid when the wiki doesn't run under "/"

Bug #345563 reported by Andrew Glen-Young
4
Affects Status Importance Assigned to Milestone
Moin OpenID module
New
Undecided
Unassigned

Bug Description

Description:

Moin will return an error when logging in using OpenID when the wiki doesn't run under '/'.

The problem seems to be that we use PATH_INFO to redirect the request to the original page. Unfortunately this seems to not include the wiki's root directory.

i.e.

If the wiki is served from the site's '/' location:
 * wiki.example.com/foo redirect the login to /foo
 * login succeeds

If the wiki is served from the site's '/wiki' location:
 * wiki.example.com/wiki/foo redirect the login to /foo (and not /wiki/foo)
 * login fails

Steps to reproduce:

 1. Create a wiki which is served from /wiki
 2. Being logged out, log in.
 3. Enter your Launchpad details.
 4. Return to the wiki, but you're not logged in.

I have attached a quick patch to try to remedy the problem as well as the relevant Apache virtual host config and MoinMoin fastcgi script.

Tags: moin openid
Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :
Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :
Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :
affects: canonical-bis-openid → moin-openid
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.