[Zope-CMF] webdav & ids with spaces

Dieter Maurer dieter@handshake.de
Fri, 15 Jun 2001 21:44:01 +0200 (CEST)


seb bacon writes:
 > WebDAV won't work if you try to upload a file whose name contains a
 > space.  apropos my mail yesterday about comprehensible ids, this can
Spaces are not allowed in HTTP URL's.
 > easily be fixed by putting
 >  
 >  name = self.cookId(name)
 > 
 > in the PUT_factory.  however, this is a problem with Zope's webdav
 > rather than the CMF.  this raises the question as to whether or not
 > 'correcting' an id is desirable behaviour or not.  As I mentioned in
 > my other mail, I believe users don't need to know about ids, and
 > they're the people who matter.  With webdav, it's more of problem
 > since there's no mechanism for passing error messages back; it just
 > fails with error 500.
 > 
 > Should ids be corrected by default, or not?
I would not like it:

  Ids become part of URLs. I use them in "src" and "href"
  attributes. I would not like if they would be changed
  when a new object is created.


Dieter