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

Trying to request dav endpoint with POST request gives 500 Internal Server Error #1324

Closed
phil-davis opened this issue Feb 4, 2021 · 1 comment
Assignees

Comments

@phil-davis
Copy link
Contributor

See issue owncloud/core#38378

Sending no Content-Type in a POST can result in a 500 "internal server error" with traceback like:

Exception: explode() expects parameter 2 to be string, null given: {
\"Exception\":\"TypeError\",\"Message\":\"explode() expects parameter 2 to be string, null given\",\"Code\":0,\"Trace\":\"
#0 \\/home\\/dipakacharya\\/www\\/core\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Browser\\/Plugin.php(160): explode()

If the Content-Type is not specified (null) then the explode() explodes!

@phil-davis
Copy link
Contributor Author

Fixed by #1325
And fixes owncloud/core issue owncloud/core#38378

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

No branches or pull requests

1 participant