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

apache should run without mod_dav #14109

Closed
jnweiger opened this issue Feb 11, 2015 · 10 comments
Closed

apache should run without mod_dav #14109

jnweiger opened this issue Feb 11, 2015 · 10 comments
Assignees
Milestone

Comments

@jnweiger
Copy link
Contributor

Currently we have e.g. on CentOS6_php54 the following modules loaded per default:
<?php phpinfo(); ?>

Loaded Modules core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_substitute mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_ajp mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_cgi mod_version mod_php5

The mod_dav module is there. If we run with 'Dav on' enabled, owncloudcmd fails like this:

02/11 15:27:32.837777, 9] oc_module:  fetch_resource_list_recursive Starting recursive propfind owncloud://monkey:88/owncloud/remote.php/webdav /owncloud/remote.php/webdav
[02/11 15:27:32.879841, 9] oc_module:  Neon error code was 1
[02/11 15:27:32.879886, 9] oc_module:  WRN: propfind named failed with 1, request error: 400 Bad Request
[02/11 15:27:32.879920, 9] oc_module:  fill_recursive_propfind_cache /owncloud/remote.php/webdav Server maybe did not give us an 'infinity' depth result
[02/11 15:27:32.879932, 9] oc_module:  get_listdir_context_from_recursive_cache No cache
[02/11 15:27:32.890488, 9] oc_module:  Neon error code was 1
[02/11 15:27:32.890543, 9] oc_module:  Neon error code was 1
[02/11 15:27:32.890566, 9] oc_module:  WRN: propfind named failed with 1, request error: 400 Bad Request
[02/11 15:27:32.890599, 9] oc_module:  Errno set to 22
[02/11 15:27:32.890619, 4] csync_ftw:  opendir failed for owncloud://monkey:88/owncloud/remote.php/webdav - errno 22
[02/11 15:27:32.890787, 6] csync_statedb_close:  sqlite3_close=0
 #### ERROR during  csync_update :  "CSync fatal parameter error. 400 Bad Request" 

Better enforce 'Dav off' in /etc/httpd/conf.d/owncloud.conf

Alias /owncloud "/var/www/html/owncloud/"
<Directory "/var/www/html/owncloud">
    Options +FollowSymLinks
    AllowOverride All
    <IfModule mod_dav.c>
        Dav off
    </IfModule>
</Directory>
@jnweiger
Copy link
Contributor Author

@cdamken @dragotin this is different from your dav issue, right?

@cdamken
Copy link
Contributor

cdamken commented Feb 11, 2015

@jnweiger
Copy link
Contributor Author

@jnweiger
Copy link
Contributor Author

Potential fix submitted to isv:ownCloud:community:testing/owncloud
Does not yet build.

@DeepDiver1975
Copy link
Member

Can this be set in htaccess as well?

@jnweiger
Copy link
Contributor Author

@deepdivee1975 I dont think so. The docs only mention httpd.conf and I got 'not allowed here' errors when I tried it in my htaccess. It must be inside a Location container.

@DeepDiver1975
Copy link
Member

we shall add this to the docs as well @carlaschroder

@DeepDiver1975 DeepDiver1975 modified the milestone: backlog Mar 21, 2015
@enoch85
Copy link
Member

enoch85 commented Mar 26, 2015

@jnweiger Will this happen with the 8.0.3 package?

@carlaschroder
Copy link

The admin manual already says to not use mod_dav with ownCloud, and shows an example for disabling it for ownCloud only. I'm not sure what you want here.

@jnweiger
Copy link
Contributor Author

jnweiger commented Jun 1, 2015

Since 8.0.3 we have

    <IfModule mod_dav.c>
      Dav off
    </IfModule>

in our owncloud.conf -- this should fix the issue.

@jnweiger jnweiger closed this as completed Jun 1, 2015
@MorrisJobke MorrisJobke modified the milestones: 8.1-current, backlog Jun 3, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants