[Zope] Growing URL's
Hannu Krosing
hannu@tm.ee
Tue, 18 Jan 2000 23:23:10 +0200
Michel Pelletier wrote:
>
> > -----Original Message-----
> > From: Sam Gendler [mailto:sgendler@impossible.com]
> >
> > Use absolute URLS (accessed via the absolute_url method) or
> > else make sure that
> > your relative urls have the correct number of ../'s. Since
> > acquisition will let
> > you access any sibling folder as a subfolder, it is possible
> > to get deeper and
> > deeper into a 'heirarchy' when you are really just accessing
> > the same folder
> > every time.
>
> Yes, this is a common new user error. It is often manefisted by using
> the wrong URLx value (like URL instead of URL1 etc). This makes an
> object, or set of objects, acquire from itself:
>
> http://host/object/object/object/object....
>
> or
>
> http://host/A/B/A/B/A/B...
>
> Threre is nothing inheritly wrong in this, you will allways get the
> correct object (and I beleive acquisition is smart enough to short
> circuit an object wrapped by itself) but it is a programming error, and
> eventually web servers and clients will complain about URL being too
> long (there is no rfc defined standard URL 'maximum' length).
It is quite easy to get it by doing a RewriteRule in access that maps
/my.site.com/a/ to /home/zope2/Zope.cgi/b/
It may not be the same "programming error" but it gives the same
result - an ever-growing number of /a/'s in url on the /manage_main page
-----------------------
Hannu