-
Notifications
You must be signed in to change notification settings - Fork 286
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
Baikal seems to be triggering errors in PHP 8.2.2 #1244
Comments
I expect that Baikal should catch this exception and return a 412 "Precondition failed" as the response. But I don't see where that exception is handled by Baikal. I can't think why this logging of the exception would be new with PHP 8.2. What version of PHP were you using before upgrading? |
Hi Phil, Thanks for your reply, we were using PHP 7.4.26. We are using Baikal and accessing if from CardBook on Thunderbird, Up until the time we went to PHP 8.2 we were getting no Baikal errors in the php error logs, they may have been occurring previously but if they were they were not being logged. Stuart |
I'm not an actual Baikal user, I do maintenance for sabre/dav If there is anyone else with this or a similar issue, please mention here and it might help give a clue about what is happening. |
I get it too on a local, fresh Baikal install with my calendar imported. macOS Calendar seems to trigger it:
I do see the 412 in the request log line (first line), so is this just a warning? Oh I get the same from Thunderbird whilst testing btw:
It does seem to try again, if I read the last line correctly? I've seen it hundreds of times. But not anymore now that I removed the events I was playing with.
|
Windows 10 Pro
PHP 8.2.2
Apache 2.4.51
Baikal 0.9.4
PHP Error is continually repeated about 12 times a second in the log, these errors appeared after I upgraded PHP to 2.8.x. Baikal is operating OK in every respect.
Hoping someone can tell me what is causing this issue, is it an issue caused by something I have done, if so what do I need to do to fix it?
[16-Mar-2024 13:07:12 Australia/Brisbane] Sabre\DAV\Exception\PreconditionFailed: An If-Match header was specified, but none of the specified ETags matched. in C:\Apache24\htdocs\taxhunter\baikal\vendor\sabre\dav\lib\DAV\Server.php:1331
Stack trace:
#0 C:\Apache24\htdocs\taxhunter\baikal\vendor\sabre\dav\lib\DAV\Server.php(466): Sabre\DAV\Server->checkPreconditions(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
#1 C:\Apache24\htdocs\taxhunter\baikal\vendor\sabre\dav\lib\DAV\Server.php(253): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
#2 C:\Apache24\htdocs\taxhunter\baikal\vendor\sabre\dav\lib\DAV\Server.php(321): Sabre\DAV\Server->start()
#3 C:\Apache24\htdocs\taxhunter\baikal\Core\Frameworks\Baikal\Core\Server.php(119): Sabre\DAV\Server->exec()
#4 C:\Apache24\htdocs\taxhunter\baikal\html\dav.php(69): Baikal\Core\Server->start()
#5 {main}
The text was updated successfully, but these errors were encountered: