-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
curl_setopt_array error with SabreDAV and OwnCloud #9130
Comments
To solve this at the moment you have to unset the open_basedir php.ini config directive as stated in the message |
Ref: #1916 |
Tracked here: https://github.com/fruux/sabre-dav/issues/330 |
Oh and curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set at /lib/private/util.php#1040 @owncloud @DeepDiver1975 |
@PVince81 I just installed OC server 7.0.0. and I still need the repair method of adding the 6 lines to the .htaccess file as I mentioned on Wed Apr 16, 2014 2:09 pm at: http://forum.owncloud.org/viewtopic.php?f=26&t=20244 |
I think no. open_basedir is a bit hard to handle sometimes. This issue here is tracked at the repository of SabreDAV and just ist about this issue in this 3rd party library. |
@DanielRuf |
@VincentvgNn the title of your issue seems to correlate with another problem and does not correlate directler with SabreDAV at all. |
@DanielRuf |
@VincentvgNn Is this the only error message in your log file? Do you log/display all warnings and errors in your log file? 403 just means that you have no sufficient rights (check the chmod and chown rights of the directories, you can set them recursively). An update of ownCloud does not fix your wrong rights. How did you add this directory? Does this occur with all files/directories? The error message from SabreDAV in your error log has nothing to do with deleting files or directories. The allow and deny directives in the .htaccess file just tell the user if he is allowed to access specific files and directories. This has nothing to do with the open_basedir error of SabreDAV. These lines in your .htaccess file can also be dangerous because anonymous users can also access the files and directories now. Please take a look at the answer here: http://stackoverflow.com/questions/5081747/htaccess-order-allow-deny-deny-from-all-confused http://php.net/manual/en/ini.core.php#ini.open-basedir you can set open_basedir with I see no connection between any cURL code and your 403 error (deleting files and directories) |
@DanielRuf On the server I log/display all warnings and errors when needed.
Now at ownCloud version: 7.0.0 it's the same, except that So I find too many error messages on the server while none of them seems to correlate exactly with the "403 Forbidden" error. The 403 error is caused on the server, but is not logged there at all! I will rewrite the issue #8510 with a better title and remove the reference to the error as discussed here. |
Because the 403 error does not produce a server error in all cases. But normally it should, but it might be that ownCloud does not log this. Deleting files has nothing to do with SabreDAV and the developers of it are aware of this issue. |
@DanielRuf FYI
The same 2 messages, without any user action, at: So this should be gone when the solution by "evert" has been implemented. |
@VincentvgNn This is because the sync client and ownCloud automatically run every x minutes and when the system finds any changes (files / folder deleted ...). This has really nothing to do with your file problem (403 error) which is solely a problem with the rights of the files and folders. Please recheck the files where the 403 error occurs if the files and all folders above it have the right owner and rights. Did you add the folder manually or through the ownCloud admin panel? @DeepDiver1975 @evert @icewind1991 and rest of the ownCloud developers, please can you explain @VincentvgNn the difference between his problem/issue and the issue with open_basedir in SabreDAV? |
@DanielRuf Here I mentioned the error messages because they are logged on the server, apparently without any triggering action from the 2 connected client computers. No folder/file changes and (randomly) still so many error messages, that's the only what I see via the admin's web-interface and where I liked to inform you about. |
That is already known and the people at fruux, the developers of SabreDAV have fixed it #9130 (comment) Because this starts/runs automatically (cronjob) after visiting the website or something like this (which starts the interval). Nothing special about this. Still, this has nothing to do with any other issue. The script just runs SabreDAV for every x seconds automatically which is normal in many cases. This htaccess code is not a real solution in my opinion and can make your server insecure. This is just a workaround, but we'll see. |
As far I understand this should be fixed with newer SabreDAV versions and so likely with ownCloud 8 / 8.1 as well. |
Ok. But it would be better to work with SemVer and continue development of the major versions. Could be 1.8 instead of 8 ;-) |
I am getting
curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set at /3rdparty/Sabre/DAV/Client.php#465
after I have installed owncloudHowe can I solve this? Does this break any functionality or feature when I get this error?
The text was updated successfully, but these errors were encountered: