Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Mike Glover
I'm working on an OpenID access control using mod_python. As part of the OpenID protocol, our code redirects (302) attempted access to a login page. Works Great. However. If I try to use mod_autoindex to view a directory, and some of the files in that directory have OpenID access control

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Mike Glover
Graham- Thanks for the reply. I have DirectoryIndex inherited from httpd.conf. The handler is a PythonHandler. Read the link you sent later -- I'm not clueful enough yet to know if that's biting me (it seems to only apply to the earlier handlers, no?) -- but yes, we are running 3.2.10.

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Graham Dumpleton
Do you have the DirectoryIndex directive defined explicitly or inherited from outer scope? What handler phase are you defining your mod_python handler in? Graham Mike Glover wrote .. I'm working on an OpenID access control using mod_python. As part of the OpenID protocol, our code redirects

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Graham Dumpleton
Still answer the questions, but you might also be getting impacted by: http://issues.apache.org/jira/browse/MODPYTHON-140 This is fixed in mod_python 3.3, but not in 3.2.10. Graham Graham Dumpleton wrote .. Do you have the DirectoryIndex directive defined explicitly or inherited from outer

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Graham Dumpleton
If you are using PythonHandler then and not an earlier phase, I don't understand why your handler is being called in the first place then for those files. Which means of creating a sub request is mod_autoindex using? I was presuming that it would be using the means of doing a sub request which

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Graham Dumpleton
Hmmm, mod_autoindex also does: if (ap_run_sub_req(rr) != OK) { /* It didn't work */ emit_amble = suppress_amble; emit_H1 = 1; } but why? So it is forcing something through to the response handler phase,

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Graham Dumpleton
Sorry for spamming the list with so many quick messages, I'll stop now. One more question first though. How are you causing the PythonHandler to be triggered? Are you using SetHandler/AddHandler or some other configuration. It would help perhaps if you post your actual Apache configuration

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Mike Glover
Graham- Here's the snippet out of .htaccess that's calling the handler: Files bar.html PythonAccessHandler mpopenid::requireOpenIDAuth PythonOption allowed-users mike.glover.myopenid.com /Files As you can see, I was wrong about it being a PythonHandler -- I was looking at a

Re: Bizarre behavior with util.redirect() and mod_autoindex

2006-09-14 Thread Graham Dumpleton
Mike Glover wrote .. Graham- Here's the snippet out of .htaccess that's calling the handler: Files bar.html PythonAccessHandler mpopenid::requireOpenIDAuth PythonOption allowed-users mike.glover.myopenid.com /Files As you can see, I was wrong about it being a