for the record, i think it's the dhandler, not the autohandler that you 
want as far as addressing the kind of behavior indicated initially. 
while you could do it in the autohandler, you would have to have an 
exhaustive list of valid urls since the autohandler handles everything.

on the other hand, by using the dhandlers, which only get called into 
service if a requested path doesn't exist, and writing the logic in them 
  to be less tolerant of extra segments on the url, then you can make 
your site behave a little more like it is flat and static, ie you return 
a 404 for paths that don't conform to whatever scheme you have setup.

hope this helps.

Jean-Christophe ESMIOL wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> OK.
> Than you very much for this fast answer.
> It seems now that I have a bug in a autohandler (or a page) wich generate 
> a loop when I use htdig to index my website.
> the valid urls are :
>  http://www.oiml.org/download/cds/tc17_sc8_p1_1cd.pdf
>  http://www.oiml.org/download/cds.html
> 
> and htdig arrives to this kind of url :
>  
> http://www.oiml.org/download/cds.html/cds/cds/cds/cds/cds/cds/tc17_sc8_p1_1cd.pdf
> 
> Now I know that it works because it is a feature, I have to know where is 
> my bug or do a check as you wrote.
> 
> For me, the topic is closed.
> 
> Thank you very much again.
> =)
> 
> Best Regards,
> JC Esmiol
> 
> On Fri, 1 Aug 2008, Matt Warnock wrote:
> 
>> This is a feature, not a bug.  If you pass this kind of URL, then Mason
>> assumes that the added path info is part of the info needed to generate
>> the page.  That behavior is harmless as the extra info is simply
>> ignored.  If you want to generate an error instead, the you need an
>> autohandler that checks for such stuff and generates the error.
>> -  
>> Matt Warnock, President
>> RidgeCrest Herbals, Inc.
>>
>>
>> On Fri, 2008-08-01 at 18:15 +0200, Jean-Christophe ESMIOL wrote:
>>> Hello
>>>
>>> This kind of stuff work (try), and I do not want to.
>>> http://www.masonhq.com/code/history.html/test/anything/anymore/again/still/working
>>> http://www.masonhq.com/index.html/aaaa/bbbb/cccc
>>>
>>> First I thought it was due to my config, but I noticed that almost
>>> sites 
>>> working with mason have the ability...
>>> How to avoid this ?
>>>
>>> JC Esmiol
>>>
>>>
>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> 
> iD8DBQFIk0koJwAJeRKqhRkRAvFqAJ9nYn3WAFwqsfbuM/V0sSfKV1xb9QCfcrQ+
> NEFOpq3gGIn0YP0PD7Jz0ps=
> =Hmhw
> -----END PGP SIGNATURE-----
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to