Re: AuthzSVNAccessFile and collection path syntax
From: Garret Wilson <garret_at_globalmentor.com>
Date: 2005-07-09 05:43:05 CEST
Sander Striker wrote:
Garret Wilson wrote:Well, I could see accepting both, but why deny those URIs ending in '/'? That makes it hard for us anal types who like to be overly consistent...
Well (continuing my rant), *all* of the following aren't in the default httpd.config:According to general URI convention and the WebDAV specification, along with several later community discussions, the canonical way to represent a collection is with an ending slash. Technically, there could be two distinct resources, /public and /public/, only the latter of which is a collection. (The former could be a text file, for instance.)
"^gnome-vfs.*" //Gnome; see http://bugzilla.gnome.org/show_bug.cgi?id=92908 ; https://bugzilla.redhat.com/beta/show_bug.cgi?id=106290
"Microsoft Data Access Internet Publishing Provider.*" //http://lists.w3.org/Archives/Public/w3c-dist-auth/2002AprJun/0190.html
"^DAVAccess/1\\.\\..*" //iCal; see http://macintouch.com/panreader02.html
"^Dreamweaver-WebDAV-SCM1\\.0.*" //Dreamweaver MX, 2003; see http://archive.webct.com/docs/mail/nov03/0018.html
"^neon.*" //neon; see http://archive.webct.com/docs/mail/nov03/0018.html ; http://firstname.lastname@example.org/msg53373.html
"^WebDAVFS.*"), //Macintosh OS X Jaquar; see http://www.askbjoernhansen.com/archives/2002/08/27/000115.html
Yes, all this @#$! buggy clients don't treat "collection/" and redirects correctly. (My bitterness stems from hours researching these issues writing a WebDAV server from scratch, along with working in the RDF world where URIs actually mean things)
http://lists.w3.org/Archives/Public/w3c-dist-auth/2002AprJun/0190.html (entire thread)
BTW, what does the AuthzSVNAccessFile do when I have both /repos/myresource (text/plain) and /repos/myresource/ (directory), and I want to give separate restrictions on them? (Or does Subversion even allow a directory with the same name as a file?)
:) My comment was supposed to illustrate the absurdity of such a thing and advocate consistency in the other direction---ending slashes on all collections, even the root collection.The Subversion convention of no trailing slash is also inconsistent with its method of designating a repository root directory. (Consistency would call for using [repos:] as the root designation.)
Of course, this little AuthzSVNAccessFile syntax thing is a terribly tiny thing---I thought I would raise it just to make sure there was an awareness of the issue.
Subversion is awesome!
--------------------------------------------------------------------- To unsubscribe, e-mail: email@example.com For additional commands, e-mail: firstname.lastname@example.org Received on Sat Jul 9 05:44:04 2005
This is an archived mail posted to the Subversion Dev mailing list.