-
Notifications
You must be signed in to change notification settings - Fork 5
doesn't backup "old" calendars #20
Comments
Unfortunately, I am not very experienced with ldap. I just installed a ldap-server to one of my testing instances, but could not reproduce the issue. I need your help to debug. I am taking user Do you have access to the Nextcloud database? Could you:
Of course you should anonymize data (or create a new calendar/-entry with dummy values) |
I need to compare the database entries from a newly created calendar (which is found by calcardbackup) and an old calendar (which is not found by calcardbackup) from the very same user of ldap. Therefore, could you create a new calendar for this user and post the output of this mysql-command: SELECT calendarcolor, id, principaluri, uri, displayname FROM ncu_calendars WHERE principaluri = 'principals/users/cb3e0866-d5b6-1037-8478-fb9428484cf6'; It would be best to post the output as a code block with triple backticks (to make sure that there are no linebreaks in the mysql result) |
"sudo -u www-data ./calcardbackup "/var/www/nextcloud"
SELECT calendarcolor, id, principaluri, uri, displayname FROM oc_calendars WHERE principaluri = 'principals/users/cb3e0866-d5b6-1037-8478-fb9428484cf6';
|
Thanks, I think I found the problem: Commit ba6af79 makes calcardbackup tolerate calandercolors with more (or less) than 7 characters. This is also what sabre-davs calendar-export function does. Can you check whether ba6af79 solves the issue for you? |
thanks the fix works perfectly. All calendars are seen. The issue is solved. Any way I can donate to you for a beer or coffee? |
Fixed in v0.8.8
Thanks that is very kind of you, but not necessary. I appreciate it! |
…ssue #20) (Backport of #ba6af7973374b2e628624d2a34189167b7cec576)
Infos:
Ubuntu 18.04 Server
User are synched from LDAP Server
Nextcloud 15.0.5 (just updated from 15.0.2 didn't work there neither)
MariaDB 10.1.38
Problem:
Doesn't backup calendars of existing users/calendars. Backup of admin calendar works without a problem, it also sees the users (I assume) because of the empty adressbook it finds.
Tests:
If I create a new calendar within a user it sees it "...test-cal-shared.ics"
If I create a new user in LDAP and then create a calendar it also works "...Jodl.ics"
script is executed with
"sudo -u www-data ./calcardbackup "/var/www/nextcloud"
also tried with
"sudo -u www-data ./calcardbackup "/var/www/nextcloud -u users.txt -z"
"sudo -u www-data ./calcardbackup "/var/www/nextcloud -u users.txt -i"
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+++
more adressbooks of all users - same message
+++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The text was updated successfully, but these errors were encountered: