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

[Owncloud 6 RC2 & RC1] WebDAV presumably broken and deactivated in OC6 RC2 & RC1 due to invalid XML #6119

Closed
Niederfuchs opened this issue Nov 29, 2013 · 53 comments
Labels

Comments

@Niederfuchs
Copy link

Expected behaviour & Steps to reproduce

  1. Upload Files to webspace
  2. Alter .htaccess to switch off of magic quotes by adding the commands:
php_flag magic_quotes_gpc Off
php_value magic_quotes_gpc Off
  1. Chown all folders to PHP-User (to webserver)
  2. Use Install Routine.

Expected: Working Owncloud instance with working Sabre-Webdav.

Actual behaviour

After installing the Owncloud 6 RC1 the WebDAV is reported to be presumably broken.

Error in owncloud log (from RC1):

Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 76: parser error : Premature end of data in tag html line 7 at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529  2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529 2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529   2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 76: parser error : Premature end of data in tag head line 9 at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529  2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529 2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: &lt;/html&gt; at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529 2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 75: parser error : Opening and ending tag mismatch: meta line 13 and html at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529    2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529 2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: &lt;/head&gt; at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529 2013-11-29T09:53:06+00:00
Warning PHP simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 47: parser error : Opening and ending tag mismatch: meta line 14 and head at /www/htdocs/xxx/own/cloud/3rdparty/Sabre/DAV/Client.php#529

Server configuration:

Operating system: Linux dd1320 2.6.32-53-server #115-Ubuntu SMP Wed Oct 23 07:54:54 UTC 2013 x86_64

Web server: Apache2

Database: MySQL v.5.1.70

PHP version: Version 5.3.18

ownCloud version: ownCloud 6.0 RC1 (testing)

Client configuration

Browser: Firefox 25.0.1

Operating system: Windows 8.1 Professional

Further Logs

ownCloud log from RC1 (data/owncloud.log):

