Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precondition failed on Umlauts on iCalendar #28

Open
capocasa opened this issue Oct 8, 2023 · 2 comments
Open

Precondition failed on Umlauts on iCalendar #28

capocasa opened this issue Oct 8, 2023 · 2 comments

Comments

@capocasa
Copy link
Contributor

capocasa commented Oct 8, 2023

iCalendar doesn't like Umlauts- event with umlaut just disappears. Logs:

Relevant is the 'Test ü' in the SUMMARY tag. Against tested on recent iCalendar on Mac OS X on an M1 macbook air.

Oct 08 11:20:40 martin env[139705]: [2023-10-08 11:20:40 +0200] [139705/Thread-282] [DEBUG] Rule '':'carlo/family' matches '.*':'.*' from section 'root'
Oct 08 11:20:40 martin env[139705]: [2023-10-08 11:20:40 +0200] [139705/Thread-282] [INFO] PUT response status for '/carlo/family/BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6.ics' in 0.488 seconds: 201 Created
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [INFO] PUT request for '/carlo/family/BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6.ics' received from 10.0.7.1 (forwarded for '212.114.180.193') using 'macOS/11.0>
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Request headers:
Oct 08 11:20:53 martin env[139705]: {'CONTENT_LENGTH': '993',
Oct 08 11:20:53 martin env[139705]:  'CONTENT_TYPE': 'text/calendar',
Oct 08 11:20:53 martin env[139705]:  'GATEWAY_INTERFACE': 'CGI/1.1',
Oct 08 11:20:53 martin env[139705]:  'HTTP_ACCEPT': '*/*',
Oct 08 11:20:53 martin env[139705]:  'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',
Oct 08 11:20:53 martin env[139705]:  'HTTP_ACCEPT_LANGUAGE': 'de-de',
Oct 08 11:20:53 martin env[139705]:  'HTTP_CONNECTION': 'Keep-Alive',
Oct 08 11:20:53 martin env[139705]:  'HTTP_HOST': 'radicale.capo.casa',
Oct 08 11:20:53 martin env[139705]:  'HTTP_IF_MATCH': '"5be146149ba6c530bf8b423457742202"',
Oct 08 11:20:53 martin env[139705]:  'HTTP_USER_AGENT': 'macOS/11.0.1 (20B29) CalendarAgent/954',
Oct 08 11:20:53 martin env[139705]:  'HTTP_X_FORWARDED_FOR': '212.114.180.193',
Oct 08 11:20:53 martin env[139705]:  'HTTP_X_FORWARDED_HOST': 'radicale.capo.casa',
Oct 08 11:20:53 martin env[139705]:  'HTTP_X_FORWARDED_SERVER': 'radicale.capo.casa',
Oct 08 11:20:53 martin env[139705]:  'PATH_INFO': '/carlo/family/BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6.ics',
Oct 08 11:20:53 martin env[139705]:  'QUERY_STRING': '',
Oct 08 11:20:53 martin env[139705]:  'REMOTE_ADDR': '10.0.7.1',
Oct 08 11:20:53 martin env[139705]:  'REMOTE_HOST': '',
Oct 08 11:20:53 martin env[139705]:  'REQUEST_METHOD': 'PUT',
Oct 08 11:20:53 martin env[139705]:  'SCRIPT_NAME': '',
Oct 08 11:20:53 martin env[139705]:  'SERVER_NAME': 'martin',
Oct 08 11:20:53 martin env[139705]:  'SERVER_PORT': '5232',
Oct 08 11:20:53 martin env[139705]:  'SERVER_PROTOCOL': 'HTTP/1.1',
Oct 08 11:20:53 martin env[139705]:  'SERVER_SOFTWARE': 'WSGIServer/0.2',
Oct 08 11:20:53 martin env[139705]:  'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>,
Oct 08 11:20:53 martin env[139705]:  'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
Oct 08 11:20:53 martin env[139705]:  'wsgi.input': <_io.BufferedReader name=6>,
Oct 08 11:20:53 martin env[139705]:  'wsgi.multiprocess': False,
Oct 08 11:20:53 martin env[139705]:  'wsgi.multithread': True,
Oct 08 11:20:53 martin env[139705]:  'wsgi.run_once': False,
Oct 08 11:20:53 martin env[139705]:  'wsgi.url_scheme': 'http',
Oct 08 11:20:53 martin env[139705]:  'wsgi.version': (1, 0)}
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Base prefix (from SCRIPT_NAME): ''
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Sanitized path: '/carlo/family/BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6.ics'
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Rule '':'carlo/family/BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6.ics' matches '.*':'.*' from section 'root'
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Request content:
Oct 08 11:20:53 martin env[139705]: BEGIN:VCALENDAR
Oct 08 11:20:53 martin env[139705]: VERSION:2.0
Oct 08 11:20:53 martin env[139705]: PRODID:-//Apple Inc.//macOS 11.0.1//EN
Oct 08 11:20:53 martin env[139705]: CALSCALE:GREGORIAN
Oct 08 11:20:53 martin env[139705]: BEGIN:VTIMEZONE
Oct 08 11:20:53 martin env[139705]: TZID:Europe/Berlin
Oct 08 11:20:53 martin env[139705]: BEGIN:DAYLIGHT
Oct 08 11:20:53 martin env[139705]: TZOFFSETFROM:+0100
Oct 08 11:20:53 martin env[139705]: RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
Oct 08 11:20:53 martin env[139705]: DTSTART:19810329T020000
Oct 08 11:20:53 martin env[139705]: TZNAME:MESZ
Oct 08 11:20:53 martin env[139705]: TZOFFSETTO:+0200
Oct 08 11:20:53 martin env[139705]: END:DAYLIGHT
Oct 08 11:20:53 martin env[139705]: BEGIN:STANDARD
Oct 08 11:20:53 martin env[139705]: TZOFFSETFROM:+0200
Oct 08 11:20:53 martin env[139705]: RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
Oct 08 11:20:53 martin env[139705]: DTSTART:19961027T030000
Oct 08 11:20:53 martin env[139705]: TZNAME:MEZ
Oct 08 11:20:53 martin env[139705]: TZOFFSETTO:+0100
Oct 08 11:20:53 martin env[139705]: END:STANDARD
Oct 08 11:20:53 martin env[139705]: END:VTIMEZONE
Oct 08 11:20:53 martin env[139705]: BEGIN:VEVENT
Oct 08 11:20:53 martin env[139705]: TRANSP:OPAQUE
Oct 08 11:20:53 martin env[139705]: DTEND;TZID=Europe/Berlin:20231019T100000
Oct 08 11:20:53 martin env[139705]: DTSTART;TZID=Europe/Berlin:20231019T090000
Oct 08 11:20:53 martin env[139705]: UID:BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6
Oct 08 11:20:53 martin env[139705]: DTSTAMP:20231008T092039Z
Oct 08 11:20:53 martin env[139705]: LOCATION:test
Oct 08 11:20:53 martin env[139705]: SEQUENCE:1
Oct 08 11:20:53 martin env[139705]: X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
Oct 08 11:20:53 martin env[139705]: SUMMARY:test ü
Oct 08 11:20:53 martin env[139705]: LAST-MODIFIED:20231008T092053Z
Oct 08 11:20:53 martin env[139705]: CREATED:20231008T092017Z
Oct 08 11:20:53 martin env[139705]: RRULE:FREQ=YEARLY;INTERVAL=1
Oct 08 11:20:53 martin env[139705]: BEGIN:VALARM
Oct 08 11:20:53 martin env[139705]: X-WR-ALARMUID:D50D84DB-F4A1-4A2D-B54B-3DDDD68DCB0E
Oct 08 11:20:53 martin env[139705]: UID:D50D84DB-F4A1-4A2D-B54B-3DDDD68DCB0E
Oct 08 11:20:53 martin env[139705]: TRIGGER:-PT1H
Oct 08 11:20:53 martin env[139705]: ATTACH;VALUE=URI:Chord
Oct 08 11:20:53 martin env[139705]: ACTION:AUDIO
Oct 08 11:20:53 martin env[139705]: END:VALARM
Oct 08 11:20:53 martin env[139705]: END:VEVENT
Oct 08 11:20:53 martin env[139705]: END:VCALENDAR
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Rule '':'carlo/family' matches '.*':'.*' from section 'root'
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [DEBUG] Response content:
Oct 08 11:20:53 martin env[139705]: Precondition failed.
Oct 08 11:20:53 martin env[139705]: [2023-10-08 11:20:53 +0200] [139705/Thread-283] [INFO] PUT response status for '/carlo/family/BE12FF5E-28D7-4CAE-A114-7AB8E2E0CEF6.ics' in 0.018 seconds: 412 Precondition Failed
@jspricke
Copy link
Owner

jspricke commented Oct 8, 2023

I can't reproduce this on Debian unstable with curl -u user:p -T cal.ics "http://.... Maybe your locale is not set up correctly? Does it work without the ü for you? Precondition failed sounds rather like a problem in the radicale rules file.

@capocasa
Copy link
Contributor Author

capocasa commented Oct 9, 2023

Interesting, precondition failed seems to say the resource already exists, so this may not be the root cause, will look again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants