[CalendarServer] #337: Hardcoded "WebDAV:" xattr prefix breaks Linux compatibility
#337: Hardcoded "WebDAV:" xattr prefix breaks Linux compatibility ----------------------------------------+----------------------------------- Reporter: christoph_apple@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ----------------------------------------+----------------------------------- Linux requires a "user." prefix when setting extended attributes but CalendarServer uses a hardcoded "WebDAV:" prefix on various occasions. At least the following files seem to be affected: calendarserver/tools/fixcalendardata.py[[BR]] calendarserver/tools/doublequotefix.py[[BR]] contrib/tools/fix_calendar[[BR]] twistedcaldav/test/test_upgrade.py[[BR]] twistedcaldav/test/data/makelargefbset.py[[BR]] twistedcaldav/upgrade.py[[BR]] twistedcaldav/admin/util.py[[BR]] The attached patch fixes this problem for fix_calendar but has not been tested on non-Linux platforms. -- Ticket URL: <http://trac.calendarserver.org/ticket/337> CalendarServer </> HTTP/WebDAV/CalDAV Server
#337: Hardcoded "WebDAV:" xattr prefix breaks Linux compatibility ----------------------------------------+----------------------------------- Reporter: christoph_apple@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ----------------------------------------+----------------------------------- Comment(by sammys@…): I have attached a patch to fix the incompatibility when upgrading calendars from the old format to the new format (e.g calendarserver 1.2 to calendarserver 2.4). -- Ticket URL: <http://trac.calendarserver.org/ticket/337#comment:1> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#337: Hardcoded "WebDAV:" xattr prefix breaks Linux compatibility ----------------------------------------+----------------------------------- Reporter: christoph_apple@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Linux Port Component: Calendar Server | Severity: Other Keywords: | ----------------------------------------+----------------------------------- Comment(by apm@…): bin/xattr is affected as well. Maybe the correct solution is to override the whole xattr class for Linux and import linuxxattr as xattr. I've attached a linuxxattr/__init__.py -- Ticket URL: <http://trac.calendarserver.org/ticket/337#comment:2> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
participants (2)
-
Calendar and Contacts Server
-
CalendarServer