Standard error message - when host / folder need authentication
Hi, I've been strugling with error messages on sites that need authentication. I am running Zope 2.5.1 with python 2.1.3. Setup is following Zope root +-------- virtualhost one +-------- virtualhost two + +----------subdirectory +-------- virtualhost three Virtualhost one is allowed for anonymous browsing and standard error message work well there. No problem. Virtual host two's main directory is allowed, but subdirectory requires authentication. Error messages work in the main directory, but in subdirectory I get error message like below. Virtual host three requires authentication. Error messages do not work. I get error message like below. If I create standard_error_message and give access for anonymous user, it seems that on the place of the second ( indented ) error message is shown that message. Is there a way to get these error messages to work with sites that require authentication? Site Error An error was encountered while publishing this resource. NotFound Site Error An error was encountered while publishing this resource. Resource not found -huima
Chris Withers wrote:
Heimo Laukkanen wrote:
Site Error
An error was encountered while publishing this resource.
NotFound
I suspect you have a bug in your standard_error_message...
But it should be the standard error message, that comes with Zope. Strange. And it works with all the hosts that have no uathentication. I just have to dig deeper and study it more ,-) -huima
Heimo Laukkanen wrote:
I suspect you have a bug in your standard_error_message...
But it should be the standard error message,
Nah, it'll use the first oen it can acqurie that doesn't barf. IF all the ZODB ones barf, then it'll use the hardcoded one... cheers, Chris
participants (2)
-
Chris Withers -
Heimo Laukkanen