Bug#861764: [Calendarserver-maintainers] Bug#861764: closed by Guido Günther <a...@sigxcpu.org> (Re: [Calypso-maint] Bug#861764: calypso: Unicode error)
On Sat, 02 Dec 2017 15:54:01 +0100, gregor herrmann wrote: > > - check current calypso git > > https://github.com/calypso-server/calypso > > and see if this look better? I'm running current git without any issues > > since quiet some time and tests used to pass as well. > > https://github.com/calypso-server/calypso/commit/a3a397e05dca4d46bcaea237af6e5c69e5593059 > looks promising … Let's try. > > Yeah, after applying the hunk from this commit which changes webdav.py > to /usr/lib/python2.7/dist-packages/calypso/webdav.py the import > works for all ics files! With one minor glitch: The commit message now says e.g. "Modify " where it used to say "Modify $SUMMARY ($DATE $TIME)" before. Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `- NP: Alanis Morissette: King Of Pain signature.asc Description: Digital Signature
Bug#861764: [Calendarserver-maintainers] Bug#861764: closed by Guido Günther <a...@sigxcpu.org> (Re: [Calypso-maint] Bug#861764: calypso: Unicode error)
On Sat, 02 Dec 2017 15:25:22 +0100, Guido Günther wrote: > > [UPGRADE] python-vobject:amd64 0.8.1c-4 -> 0.9.5-1 > > > > and the next `calypso --import …' led to > > > > Failed to import: /tmp/whatever.ics > > Traceback (most recent call last): > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 524, in > > import_file > > self.import_item(new_item, path) > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 501, in > > import_item > > self.rewrite_file(new_item, context={}) > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 419, in > > rewrite_file > > context['action'] = u'Modify %s'%item > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: > > ordinal not in range(128) > > > > Same with 0.9.3-3; 0.8.1c-4 works. > > I won't promise that I have the time and energy to debug this in the > near future but could you please > > - attach a a file that triggers the exception It happens with all ics files I'm trying to import (and which contain non-ascii chars), e.g. http://treibhaus.at/programm.ics http://www.debconf.org/calendars/DebConf-team.ics https://anonscm.debian.org/cgit/debconf-data/dc17.git/plain/misc/until-dc17.ics > - check current calypso git > https://github.com/calypso-server/calypso > and see if this look better? I'm running current git without any issues > since quiet some time and tests used to pass as well. https://github.com/calypso-server/calypso/commit/a3a397e05dca4d46bcaea237af6e5c69e5593059 looks promising … Let's try. Yeah, after applying the hunk from this commit which changes webdav.py to /usr/lib/python2.7/dist-packages/calypso/webdav.py the import works for all ics files! Nice, thank you. Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `- NP: Bettina Wegner: die rose signature.asc Description: Digital Signature
Bug#861764: [Calendarserver-maintainers] Bug#861764: closed by Guido Günther <a...@sigxcpu.org> (Re: [Calypso-maint] Bug#861764: calypso: Unicode error)
Hi, On Sat, Dec 02, 2017 at 02:04:17PM +0100, gregor herrmann wrote: > Control: unarchive -1 > Control: reopen -1 > > > Version: python-vobject/0.9.5-1 > > > > On Wed, May 03, 2017 at 09:21:44PM +0200, Guido Günther wrote: > > > reassign 861764 python-vobject > > > forcemerge 841247 861764 > > > > > > On Wed, May 03, 2017 at 07:34:30PM +0100, Dev PICSL wrote: > > > [..snip..] > > > > Traceback (most recent call last): > > > > File "/usr/lib/python2.7/dist-packages/calypso/__init__.py", line > > > > 418, in > > > > do_PUT > > > > new_item = xmlutils.put(self.path, webdav_request, self._collection, > > > > context=context) > > > > File "/usr/lib/python2.7/dist-packages/calypso/xmlutils.py", line > > > > 242, in put > > > > return collection.append(name, webdav_request, context=context) > > > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 463, > > > > in > > > > append > > > > self.create_file(new_item, context=context) > > > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 389, > > > > in > > > > create_fiel > > > > > > Upstream python-vobject is working on a fix: > > > > > > https://github.com/eventable/vobject/issues/51 > > > > > > I've posted a workaround for calypso recently: > > > > > > https://keithp.com/pipermail/calypso/2017-April/000345.html > > > > > > which I'll push if upstream doesn't resolve the issue in the near > > > future. > > > > Fixed in the recent release. > > I'm afraid this bug is not fixed or has reappeared ... > Yesterday I did some upgrades on a machine running calypso, among > them > > [UPGRADE] python-vobject:amd64 0.8.1c-4 -> 0.9.5-1 > > and the next `calypso --import …' led to > > Failed to import: /tmp/whatever.ics > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 524, in > import_file > self.import_item(new_item, path) > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 501, in > import_item > self.rewrite_file(new_item, context={}) > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 419, in > rewrite_file > context['action'] = u'Modify %s'%item > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: > ordinal not in range(128) > > Same with 0.9.3-3; 0.8.1c-4 works. I won't promise that I have the time and energy to debug this in the near future but could you please - attach a a file that triggers the exception - check current calypso git https://github.com/calypso-server/calypso and see if this look better? I'm running current git without any issues since quiet some time and tests used to pass as well. Cheers, -- Guido
Bug#861764: closed by Guido Günther <a...@sigxcpu.org> (Re: [Calypso-maint] Bug#861764: calypso: Unicode error)
Control: unarchive -1 Control: reopen -1 > Version: python-vobject/0.9.5-1 > > On Wed, May 03, 2017 at 09:21:44PM +0200, Guido Günther wrote: > > reassign 861764 python-vobject > > forcemerge 841247 861764 > > > > On Wed, May 03, 2017 at 07:34:30PM +0100, Dev PICSL wrote: > > [..snip..] > > > Traceback (most recent call last): > > > File "/usr/lib/python2.7/dist-packages/calypso/__init__.py", line 418, > > > in > > > do_PUT > > > new_item = xmlutils.put(self.path, webdav_request, self._collection, > > > context=context) > > > File "/usr/lib/python2.7/dist-packages/calypso/xmlutils.py", line 242, > > > in put > > > return collection.append(name, webdav_request, context=context) > > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 463, in > > > append > > > self.create_file(new_item, context=context) > > > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 389, in > > > create_fiel > > > > Upstream python-vobject is working on a fix: > > > > https://github.com/eventable/vobject/issues/51 > > > > I've posted a workaround for calypso recently: > > > > https://keithp.com/pipermail/calypso/2017-April/000345.html > > > > which I'll push if upstream doesn't resolve the issue in the near > > future. > > Fixed in the recent release. I'm afraid this bug is not fixed or has reappeared ... Yesterday I did some upgrades on a machine running calypso, among them [UPGRADE] python-vobject:amd64 0.8.1c-4 -> 0.9.5-1 and the next `calypso --import …' led to Failed to import: /tmp/whatever.ics Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 524, in import_file self.import_item(new_item, path) File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 501, in import_item self.rewrite_file(new_item, context={}) File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 419, in rewrite_file context['action'] = u'Modify %s'%item UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) Same with 0.9.3-3; 0.8.1c-4 works. Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `- NP: R.E.M.: I Don't Sleep, I Dream signature.asc Description: Digital Signature signature.asc Description: Digital Signature
Bug#861764: [Calypso-maint] Bug#861764: calypso: Unicode error
reassign 861764 python-vobject forcemerge 841247 861764 On Wed, May 03, 2017 at 07:34:30PM +0100, Dev PICSL wrote: [..snip..] > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/calypso/__init__.py", line 418, in > do_PUT > new_item = xmlutils.put(self.path, webdav_request, self._collection, > context=context) > File "/usr/lib/python2.7/dist-packages/calypso/xmlutils.py", line 242, in > put > return collection.append(name, webdav_request, context=context) > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 463, in > append > self.create_file(new_item, context=context) > File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 389, in > create_fiel Upstream python-vobject is working on a fix: https://github.com/eventable/vobject/issues/51 I've posted a workaround for calypso recently: https://keithp.com/pipermail/calypso/2017-April/000345.html which I'll push if upstream doesn't resolve the issue in the near future. Cheers, -- Guido
Bug#861764: calypso: Unicode error
Package: calypso Version: 1.5-3 Severity: important Dear Maintainer, * What led up to the situation? When trying to create a calendar event in Thunderbird, where the title contains non-ascii characters, calypso, in debug mode, displays a unicode error and the event is not created. * What exactly did you do (or not) that was effective (or Ineffective)? It is the default installation. Nothing special has been done. What was the outcome of this action? You can not create events. Calypso creates a "Unicode Error" exception. * What outcome did you expect instead? Calypso fails to create events with the title with non-ascii characters. It should not be like that. -- System Information: Debian Release: 9.0 APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages calypso depends on: ii git 1:2.11.0-2 ii python 2.7.13-2 ii python-daemon2.1.2-1 ii python-lockfile 1:0.12.2-2 ii python-vobject 0.9.3-3 calypso recommends no packages. calypso suggests no packages. -- no debconf information *** /tmp/Resumen-Calypso.txt 192.168.252.30 - - [03/May/2017 14:43:50] "PUT /private/picsl/C783582E-E600-0001-6576-1FD1D56D4870.vcf HTTP/1.1" 400 - First line 'PUT /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf HTTP/1.1 ' keep-alive reqlen 240 Path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf results in collection: /private/picsl Path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf results in collection: /private/picsl owner private user desarrollo Path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf results in name: C783582E-E600-0001-F188-174014981B0F.vcf Path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf results in collection: /private/picsl Path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf results in collection: /private/picsl Path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf results in name: C783582E-E600-0001-F188-174014981B0F.vcf xmlutils put path /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf name C783582E-E600-0001-F188-174014981B0F.vcf Scan /home/desarrollo/.config/calypso/calendars/private/picsl New /home/desarrollo/.config/calypso/calendars/private/picsl/card-6Yf_0D.vcf Parse error in None /home/desarrollo/.config/calypso/calendars/private/picsl/card-6Yf_0D.vcf Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 75, in __init__ self.object = vobject.readOne(text) File "/usr/lib/python2.7/dist-packages/vobject/base.py", line 1130, in readOne allowQP)) StopIteration Insert /home/desarrollo/.config/calypso/calendars/private/picsl/card-6Yf_0D.vcf failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 246, in insert_file item = self.read_file(path) File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 241, in read_file item = Item(text, None, path) File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 75, in __init__ self.object = vobject.readOne(text) File "/usr/lib/python2.7/dist-packages/vobject/base.py", line 1130, in readOne allowQP)) StopIteration Putting a new item, because name C783582E-E600-0001-F188-174014981B0F.vcf is not known append name C783582E-E600-0001-F188-174014981B0F.vcf New item C783582E-E600-0001-F188-174014981B0F.vcf Add C783582E-E600-0001-F188-174014981B0F.vcf Failed PUT for /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/calypso/__init__.py", line 418, in do_PUT new_item = xmlutils.put(self.path, webdav_request, self._collection, context=context) File "/usr/lib/python2.7/dist-packages/calypso/xmlutils.py", line 242, in put return collection.append(name, webdav_request, context=context) File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 463, in append self.create_file(new_item, context=context) File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 389, in create_file context['action'] = u'Add %s'%item UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128) 192.168.252.30 - - [03/May/2017 14:43:51] "PUT /private/picsl/C783582E-E600-0001-F188-174014981B0F.vcf HTTP/1.1" 400 - First line 'PUT /private/picsl/C783582E-E600-0001-5522-E2A08E3014BF.vcf HTTP/1.1 ' keep-alive reqlen 239 Path /private/picsl/C783582E-E600-0001-5522-E2A08E3014BF.vcf results in collection: /private/picsl Path /private/picsl/C783582E-E600-0001-5522-E2A08E3014BF.vcf results in collection: /private/picsl owner private user desarrollo Path /private/picsl/C783582E-E600-0001-5522-E2A08E3014BF.vcf