Noah Kantrowitz wrote:
> On Sep 2, 2008, at 10:35 PM, Remy Blank wrote:
>
>   
>> Ted Gifford wrote:
>>     
>>> Another option would be to have a separate handler for the  
>>> attachment list and individual attachments:
>>> /attachmentlist/wiki/Projects/Trac/ --> redir to ..../Trac
>>> /attachment/wiki/Projects/Trac/file/ --> redir to ..../file  (hmmm)
>>> /attachment/wiki/Projects/Trac/file --> single attachment: "file"
>>> Do people deep link to the attachment list much? Also, the second  
>>> redirection above has semantic troubles as well.
>>>       
>> Could you elaborate why the second redirection could be problematic?  
>> IIRC, wiki pages with a / at the end have it stripped, so there  
>> should not be any in the DB.
>>
>> -- Remy
>>
>>     
>
> Given /attachment/wiki/Page/Foo/Bar which do you have
>
> wiki page Page with attachment Foo/Bar
> wiki page Page/Foo with attachment Bar
> list of attachments on wiki page Page/Foo/Bar
>
> The first option is probably safe to make illegal since / isn't  
> generally used in file names, but the ambiguity of the last two is the  
> problem. The best option is probably to use a different character as  
> the separator between parent and attachment or move the list. Both  
> have bad URL semantics so I am all ears if someone has a better option.
>
>   
I think the conflict is resolved if we use two handlers 
(/attachment{,s}/), and then start a new convention: 
/attachment/wiki/....../file always ends in the attachment. If if there 
happens to be a wiki page of the same name/path it will be ignored. Make 
the "no such attachment" error message helpful, and people won't even 
have to email the list...one can always hope.

Ted



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to