{"app":"PHP","message":"curl_setopt_array() [<a href='function.curl-setopt-array'>function.curl-setopt-array<\/a>]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#462","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 47: parser error : Opening and ending tag mismatch: meta line 14 and head at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: \t\t\t&lt;\/head&gt; at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: \t\t\t       ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 75: parser error : Opening and ending tag mismatch: meta line 13 and html at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: &lt;\/html&gt; at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:        ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 76: parser error : Premature end of data in tag head line 9 at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:  at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 76: parser error : Premature end of data in tag html line 7 at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:  at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"core","message":"isWebDAVWorking: NO - Reason: The passed data is not valid XML (InvalidArgumentException)","level":2,"time":"2013-11-29T09:52:38+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:42+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:43+00:00"}
{"app":"PHP","message":"curl_setopt_array() [<a href='function.curl-setopt-array'>function.curl-setopt-array<\/a>]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#462","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 47: parser error : Opening and ending tag mismatch: meta line 14 and head at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: \t\t\t&lt;\/head&gt; at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: \t\t\t       ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 75: parser error : Opening and ending tag mismatch: meta line 13 and html at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: &lt;\/html&gt; at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:        ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 76: parser error : Premature end of data in tag head line 9 at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:  at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 76: parser error : Premature end of data in tag html line 7 at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:  at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"core","message":"isWebDAVWorking: NO - Reason: The passed data is not valid XML (InvalidArgumentException)","level":2,"time":"2013-11-29T09:52:50+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:52+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:53+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:55+00:00"}
{"app":"PHP","message":"session_start() [<a href='function.session-start'>function.session-start<\/a>]: ps_files_cleanup_dir: opendir(\/tmp) failed: Permission denied (13) at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/session\/internal.php#21","level":2,"time":"2013-11-29T09:52:56+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"Undefined variable: output at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#12","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"Undefined variable: returnCode at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/movies.php#13","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#14","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"shell_exec() has been disabled for security reasons at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/preview\/office.php#16","level":2,"time":"2013-11-29T09:52:58+00:00"}
{"app":"PHP","message":"session_start() [<a href='function.session-start'>function.session-start<\/a>]: ps_files_cleanup_dir: opendir(\/tmp) failed: Permission denied (13) at \/www\/htdocs\/xxx\/own\/cloud\/lib\/private\/session\/internal.php#21","level":2,"time":"2013-11-29T09:53:00+00:00"}
{"app":"PHP","message":"curl_setopt_array() [<a href='function.curl-setopt-array'>function.curl-setopt-array<\/a>]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#462","level":2,"time":"2013-11-29T09:53:05+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 47: parser error : Opening and ending tag mismatch: meta line 14 and head at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: \t\t\t&lt;\/head&gt; at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: \t\t\t       ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 75: parser error : Opening and ending tag mismatch: meta line 13 and html at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: &lt;\/html&gt; at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:        ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 76: parser error : Premature end of data in tag head line 9 at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:  at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: Entity: line 76: parser error : Premature end of data in tag html line 7 at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]:  at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"PHP","message":"simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string<\/a>]: ^ at \/www\/htdocs\/xxx\/own\/cloud\/3rdparty\/Sabre\/DAV\/Client.php#529","level":2,"time":"2013-11-29T09:53:06+00:00"}
{"app":"core","message":"isWebDAVWorking: NO - Reason: The passed data is not valid XML (InvalidArgumentException)","level":2,"time":"2013-11-29T09:53:06+00:00"}
@karlitschek
Copy link
Contributor

Can you please try with disabled safe_mode and disabled open_basedir ?

@karlitschek
Copy link
Contributor

Can't reproduce here by the way.

@Niederfuchs
Copy link
Author

safe_mode is off
open_basedir cannot be switched off with my hoster - and php-cgi does not work, sry !

:(

@blizzz
Copy link
Contributor

blizzz commented Dec 2, 2013

I can confirm it with stable6, webDAV fails with the error log as report.
It's functional with stable5 on the same machine.

@karlitschek
Copy link
Contributor

@icewind1991 What do you think?

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

WebDAV access works for me on openSUSE 13.1 and OC 6 RC 2.
I didn't try the magic quotes setting in .htaccess, could it be related ?

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

I see this behaviour in a plain stock OC 6 RC 2 without modifications to .htaccess.

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

@blizzz which PHP versions ?
I see that @Niederfuchs has PHP 5.3.18.

I have this:
openSUSE 12.3 x86_64
PHP 5.3.17 (cli)
Zend Engine v2.3.0
apache2-2.2.22-10.8.1.x86_6
php5-xmlreader-5.3.17-3.4.1.x86_64
php5-xmlrpc-5.3.17-3.4.1.x86_64
php5-xmlwriter-5.3.17-3.4.1.x86_64

Hmm 😦

What distro do you guys have the server on ?

@Niederfuchs
Copy link
Author

For me the problem unfortunately persists in RC2.
Is another set of logs required?

P.S.:
The distro on my webspace seems to be Ubuntu at least the following is was phpinfo() says under System:
Linux dd1320 2.6.32-53-server #115-Ubuntu SMP Wed Oct 23 07:54:54 UTC 2013 x86_64

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

@PVince81 you need to provide the Apache PHP version, not the CLI one.

Here it's on my dev machine, which runs

Kubuntu 13.10.
PHP Version 5.5.3
Zend Engine v2.5.0
Apache2 2.4.6

None of the mentioned XML libs is installed. Do we have new dependencies?

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

P.S.: according to PHP Info xml, xmlreader, xmlwriter, libxml and SimpleXML are present and active/enabled. xmlrpc is also mentioned, but only in the authors action. No seperate packages however.

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

PHP Apache version is the same as CLI for me: 5.3.17.
Just checked my phpinfo and it says it uses libxml version 2.9.0.
How about yours?

@Niederfuchs
Copy link
Author

libxml version is 2.7.6
(source: phpinfo() - dom section)

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

libxml2 Version 2.9.1 (it's written in both ways, libxml and libxml2)

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Hmm, the parse error could also mean that a HTML error page came back instead of a XML content.

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Are you able to open the index.php by adding it into the URL directly ?
I remember there was some guy having trouble with the WebDAV connectivity test, but WebDAV actually worked.

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Please also try to open this URL directly in the browser: http://yourhost/owncloud/remote.php/webdav
If that shows an error HTML page, then it might explain the error.

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

which URL exactly?

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

ah, you were faster

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

@blizzz the first time I meant the index URL: http://yourhost/owncloud/index.php

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

@blizzz the first time I meant the index URL: http://yourhost/owncloud/index.php

Erm, this will give me plain, old ownCloud…

@Niederfuchs
Copy link
Author

http://yourhost/owncloud/index.php:
Gives me plain old owncloud as well

http://yourhost/owncloud/remote.php/webdav
Gives me no error.
It asks for my login and password - and then shows:
Index for /

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

When I try to connect with cadaver it fails:

$ cadaver  http://zara.owncloud.bzoc/stable6/remote.php/webdav/
Could not access /stable6/remote.php/webdav/ (not WebDAV-enabled?):
Did not find a collection resource.
Connection to `zara.owncloud.bzoc' closed.

works with stable5 however.

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

What do you guys mean with "plain old ownCloud" ? Does it mean ownCloud works or is it badly styled ?

If what you meant is that it works correctly with index.php, then there might be a problem with the isWebDAVWorking() function in lib/private/util.php. Maybe it isn't requesting the correct URL ?

Are you able to debug this @blizzz ?

@Niederfuchs
Copy link
Author

We mean that the URL is working just the way it would work without the added index.php

@Niederfuchs
Copy link
Author

I can't debug (unless you tell me how) - however - since I have a working OC6 Beta2 on the same webspace - I could copy the code of lib/private/util.php that was altered between OC6 Beta2 and OC6 RC2 and paste it in the form of code boxes - is that beneficial?

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Not sure what you mean.
If you say that it worked before in beta3 then posting a diff might help identify the issue.

@Niederfuchs
Copy link
Author

Yeah that is exactly what I meant - here you go!

--- C:/Users/xxx/Downloads/owncloud-6.0.0beta2/owncloud/lib/private/util.php    Tue Dec 03 14:35:02 2013
+++ C:/Users/xxx/Downloads/owncloud-6.0.0rc2/owncloud/lib/private/util.php  Mon Dec 02 00:22:08 2013
@@ -53,16 +53,21 @@

        //if we aren't logged in, there is no use to set up the filesystem
        if( $user != "" ) {
-           $quota = self::getUserQuota($user);
-           if ($quota !== \OC\Files\SPACE_UNLIMITED) {
-               \OC\Files\Filesystem::addStorageWrapper(function($mountPoint, $storage) use ($quota, $user) {
-                   if ($mountPoint === '/' . $user . '/'){
+           \OC\Files\Filesystem::addStorageWrapper(function($mountPoint, $storage){
+               // set up quota for home storages, even for other users
+               // which can happen when using sharing
+
+               if ($storage instanceof \OC\Files\Storage\Home) {
+                   $user = $storage->getUser()->getUID();
+                   $quota = OC_Util::getUserQuota($user);
+                   if ($quota !== \OC\Files\SPACE_UNLIMITED) {
                        return new \OC\Files\Storage\Wrapper\Quota(array('storage' => $storage, 'quota' => $quota));
-                   } else {
-                       return $storage;
                    }
-               });
-           }
+               }
+
+               return $storage;
+           });
+
            $userDir = '/'.$user.'/files';
            $userRoot = OC_User::getHome($user);
            $userDirectory = $userRoot . '/files';
@@ -353,6 +358,13 @@
            $errors = array_merge($errors, self::checkDataDirectoryPermissions($CONFIG_DATADIRECTORY));
        }

+       if(!OC_Util::isSetLocaleWorking()) {
+           $errors[] = array(
+               'error' => 'Setting locale to en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8 failed',
+               'hint' => 'Please install one of theses locales on your system and restart your webserver.'
+           );
+       }
+
        $moduleHint = "Please ask your server administrator to install the module.";
        // check if all required php modules are present
        if(!class_exists('ZipArchive')) {
@@ -425,11 +437,11 @@
            );
            $webServerRestart = true;
        }
-       if(floatval(phpversion()) < 5.3) {
+       if(version_compare(phpversion(), '5.3.8', '<')) {
            $errors[] = array(
-               'error'=>'PHP 5.3 is required.',
-               'hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher.'
-                   .' PHP 5.2 is no longer supported by ownCloud and the PHP community.'
+               'error'=>'PHP 5.3.8 or higher is required.',
+               'hint'=>'Please ask your server administrator to update PHP to the latest version.'
+                   .' Your PHP version is no longer supported by ownCloud and the PHP community.'
            );
            $webServerRestart = true;
        }
@@ -579,6 +591,7 @@
     * @return void
     */
    public static function checkAdminUser() {
+       OC_Util::checkLoggedIn();
        if( !OC_User::isAdminUser(OC_User::getUser())) {
            header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' ));
            exit();
@@ -611,6 +624,7 @@
     * @return array $groups where the current user is subadmin
     */
    public static function checkSubAdminUser() {
+       OC_Util::checkLoggedIn();
        if(!OC_SubAdmin::isSubAdmin(OC_User::getUser())) {
            header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' ));
            exit();
@@ -845,8 +859,8 @@
            return true;
        }

-       $result = setlocale(LC_ALL, 'en_US.UTF-8', 'en_US.UTF8');
-       if($result == false) {
+       \Patchwork\Utf8\Bootup::initLocale();
+       if ('' === basename('§')) {
            return false;
        }
        return true;
@@ -1096,5 +1110,18 @@
        $file = rtrim($file, '/');
        $t = explode('/', $file);
        return array_pop($t);
+   }
+
+   /**
+    * A human readable string is generated based on version, channel and build number
+    * @return string
+    */
+   public static function getHumanVersion() {
+       $version = OC_Util::getVersionString().' ('.OC_Util::getChannel().')';
+       $build = OC_Util::getBuild();
+       if(!empty($build) and OC_Util::getChannel() === 'daily') {
+           $version .= ' Build:' . $build;
+       }
+       return $version;
    }
 }

@Niederfuchs
Copy link
Author

FYI:
I need to correct - The diff above is from BETA 2 - I never tested the other Betas - so I can't say it happened from Beta 2 - to Beta 3. I went from Beta 2 - to RC 1 - so it must have happened somewhere in between !

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

There doesn't seem to be any changes related to isWebDAVWorking. It must be something else.
One idea would be to try and find out what the URL/request is and see what error page comes out.

i had a look again at your error log, and that message "CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set ". If I understand well, it means that the CURL call won't follow redirects. It seems that in some cases, if the "redirect" header is ignored, there will still be a HTML page with the message "moved permanently", which could explain the XML parse errors.

Now what I don't understand is why there is a redirect in the first place.

I tried the following URL, and there isn't any redirect on my side:

curl --max-redirs 0 http://localhost/owncloud/remote.php/webdav

or

curl --max-redirs 0 http://localhost/owncloud/remote.php/webdav/

If you try this, you can see how it a redirect page looks like:

curl --max-redirs 0 http://localhost/owncloud

Unless the test code is using a different URL...

Can you try these commands @blizzz @Niederfuchs ?

@Niederfuchs
Copy link
Author

If I am not mistaken you want me to run those commands from the console, right? Unfortunately I have no console - due to the fact that it is a simple webspace. If I got you all wrong however - I would need some help on where to run those commands. Or do you want me to exchange the URL within a certain file?

P.S.: I am no programmer - I am sry - yet eager to help.

P.P.S.:
I have 1,5 hours left - in which I am happy to sent you diffs or perform tests for you… (as long as I know how)

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Yes, from the console. Sorry, might be harder in Windows.

If that URL is accessible from the Internet you could send me the link and I can try on my side.
You can send it to me at my nick name at owncloud dot com if you don't want to share it publicly.

@Niederfuchs
Copy link
Author

Okay - I think you are on to something!
I tested your command with the BETA2 and the RC2 versions:
BETA2 replies with a
RC2 with a
However it is NOT a 301 Moved permanently (or any other error page) but the output of a really long HTML file - I will try to find out which one it is for you !

@Niederfuchs
Copy link
Author

So I am a noob but I ran your command followed by a (read that somewhere)

>>test1.html 

so it became

curl --max-redirs 0 http://localhost/owncloud/remote.php/webdav/ >>test1.html 

The result was the following file:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7"><![endif]-->
<!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7"><![endif]-->
<!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8"><![endif]-->
<!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->

    <head data-requesttoken="d83672f80e496edc917b">
        <title>
        ownCloud        </title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="apple-itunes-app" content="app-id=543672169">
        <link rel="shortcut icon" href="/own/core/img/favicon.png" />
        <link rel="apple-touch-icon-precomposed" href="/own/core/img/favicon-touch.png" />
                    <link rel="stylesheet" href="/own/core/css/styles.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                    <link rel="stylesheet" href="/own/core/css/apps.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                    <link rel="stylesheet" href="/own/core/css/fixes.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                    <link rel="stylesheet" href="/own/core/css/multiselect.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                    <link rel="stylesheet" href="/own/core/css/jquery-ui-1.10.0.custom.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                    <link rel="stylesheet" href="/own/core/css/jquery-tipsy.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                    <link rel="stylesheet" href="/own/core/css/jquery.ocdialog.css?v=078bdd6990e2259f4c1a7eb5c07a0e69" type="text/css" media="screen" />
                            <script type="text/javascript" src="/own/index.php/core/js/config.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery-1.10.0.min.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery-migrate-1.2.1.min.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery-ui-1.10.0.custom.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery-showpassword.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery.infieldlabel.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery.placeholder.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery-tipsy.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/compatibility.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery.ocdialog.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/oc-dialogs.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/js.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/octemplate.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/eventsource.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/config.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/search/js/result.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/router.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/oc-requesttoken.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/placeholder.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/3rdparty/js/md5/md5.min.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/jquery.avatar.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>
                    <script type="text/javascript" src="/own/core/js/avatar.js?v=078bdd6990e2259f4c1a7eb5c07a0e69"></script>

            </head>

    <body id="body-login">
        <div class="wrapper"><!-- for sticky footer -->
            <header><div id="header">
                <img src="/own/core/img/logo.svg" class="svg" alt="ownCloud" />
                <div id="logo-claim" style="display:none;"></div>
            </div></header>

            <ul class="error-wide">
            <li class='error'>
            Magic Quotes is enabled. ownCloud requires that it is disabled to work properly.<br/>
            <p class='hint'>Magic Quotes is a deprecated and mostly useless setting that should be disabled. Please ask your server administrator to disable it in php.ini or in your webserver config.</p>
        </li>
            <li class='error'>
            PHP modules have been installed, but they are still listed as missing?<br/>
            <p class='hint'>Please ask your server administrator to restart the web server.</p>
        </li>
    </ul>

            <div class="push"></div><!-- for sticky footer -->
        </div>

        <footer>
            <p class="info">
                <a href="http://owncloud.org" target="_blank">ownCloud</a> – web services under your control          </p>
        </footer>
    </body>
</html>

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Nice! It says the magic quotes need to be disabled. Can you double check your .htaccess ?

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

(I have no idea what magic quotes are 😬)

@Niederfuchs
Copy link
Author

Yeah!
I think that's it. The .htaccess though I edited it during the installation - was reedited last minute and kicked out those extra two lines!

php_flag magic_quotes_gpc Off
php_value magic_quotes_gpc Off

I reentered them and now the WEBDAV message is gone. I will let you know as soon as I am sure that WEBDAV truly IS working !
Thanks a bunch for your time...!

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

I wonder why the error message didn't appear when accessing the index.php page where it would have been readable...

@Niederfuchs
Copy link
Author

Beats me. Maybe that's something you can forward to the right people. I for my part am happy that it is not a showstopper bug but one that is easily solved. Thanks again !

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

I'll try and see whether I can prevent remote.php to return HTML pages as errorrs...

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

@blizzz can you confirm that you were having the magic quotes issues as well?

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

Even when I try enabling magic quotes in .htaccess (putting those lines at the end of the file, with "On"), I still can't reproduce the issue 😦

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

According to get_magic_quotes_gpc() magic quotes are disabled.

php-fpm (fastcgi) does not accept neither php_flag nor php_value, ends in a 500 when I put append them into the .htaccess

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

@blizzz so if I understand well you probably have yet another issue ? Can you try the curl commands above to find out what the error page says ?

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

just

…
<li class='error'>
Can&#039;t write into apps directory<br/>
<p class='hint'>This can usually be fixed by <a href="http://doc.owncloud.org/server/6.0/go.php?to=admin-dir_permissions" target="_blank">giving the webserver write access to the apps directory</a> or disabling the appstore in the config file.</p>
…

but I hope this is not the reason for broken webdav :)

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

@blizzz go on, check the permissions 😉

We definitely need a good way to reroute those message errors...

@blizzz
Copy link
Contributor

blizzz commented Dec 3, 2013

No the permissions, are fine.

But the config.php. If you set it up like this:

'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/home/blizzz/owncloud/dev/stable6/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/home/blizzz/owncloud/dev/stable6-apps',
      'url' => '/../stable6-apps',
      'writable' => false,
    ),
  ),

You cannot use webdav. If you set the original apps directory (exactly this) as writable => true, then webdav will work. That's stupid. I have similar setup in stable5 without problems.

@PVince81
Copy link
Contributor

PVince81 commented Dec 3, 2013

So the problem is indeed that the error message from WebDAV isn't correctly shown to the user ?
It is also weird that the message isn't shown on the login page already.

@blizzz
Copy link
Contributor

blizzz commented Dec 4, 2013

@PVince81 the problem is that there is not problem with webdav in fact. but owncloud behves like this.

@PVince81
Copy link
Contributor

Found a way to brutally reproduce this issue: remove the permissions of the "data" dir.
Then do this:

curl --max-redirs 0 http://localhost/owncloud/remote.php/webdav/

Instead of getting a SabreXML response you get an HTML page.

That's a good base to work on a proper solution.

@PVince81
Copy link
Contributor

@DeepDiver1975 the trouble with this is that in remote.php we need to include the base.php first and that one fails if permissions are wrong for example, which doesn't even leave a chance to the files app to start up and handle the exception.

So far the only quick/hacky way I see is to hard code the detection of "remote.php/webdav" in the exception handler and output a preformatted exception XML.

@PVince81
Copy link
Contributor

Closing in favor of #11834

@lock lock bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants