Welcome, Guest
Please Login or Register.    Lost Password?

Rainlendar 2.14 BETA build 151
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: Rainlendar 2.14 BETA build 151
#24502
Re:Rainlendar 2.14 BETA build 151 3 Months, 4 Weeks ago  
Bug: CalDav - Precondition failed

I still get occasional precondition failed errors when syncing. I hope this is a reliable way to reproduce the bug:

1) Enable 'Keep offline copy' in Rainlendar (CalDav account)
1) Create event with 2nd calendar client (not Rainlendar)
2) Sync Rainlendar (event appears properly)
3) Delete event with 2nd client
4) Sync Rainlendar (-> Error: Server responding: Precondition failed)

Not tested thoroughly but one test with 'Keep offline copy' disabled did not bring up the error and the event vanished properly. Will test again tomorrow with new Radicale version (v2.1.2).

Arch Linux
Radicale v2.1.1 (CalDav server)

This is the partial Radicale log:
Code:

2017-07-25 02:26:41,409 - [7f455596b700] INFO: REPORT response status for '/maniaxx/d39f2e64-98fe-1f28-434a-0109bc420eae/' with depth '1' in 1.004 seconds: 207 Multi-Status
2017-07-25 02:26:41,424 - [7f455596b700] INFO: PUT request for '/maniaxx/d39f2e64-98fe-1f28-434a-0109bc420eae/d3072e98-cadf-47d8-a536-7d18acb9a72c.ics' received from 192.168.1.2 using 'Rainlendar-CalDAVPlugin/1.0'
2017-07-25 02:26:41,424 - [7f455596b700] DEBUG: Request headers:
{'CONTENT_LENGTH': '430',
 'CONTENT_TYPE': 'text/calendar',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': '*/*',
 'HTTP_AUTHORIZATION': 'Basic **masked**',
 'HTTP_EXPECT': '100-continue',
 'HTTP_HOST': '192.168.1.2:5232',
 'HTTP_IF_MATCH': '"53aca1565107c736034d461fa61bd122"',
 'HTTP_USER_AGENT': 'Rainlendar-CalDAVPlugin/1.0',
 'PATH_INFO': '/maniaxx/d39f2e64-98fe-1f28-434a-0109bc420eae/d3072e98-cadf-47d8-a536-7d18acb9a72c.ics',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.1.2',
 'REMOTE_CERTIFICATE': None,
 'REMOTE_HOST': '',
 'REQUEST_METHOD': 'PUT',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'radicale',
 'SERVER_PORT': '5232',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'WSGIServer/0.2',
 'wsgi.errors': <_io.StringIO object at 0x7f4558edda68>,
 'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
 'wsgi.input': <_io.BufferedReader name=8>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}
2017-07-25 02:26:41,425 - [7f455596b700] DEBUG: Sanitized script name: ''
2017-07-25 02:26:41,425 - [7f455596b700] DEBUG: Sanitized path: '/maniaxx/d39f2e64-98fe-1f28-434a-0109bc420eae/d3072e98-cadf-47d8-a536-7d18acb9a72c.ics'
2017-07-25 02:26:41,704 - [7f455596b700] INFO: Successful login: 'maniaxx'
2017-07-25 02:26:42,424 - [7f455596b700] DEBUG: Request content:
BEGIN:VCALENDAR
PRODID:-//Rainlendar/CalDAVPlugin V1.4//EN
VERSION:2.0
BEGIN:VEVENT
UID:d3072e98-cadf-47d8-a536-7d18acb9a72c
DTSTART;VALUE=DATE:20170726
DTEND;VALUE=DATE:20170727
DTSTAMP:20170725T002314Z
SUMMARY:test
X-RAINLENDAR-CALDAV-HREF:
 /maniaxx/d39f2e64-98fe-1f28-434a-0109bc420eae/d3072e98-cadf-47d8-a536-7d18acb
 9a72c.ics
X-RAINLENDAR-CALDAV-ETAG:"53aca1565107c736034d461fa61bd122"
END:VEVENT
END:VCALENDAR

2017-07-25 02:26:42,425 - [7f455596b700] DEBUG: Response content:
Precondition failed.
2017-07-25 02:26:42,426 - [7f455596b700] INFO: PUT response status for '/maniaxx/d39f2e64-98fe-1f28-434a-0109bc420eae/d3072e98-cadf-47d8-a536-7d18acb9a72c.ics' in 1.002 seconds: 412 Precondition Failed

Maniaxx
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2017/07/24 20:14 By Maniaxx.
The administrator has disabled public write access.
 
#24505
Re:Rainlendar 2.14 BETA build 151 3 Months, 4 Weeks ago  
I think the problem in this scenario is that when Rainlendar does the last sync it thinks that there is a new event in the offline file since it doesn't exist anymore in the online calendar and then tries to upload it to the server. The server doesn't accept the event since it was already deleted from there. I'll need to check if it would be possible to know when the event gets deleted from the server so that Rainlendar doesn't try to sync it back to it.
Rainy
Moderator
Posts: 6871
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#24508
Re:Rainlendar 2.14 BETA build 151 3 Months, 4 Weeks ago  
Bug: Window placement with CalDav accounts (Linux)

When using CalDav account the 'events' and 'tasks' windows are placed in the center of the screen when clicking the Rainlendar icon in the info area. When they get moved just one pixel they jump back to the correct position immediately. The main window is not affected. This doesn't happen with offline calendars. The wrong position (center position here) might vary depending on the systems window manager. Here it is Xorg/XFCE.
Maniaxx
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234
get the latest posts directly to your desktop