[ZCM] [ZC] 224/ 5 Comment "FTP should not put spaces in user names"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Fri, 15 Feb 2002 09:33:55 -0500


Issue #224 Update (Comment) "FTP should not put spaces in user names"
 Status Accepted, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/224

==============================================================
= Comment - Entry #5 by edmundd on Feb 15, 2002 9:33 am

As a followup to chrisw, the one that caused problems was "System Processes" which is a username invented by Zope itself, it seemed. I certainly didn't put it in.

It seems among UN*X programs at least that expecting no spaces in usernames is acceptable.  As a matter of consistency it is odd that spaces in directory names are substituted for _ and not in user names!
________________________________________
= Accept - Entry #4 by ajung on Feb 15, 2002 9:25 am

 Status: Rejected => Accepted

 Supporters added: ajung

I disagree with chrisw because Zope allows usernames
with spaces. It's some kind of "implemented policy". And
all Zope components should be aware of this policy and
handle it a reasonable way.

-aj
________________________________________
= Reject - Entry #3 by chrisw on Feb 15, 2002 9:16 am

 Status: Pending => Rejected

If this is a problem for you, don't use usernames with spaces in them ;-)
________________________________________
= Comment - Entry #2 by edmundd on Feb 15, 2002 5:46 am

OK, I made a quick fix for this. This line should be added in at line 615 in OFS/ObjectManager.py and at line 264 at OFS/SimpleItem.py:

owner=string.replace(owner," ","_")

Also replace "import time" with "import time,string" on line 34 of OFS/SimpleItem.py.

________________________________________
= Request - Entry #1 by edmundd on Feb 14, 2002 9:45 pm

The FTP interface to Zope should not report spaces in user or group names: it should substitute these with underscores.  The spaces confuse several software packages, such as ftpfs, which split the FTP directory listing on spaces in order to find the filename. The one that caught me in particular was "System Processes"
==============================================================