Hi I encounter a strange problem with a link in hand-coded HTML pointing at a directory in the directory tree. I allow the owner of a site to upload images to a specific directory in the tree. I created a custom page for links to "editing" pages with a link like this: <a href="/shopping/pictures/manage_main" target="_blank" title="Show pictures directory">Show pictures directory</a> When the page is rendered in either IE5, IE6 or Mozilla, the link suddenly shows as: /shopping/pictures/manage_workspace (manage_main replace by manage_workspace) The link takes the user back to the index_html in /shopping. (I think it just looks for an index_html up the tree.) But I want the user to use the management screens, so I don't need to write a custom interface for managing the images. I tried clearing the browser cache, also coded the link absolute with domain. In Safari, it works fine. No re-write, link appears as coded and works! Has somebody encountered this? Zope 2.3 on Solaris 8; Intel-box. Cheers Marc
On Wed, Oct 29, 2003 at 03:41:59AM +0000, Marc Burgauer wrote:
Hi
I encounter a strange problem with a link in hand-coded HTML pointing at a directory in the directory tree.
I allow the owner of a site to upload images to a specific directory in the tree. I created a custom page for links to "editing" pages with a link like this:
<a href="/shopping/pictures/manage_main" target="_blank" title="Show pictures directory">Show pictures directory</a>
When the page is rendered in either IE5, IE6 or Mozilla, the link suddenly shows as: /shopping/pictures/manage_workspace (manage_main replace by manage_workspace)
Did you ever have it as manage_main? If you did, then you can be sure that the problem is cacheing. If you're using ZEO, be sure not to use the 2.0b series, it had a cacheing bug. Otherwise, it's your browser, or a cacheing proxy between zope and the browser, but you didn't mention that.
I tried clearing the browser cache, also coded the link absolute with domain.
I have had IE lie to me before. e.g. re-writing source code in the "show source" view. It's my first suspect in all such problems. Clearing the cache is not sufficient if you're currently viewing the page, for some reason.
In Safari, it works fine. No re-write, link appears as coded and works!
browser issues for sure then.
Has somebody encountered this?
Zope 2.3 on Solaris 8; Intel-box.
that's an ancient zope! -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's JUMBO NEWBIE ISMUS! (random hero from isometric.spaceninja.com)
Marc Burgauer wrote at 2003-10-29 03:41 +0000:
... I allow the owner of a site to upload images to a specific directory in the tree. I created a custom page for links to "editing" pages with a link like this:
<a href="/shopping/pictures/manage_main" target="_blank" title="Show pictures directory">Show pictures directory</a>
When the page is rendered in either IE5, IE6 or Mozilla, the link suddenly shows as: /shopping/pictures/manage_workspace (manage_main replace by manage_workspace)
This may be a "redirect". Check your Apache/ZServer log file. The "ZServer" log file is (per default) in "var/Z2.log".
The link takes the user back to the index_html in /shopping. (I think it just looks for an index_html up the tree.) But I want the user to use the management screens, so I don't need to write a custom interface for managing the images.
"manage_workspace" displays the management page for the object depending on the users rights. It redirects to the first tab the user has rights to view. In your case, this seems to be the "View" tab. Therefore, I expect your problem is an authorization problem. Check that the user has the necessary rights to view an tab before the "View" tab. -- Dieter
participants (3)
-
Dieter Maurer -
Marc Burgauer -
Paul Winkler