Ticket #13383 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

calendaring/ics :empty website description breaks unicode handling

Reported by: public@… Owned by:
Priority: major Milestone: 4.x
Component: General Version: 4.2
Keywords: ics, calendaring Cc:

Description (last modified by kleist) (diff)

Creating @@ics_view failed with the following Error messages:

Fehlertyp
UnicodeDecodeError
Fehlerwert
'ascii' codec can't decode byte 0xc3 in position 275: ordinal not in range(128)
Traceback (innermost last):

Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Products.ATContentTypes.browser.calendar, line 42, in render
Module plone.memoize.volatile, line 283, in replacement
Module Products.ATContentTypes.browser.calendar, line 51, in feeddata
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 275: ordinal not in range(128)

This seems to happen, when one of our (german) users uses a non ascii character in a event-object.

The problem "magically" can be fixed by adding a website description.

I guess data += 'X-WR-CALDESC:%s\n' % context.Description() with nonempty Descriptoon makes "data" a unicode string ? (no python programmer myself)

Change History

comment:1 Changed 3 years ago by kleist

  • Status changed from new to confirmed
  • Priority changed from minor to major
  • Component changed from Unknown to General
  • Description modified (diff)
Note: See TracTickets for help on using tickets.