-
Notifications
You must be signed in to change notification settings - Fork 670
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
Remove .htaccess from ignored file list #5701
Comments
FYI @pmaier1 @michaelstingl I remember some discussion |
You can edit the local The thing is that .htaccess files that are deeper in the hierarchy can override the .htaccess file ownCloud provides in it's main directory which can cause security issues afaik. We need to check if this can be disabled in the main .htaccess or if there's another way to prevent it. Also the server should decide which files really can't be synced. In general all files that do not have a real justification for not being synced (like '.part' which is not accepted by the server for architecture reasons) should be removed from the list or not be excluded by default to avoid files not being synced without the user noticing or without the ability to change it. I think we also agree on switching the default of 'Sync hidden files' to enabled as discussed here |
Related: https://github.com/owncloud/documentation/issues/2832 |
No you can't. You can only add things to the local config file, not remove. We could remove it from the default ignore list on the client, but it would still cause error because it is blacklisted on the server. But we would show a relevant error message in that case. Personally, i think it makes sense to remove it from the client's ignore list, and let the server reject it with an appropriate error. |
Interesting, thanks for clarification.
Yes, and that should be the general default I would say. |
Instead of rejecting files named The result of |
IMHO removing the With this approach you can:
|
It seems that this is only the case for the OSX client. I can still remove items from the ignore list in both the Linux and Windows clients by editing sync-exclude.lst. Does anyone know why this is the case? It would be nice to have that control with the OSX client too if possible! |
@benedictgoodman I think discussing / answering this question is out of the scope of this issue here. Maybe just create a new issue for that? |
Following the discussion I think we can agree on removing '.htaccess' from the client's ignore list, letting the server decide and protecting less experienced people with the default as it is. |
How about other pattern such as |
As per issue #5701, if the server does not support it, let the server show return an error, but we should not blacklist it localy
pull request: #5748 |
IMO we should remove all excluded file extensions unless there's real justification for it like file types that are OS-specific and really have no use in being synced. The current list has anyway been some quick shot, as @dragotin told me. |
There are lots of patterns in there that "almost nobody" will want to sync - e.g. *.part files are created by Firefox when it is in the process of downloading a file. The .part file is then renamed/moved to the correct desired file name. Anyway - this sort of discussion should go in a more general issue somewhere. The particular .htaccess need here is good and should not be delayed by some long-winded discussion like I have made above! |
@phil-davis Please feel free to create a new issue from your comment. (And check if we have already one..) |
As per issue #5701, if the server does not support it, let the server show return an error, but we should not blacklist it localy
PR has been merged |
Remove
.htaccess
from ignored files list.Reasoning
It is not possible to completely backup a web project that requires a
.htaccess
file. There is no way to remove.htaccess
from the ignored files list as it is included in sync-exclude.lst..htaccess
is a configuration file. It seems to be the only configuration file in the list. All other entries care about OS cruft and tmp files and stuff.Example
For a university team project we are developing a web application. For mod_rewrite among others some server settings need to be changed using a
.htaccess
file. We don’t want to usehttp.conf
here because we need to have these settings synced between the team for the application to run.Expected behavior
.htaccess
should be synced when enabling Synchronize hidden files.Actual behaviour
.htaccess
is always ignored.Steps to reproduce
Add a
.htaccess
file to a folder, try to sync.Client configuration
Client version: Version 2.3.1 (build 1602)
GIT-Revision 433ba0 on Mar 28 2017, 03:34:43 uses Qt 5.6.2, OpenSSL 1.0.2k 26 Jan 2017
Operating system: Mac OS X 10.11.6
OS language: German
Qt version used by client package (Linux only, see also Settings dialog): Qt 5.6.2
Installation path of client:
/Application
The text was updated successfully, but these errors were encountered: