-
Notifications
You must be signed in to change notification settings - Fork 347
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
Sabre\DAV\Exception\InvalidSyncToken: Invalid or unknown sync token #1490
Comments
There is not really much we can do (see owncloud/core#30820) Apple is not compliant to the specs and is basically ignored since 2018. I have little hope they will fix their software. Feel free to try the hack at your own risk. 🙈 |
Than you very much for this kind answer, DeepDiver1975. The problem is that the .php file I have to edit is slightly different than the example shown by joostdekeijzer. It states line 119 : https://github.com/sabre-io/dav/blob/3.2/lib/DAV/Sync/Plugin.php#L119, but I see the same stuff in my .php file on line 116 and I don't clearly understand what joostdekeijzer means by adding after line 119 (it seems to be the beginning of something).... |
This is in joostdekeijzer file :
What's in mine :
I know I may break things, but I would like to try, because it seems promising. Where should I insert the lines ? I am not a coder and I don't clearly understand, so any help would be much appreciated. |
Should this section look like this when code portion in inserted ? $syncToken = $report->syncToken;
|
I also found this post : https://developer.apple.com/forums/thread/691818 |
Hello everyone and sorry if this issue has already been documented.
I have repeated errors of the same kind in my php error log, and the sync process between client and server doesn't work :
[29-Sep-2023 10:35:00 Europe/Paris] Sabre\DAV\Exception\InvalidSyncToken: Invalid or unknown sync token in /home/mydomain/public_html/vendor/sabre/dav/lib/DAV/Sync/Plugin.php:116
Stack trace:
#0 /home/mydomain/public_html/vendor/sabre/dav/lib/DAV/Sync/Plugin.php(62): Sabre\DAV\Sync\Plugin->syncCollection()
#1 /home/mydomain/public_html/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\Sync\Plugin->Sabre\DAV\Sync{closure}()
#2 /home/mydomain/public_html/vendor/sabre/dav/lib/DAV/CorePlugin.php(685): Sabre\DAV\Server->emit()
#3 /home/mydomain/public_html/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\DAV\CorePlugin->httpReport()
#4 /home/mydomain/public_html/vendor/sabre/dav/lib/DAV/Server.php(472): Sabre\DAV\Server->emit()
#5 /home/mydomain/public_html/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\DAV\Server->invokeMethod()
#6 /home/mydomain/public_html/vendor/sabre/dav/lib/DAV/Server.php(321): Sabre\DAV\Server->start()
#7 /home/mydomain/public_html/Core/Frameworks/Baikal/Core/Server.php(119): Sabre\DAV\Server->exec()
#8 /home/mydomain/public_html/html/dav.php(69): Baikal\Core\Server->start()
#9 {main}
I tried to update a contact (or add a new one), it stays on the client but doesn't record in the server, meaning it is not available for other clients.
The section it is referring to is that one :
$syncToken = $report->syncToken;
if (!is_null($syncToken)) {
// Sync-token must start with our prefix
if (self::SYNCTOKEN_PREFIX !== substr($syncToken, 0, strlen(self::SYNCTOKEN_PREFIX))) {
throw new DAV\Exception\InvalidSyncToken('Invalid or unknown sync token');
}
By performing searches on the Internet, I found a post with this workaround :
What to think about this ?
Mac OS 10.13.6
DEBIAN 10 - Baïkal 0.9.3
Thanks everyone !
The text was updated successfully, but these errors were encountered: