client icon indicating copy to clipboard operation
client copied to clipboard

OS X: remove .htaccess from sync-exclude.lst by default

Open sgcoffee opened this issue 12 years ago • 4 comments

Hi devs,

Can you please remove .htaccess by default in "sync-exclude.lst"? I am sharing website related content on my OC server. To keep the .htaccess file is important!

Thank you very much Stefan

sgcoffee avatar Feb 27 '14 19:02 sgcoffee

ownCloud won't allow you to upload .htaccess files in the default environment, this is due to security reasons as the data folder is often inside the webroot. (see https://github.com/owncloud/core/blob/7f7d674c2af4d4b9202cb55d5edf4965f92d3ab8/lib/private/files/filesystem.php#L524)

This can be adjusted by the ownCloud administrator using config.php, but I'm not sure what the impact on the client would be.

@danimo How will the client react if the server forbids uploading the file? - Trying it again and again or being clever and stop further uploads of this file? (It may be a good idea to disclose the blacklisted file names via our API)

LukasReschke avatar Feb 28 '14 10:02 LukasReschke

The server will not accept .htaccess files for security reasons. Until that has changed, this is a WONTFIX.

danimo avatar Feb 28 '14 10:02 danimo

@LukasReschke the client will throw an error, and should eventually refuse to upload the file.

danimo avatar Feb 28 '14 10:02 danimo

Ok, I will then move my web related stuff to another solution

sgcoffee avatar Mar 01 '14 21:03 sgcoffee