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

HTTP Error 500 in TbSync after Update to Baikal 0.6.0 #819

Closed
AcHub opened this issue Aug 25, 2019 · 5 comments · Fixed by #839
Closed

HTTP Error 500 in TbSync after Update to Baikal 0.6.0 #819

AcHub opened this issue Aug 25, 2019 · 5 comments · Fixed by #839

Comments

@AcHub
Copy link

AcHub commented Aug 25, 2019

Baikal version: 0.6.0

After updating from Baikal 0.5.3 to 0.6.0 I get a HTTP Error 500 when syncing calendars in Thunderbird 60.8 with TbSync (Vers. 1.7.0.2) and the DAV 4 TbSync Plugin (Vers. 0.15.0.2).
I'm not sure if it is an error in Baikal, since I dont get an error message when syncing from my phone. Maybe you can help me sort this out.

The error message is:

URL:
https://URL/html/dav.php/calendars/USER (PROPFIND)

Request:
<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>

Response:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:sabredav-version>4.0.1</s:sabredav-version>
  <s:exception>TypeError</s:exception>
  <s:message>explode() expects parameter 2 to be string, null given</s:message>
</d:error>```
@ByteHamster
Copy link
Member

Hi, it would be great if you could post a stack trace. The stack trace is written to the server logs.

@ByteHamster
Copy link
Member

Looks like it is the same problem as this one: sabre-io/dav#1178

@AcHub
Copy link
Author

AcHub commented Aug 25, 2019

Is this what you need?

[Mon Aug 26 00:12:22.324752 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: Stack trace:
[Mon Aug 26 00:12:22.324755 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #0 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/CardDAV/Plugin.php(689): explode(';', NULL)
[Mon Aug 26 00:12:22.324759 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #1 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/event/lib/WildcardEmitterTrait.php(96): Sabre\\CardDAV\\Plugin->propFindLate(Object(Sabre\\DAV\\PropFind), Object(Sabre\\CalDAV\\CalendarHome))
[Mon Aug 26 00:12:22.324764 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #2 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/Server.php(1053): Sabre\\DAV\\Server->emit('propFind', Array)
[Mon Aug 26 00:12:22.324768 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #3 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/Server.php(979): Sabre\\DAV\\Server->getPropertiesByNode(Object(Sabre\\DAV\\PropFind), Object(Sabre\\CalDAV\\CalendarHome))
[Mon Aug 26 00:12:22.324772 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #4 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/Server.php(1649): Sabre\\DAV\\Server->getPropertiesIteratorForPath('calendars/USER', Array, 0)
[Mon Aug 26 00:12:22.324776 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #5 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/CorePlugin.php(363): Sabre\\DAV\\Server->generateMultiStatus(Object(Generator), true)
[Mon Aug 26 00:12:22.324780 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #6 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/event/lib/WildcardEmitterTrait.php(96): Sabre\\DAV\\CorePlugin->httpPropFind(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))
[Mon Aug 26 00:12:22.324785 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #7 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/Server.php(464): Sabre\\DAV\\Server->emit('method:PROPFIND', Array)
[Mon Aug 26 00:12:22.324789 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #8 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/Server.php(241): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))
[Mon Aug 26 00:12:22.324793 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #9 /home/httpd/vhosts/URL/baikal.URL/vendor/sabre/dav/lib/DAV/Server.php(309): Sabre\\DAV\\Server->start()
[Mon Aug 26 00:12:22.324797 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #10 /home/httpd/vhosts/URL/baikal.URL/Core/Frameworks/Baikal/Core/Server.php(123): Sabre\\DAV\\Server->exec()
[Mon Aug 26 00:12:22.324800 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #11 /home/httpd/vhosts/URL/baikal.URL/html/dav.php(61): Baikal\\Core\\Server->start()
[Mon Aug 26 00:12:22.324810 2019] [fcgid:warn] [pid 11870] [client IP:37046] mod_fcgid: stderr: #12 {main}```

@ByteHamster
Copy link
Member

Thanks! It definitely is the same issue. I suggest to follow sabre-io/dav#1178 because the issue is caused by the sabre/dav library.

@metabubble
Copy link

Fix has been pushed to master branch in sabre

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

Successfully merging a pull request may close this issue.

3 participants