Hi, What I want to do is that if a page has a link called : http://myserver:8080/images/test.jpg I would like to translate that to http://user:password@myserver:8080/images/test.jpg However I dont want this URL appearing on the user's client, so can I use Apache rewrite rules for that.? If not what option do I have?? My config Zope 2.5.x behign Apache/Squid on RH 7.3 TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
Look at SiteAccess. -- Andy McKay www.agmweb.ca ----- Original Message ----- From: "AM" <list_subscriber@neurobs.com> To: "Zope" <zope@zope.org> Sent: Thursday, October 24, 2002 5:46 PM Subject: [Zope] Intercepting and processing URLs
Hi,
What I want to do is that if a page has a link called :
http://myserver:8080/images/test.jpg
I would like to translate that to
http://user:password@myserver:8080/images/test.jpg
However I dont want this URL appearing on the user's client, so can I use Apache rewrite rules for that.? If not what option do I have??
My config Zope 2.5.x behign Apache/Squid on RH 7.3
TIA AM
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
But how do I do it?? I wrote the following PyScript as a test case: request = container.REQUEST url= request.url if url.find(context.test2.absolute_url()) > -1: url.replace(context.test2.absolute_url(), "http://zope:zuser@myhost/test_folder/test/test2") where zope and zuser are valid manager credentials for the folder No when I set up the permission for test2 to Authenticated view only, well I get booted out and cant log in even as emergency user. I mean its a subfolder so I can undo the action from the container level and get back in, but I cant access the resource. How do I go about it.?? Where's the documentation about this?? TIA AM Andy McKay wrote:
Look at SiteAccess. -- Andy McKay www.agmweb.ca
----- Original Message ----- From: "AM" <list_subscriber@neurobs.com> To: "Zope" <zope@zope.org> Sent: Thursday, October 24, 2002 5:46 PM Subject: [Zope] Intercepting and processing URLs
Hi,
What I want to do is that if a page has a link called :
http://myserver:8080/images/test.jpg
I would like to translate that to
http://user:password@myserver:8080/images/test.jpg
However I dont want this URL appearing on the user's client, so can I use Apache rewrite rules for that.? If not what option do I have??
My config Zope 2.5.x behign Apache/Squid on RH 7.3
TIA AM
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
The main problem there is that the folder test2 is a LocalFS object, which makes me totally lost...:( AM wrote:
But how do I do it??
I wrote the following PyScript as a test case:
request = container.REQUEST url= request.url
if url.find(context.test2.absolute_url()) > -1: url.replace(context.test2.absolute_url(), "http://zope:zuser@myhost/test_folder/test/test2")
where zope and zuser are valid manager credentials for the folder
No when I set up the permission for test2 to Authenticated view only, well I get booted out and cant log in even as emergency user. I mean its a subfolder so I can undo the action from the container level and get back in, but I cant access the resource.
How do I go about it.?? Where's the documentation about this??
TIA AM
Andy McKay wrote:
Look at SiteAccess. -- Andy McKay www.agmweb.ca
----- Original Message ----- From: "AM" <list_subscriber@neurobs.com> To: "Zope" <zope@zope.org> Sent: Thursday, October 24, 2002 5:46 PM Subject: [Zope] Intercepting and processing URLs
Hi,
What I want to do is that if a page has a link called :
http://myserver:8080/images/test.jpg
I would like to translate that to
http://user:password@myserver:8080/images/test.jpg
However I dont want this URL appearing on the user's client, so can I use Apache rewrite rules for that.? If not what option do I have??
My config Zope 2.5.x behign Apache/Squid on RH 7.3
TIA AM
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
AM writes:
What I want to do is that if a page has a link called :
http://myserver:8080/images/test.jpg
I would like to translate that to
http://user:password@myserver:8080/images/test.jpg
However I dont want this URL appearing on the user's client, so can I use Apache rewrite rules for that.? When Apache knows with user and password it should add, a Rewrite rule can do that easily. But, I doubt, that this will have the effect, you expect.
"user:password" is usually interpreted by the HTTP client and converted into an "Authorization" header. While Apache functions as an HTTP client when you use a proxying rewrite rule ([P]), it may not handle this rare case correctly.
If not what option do I have?? Why do you want to do that?
When each URL is automatically converted into a correct "user:password@..." URL, you can use the original URL directly (without transformation). When it is the users "user:password", then you simply protect your target object and let Zope's security handle this case. Dieter
participants (3)
-
AM -
Andy McKay -
Dieter Maurer