nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.06k stars 802 forks source link

[Bug]: Desktop Client doesnt sync hidden files #5392

Closed thommy51 closed 1 year ago

thommy51 commented 1 year ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

I was trying to upload an html dump to nextcloud through the desktop client, when I noticed, my .htaccess files didnt upload to my cloud instance. After looking for solutions I found out, that I can edit which files are being ignored. I then deleted all records in the edit ignored files menu, so everything gets synced. Apperently that didnt help, even after restarting the client and my computer. So I assume this to be a bug.

Steps to reproduce

Put a hidden file in the synced Nextcloud folder (files like ".htaccess") Look at the Sync log which says: "Files from the ignore list as well as symbolic links are not synced"

Expected behavior

I expected the file to just upload to my cloud.

Which files are affected by this bug

.htaccess

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Appimage

Nextcloud Server version

24.0.7 Enterprise

Nextcloud Desktop Client version

3.6.6

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

Nextcloud Server logs

## Server configuration detail

**Operating system:** Linux 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64

**Webserver:** nginx/1.23.1 (fpm-fcgi)

**Database:** mysql 10.5.17

**PHP version:** 8.0.25

Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, readline, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, redis, sodium, zip, Zend OPcache

**Nextcloud version:** 24.0.7 Enterprise - 24.0.7.2

**Updated from an older Nextcloud/ownCloud or fresh install:** 

**Where did you install Nextcloud from:** unknown

<details><summary>Signing status</summary>

Integrity checker has been disabled. Integrity cannot be verified.
</details>

<details><summary>List of activated apps</summary>

Enabled:
 - accessibility: 1.10.0
 - activity: 2.16.0
 - calendar: 3.5.5
 - circles: 24.0.1
 - cloud_federation_api: 1.7.0
 - comments: 1.14.0
 - contacts: 4.2.4
 - contactsinteraction: 1.5.0
 - dashboard: 7.4.0
 - dav: 1.22.0
 - federatedfilesharing: 1.14.0
 - federation: 1.14.0
 - files: 1.19.0
 - files_pdfviewer: 2.5.0
 - files_rightclick: 1.3.0
 - files_sharing: 1.16.2
 - files_trashbin: 1.14.0
 - files_versions: 1.17.0
 - files_videoplayer: 1.13.0
 - firstrunwizard: 2.13.0
 - groupquota: 0.1.9
 - jitsi: 0.15.0
 - logreader: 2.9.0
 - lookup_server_connector: 1.12.0
 - mail: 1.15.1
 - nextcloud_announcements: 1.13.0
 - notifications: 2.12.1
 - oauth2: 1.12.0
 - password_policy: 1.14.0
 - photos: 1.6.0
 - privacy: 1.8.0
 - provisioning_api: 1.14.0
 - recommendations: 1.3.0
 - richdocuments: 6.3.3
 - serverinfo: 1.14.0
 - settings: 1.6.0
 - sharebymail: 1.14.0
 - support: 1.7.0
 - survey_client: 1.12.0
 - systemtags: 1.14.0
 - text: 3.5.1
 - theming: 1.15.0
 - twofactor_backupcodes: 1.13.0
 - user_status: 1.4.0
 - viewer: 1.8.0
 - weather_status: 1.4.0
 - workflowengine: 2.6.0
Disabled:
 - admin_audit
 - approval
 - breezedark: 24.0.3
 - deck: 1.7.3
 - encryption
 - files_external
 - files_lock
 - globalsiteselector
 - spreed: 14.0.8
 - updatenotification: 1.14.0
 - user_ldap
 - user_saml

Configuration (config/config.php) ``` { "simpleSignUpLink.shown": false, "integrity.check.disabled": true, "files_external_allow_create_new_local": false, "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "appstoreenabled": true, "appstoreurl": "https:\/\/nextcloud-appstore.live.nextcloud.server.lan", "allow_local_remote_servers": true, "circles.force_nc_base": "http:\/\/127.0.0.1", "overwrite.cli.url": "https:\/\/cloud.tljb.de", "trusted_domains": [ "nc-8495319558334604928.nextcloud-ionos.com", "cloud.tljb.de" ], "mail_template_class": "\\OC\\Mail\\IonosCustomMail", "filelocking.enabled": true, "memcache.local": "\\OC\\Memcache\\Redis", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "filelocking.ttl": "43200", "redis.cluster": { "seeds": [ "redis-cluster-0.redis-cluster-headless.redis-cluster:6379", "redis-cluster-1.redis-cluster-headless.redis-cluster:6379", "redis-cluster-2.redis-cluster-headless.redis-cluster:6379", "redis-cluster-3.redis-cluster-headless.redis-cluster:6379", "redis-cluster-4.redis-cluster-headless.redis-cluster:6379", "redis-cluster-5.redis-cluster-headless.redis-cluster:6379", "redis-cluster-6.redis-cluster-headless.redis-cluster:6379", "redis-cluster-7.redis-cluster-headless.redis-cluster:6379", "redis-cluster-8.redis-cluster-headless.redis-cluster:6379" ], "timeout": 0, "read_timeout": 0, "failover_mode": "\\RedisCluster::FAILOVER_ERROR", "password": "MocNC01!" }, "overwriteprotocol": "https", "forwarded_for_headers": [ "HTTP_X_FORWARDED_FOR" ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "objectstore": { "class": "\\OC\\Files\\ObjectStore\\S3", "arguments": { "bucket": "ionos-nextcloudbucket-live2-ru799952-4549977", "key": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "region": "de", "hostname": "s3-eu-central-1.ionoscloud.com", "port": 443, "objectPrefix": "urn:oid:", "autocreate": false, "use_ssl": true, "use_path_style": false } }, "session_keepalive": true, "session_lifetime": 1800, "auth.bruteforce.protection.enabled": false, "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "24.0.7.2", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "default_locale": "de_DE", "default_phone_region": "DE", "default_language": "de_DE", "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpsecure": "tls", "mail_smtpauth": "true", "mail_smtpauthtype": "LOGIN", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "maintenance": false } ```

Cron Configuration: Array ( [backgroundjobs_mode] => cron [lastcron] => 1675431929 )

External storages: files_external is disabled

Encryption: no

User-backends:

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36



### Additional info

Client Log:

PW: Rb8fBZTx5H
https://cloud.tljb.de/index.php/s/CPDeLLW2axQ3Ywi
claucambra commented 1 year ago

You can enable syncing of hidden files in the client configuration by editing the ignored files list

Screenshot 2023-05-16 at 11 24 41
joshtrichards commented 12 months ago

Hi @thommy51 - .htaccess has special handling server-side. It's blacklisted by default there and not just in the client:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#blacklisted-files

Hope that helps.