Description

On some non-root wikis you can work normally but only anonymously. If you login, authentication will be valid just for the fist page - wherever you go you'll be asked to login again.

Steps to reproduce

Setup a single Wiki with WSGI. On the on apache2.conf set something like:

and test that it works. Now change that line with something like:

You could see that it generally works fine. But in some situations if you create a user you'll see that after doing Login the authentication is not valid anymore whatever you do after the first page. At the moment it's unclear why on some wikis this problem does not occur.

Component selection

Details

MoinMoin Version

1.9

OS and Version

Ubuntu 9.10 64 bit

Python Version

2.6.4

Server Setup

WSGI

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

en

Discussion

This bug seem to exist even on a single wiki. The session files exist on the server, but on the client there is no trace of a cookie. It's not a time synchronization problem (it exists even on accessing the wiki from the server itself).

I have tried to reproduce this bug today. But I have not seen it. All works right on three different setups of non / wiki urls. Can you check if you have any old cookies in your browser and remove all of them and then to restart your experiment. It would be helpful for comparison to get your apache conf file for the example wiki and your moin.wsgi and wikiconfig.py. Also you can join us on #moin chat.freenode.net. -- ReimarBauer 2010-01-08 21:33:46

As another data point I too am seeing this behavior. I'll attach my apache config, moin.wsgi, farmwiki, and wikiconfig later when I have easier access to them. Joel Johnson 2010-01-09 07:18:35

Good news: both pathes work perfectly fine on my configuration! I'm attaching my config files in case you need to reproduce the problem.

  • [get | view] (2010-01-11 15:09:36, 8.4 KB) [[attachment:NicoZanferrari.apache2.conf]]
  • [get | view] (2010-01-12 12:25:22, 1.9 KB) [[attachment:NicoZanferrari.moin.wsgi]]
  • [get | view] (2010-01-12 12:25:56, 1.8 KB) [[attachment:NicoZanferrari.wikiconfig.py]]
 All files | Selected Files: delete move to page copy to page

Note: I've been able to reproduce the problem on another VM. It seems necessary to have the wiki data under a folder, with a structure like /wiki/mywiki1/data -- NicoZanferrari 2010-01-12 12:30:32

(!) As long as permissions are ok, I don't think the path to data_dir and data_underlay_dir matters, moin will happily work with anything you configure. -- ThomasWaldmann 2010-01-12 15:29:11

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9AuthProblemWithNonRootWiki (last edited 2010-01-12 15:29:12 by ThomasWaldmann)