nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.94k stars 874 forks source link

Nextcloud Folder on iOS App is empty - HTTP/1.1 404 Not Found #1578

Open Githopp192 opened 3 years ago

Githopp192 commented 3 years ago

Actual behaviour

A Folder inside the iOS Nextcloud App is empty. Refreshing will not change the context (still empty).

Indeed there are files & folders in it. The Web Application and the Windows 10 Nextcloud Agent - both will show files & folders properly.

no behave change on:

Other Directories (including their files) do work.

Increased Log verbosity on iOS App:

Steps to reproduce

some Side Information

Expected behaviour

Server configuration details

Version: Intel(R) Xeon(R) E-2136 CPU @ 3.30GHz Max Speed : 4300 MHz Current Speed: 3300 MHz Memory: 16GB Operating System: CentOS Linux release 8.3.2011

Upstream OS : Derived from Red Hat Enterprise Linux 8.3

Webserver: Apache/2.4.37 (centos)

Database: mysql 10.3.27-MariaDB,

PHP version: PHP Version => 7.4.16

[PHP Modules] apcu bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv igbinary imagick intl json ldap libsmbclient libxml mbstring memcached msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session shmop SimpleXML smbclient sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache

Nextcloud: - version: 21.0.1.1 Nextcloud Coherence Version: 3.4.0.29 IOS: 14.4.2

Updated from an older Nextcloud/ownCloud or fresh install: Upgrade from NC 20.0.6

Where did you install Nextcloud from: Origin NC Source

Signing status: Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here.

No errors have been found.

{ "system": { "memcache.distributed": "\OC\Memcache\Redis", "memcache.locking": "\OC\Memcache\Redis", "memcache.local": "\OC\Memcache\APCu", "filelocking.enabled": true, "redis": { "host": "REMOVED SENSITIVE VALUE", "timeout": 1.5, "password": "REMOVED SENSITIVE VALUE" }, "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ ], "datadirectory": "REMOVED SENSITIVE VALUE", "htaccess.RewriteBase": "/", "overwriteprotocol": "https", "dbtype": "mysql", "version": "21.0.1.1", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "maintenance": false, "theme": "", "loglevel": 2, "auth.bruteforce.protection.enabled": true, "check_for_working_htaccess": true, "updater.release.channel": "stable", "logfile": "/media/log/nextcloud.log", "instanceid": "REMOVED SENSITIVE VALUE", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpsecure": "tls", "mail_smtpauth": 1, "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "session_lifetime": 1200, "session_keepalive": false, "default_phone_region": "CH", "knowledgebaseenabled": false, "log_rotate_size": 3145728, "mail_sendmailmode": "smtp", "app_install_overwrite": [ "passman",

Enabled:

accessibility: 1.7.0 activity: 2.14.3 analytics: 3.4.1 announcementcenter: 5.0.0 apporder: 0.12.0 audioplayer: 3.1.0 audioplayer_editor: 0.3.0 audioplayer_sonos: 1.2.0 bookmarks: 4.1.0 bruteforcesettings: 2.1.0 calendar: 2.2.0 circles: 0.21.0 cloud_federation_api: 1.4.0 cms_pico: 1.0.15 comments: 1.11.0 contacts: 3.5.1 contactsinteraction: 1.2.0 cookbook: 0.8.4 cospend: 1.3.0 dashboard: 7.1.0 data_request: 1.8.0 dav: 1.17.1 deck: 1.4.0 dicomviewer: 1.2.2 documentserver_community: 0.1.9 drawio: 1.0.0 event_update_notification: 1.2.0 extract: 1.3.1 federatedfilesharing: 1.11.0 federation: 1.11.0 files: 1.16.0 files_automatedtagging: 1.11.0 files_downloadactivity: 1.10.0 files_external: 1.12.0 files_external_onedrive: 1.1.0 files_markdown: 2.3.3 files_mindmap: 0.0.24 files_pdfviewer: 2.1.0 files_photospheres: 1.21.0 files_rightclick: 1.0.0 files_sharing: 1.13.1 files_trashbin: 1.11.0 files_versions: 1.14.0 files_videoplayer: 1.10.0 firstrunwizard: 2.10.0 flow_notifications: 1.1.0 forms: 2.2.4 gpxmotion: 0.1.0 gpxpod: 4.2.8 groupfolders: 9.0.0 impersonate: 1.8.0 integration_discourse: 1.0.0 integration_dropbox: 1.0.0 integration_github: 1.0.0 integration_gitlab: 1.0.0 integration_google: 1.0.0 integration_jira: 1.0.0 integration_mastodon: 1.0.0 integration_moodle: 1.0.0 integration_onedrive: 1.0.0 integration_openproject: 1.0.0 integration_reddit: 0.0.11 integration_suitecrm: 0.0.4 integration_twitter: 1.0.0 integration_whiteboard: 0.0.14 integration_zammad: 1.0.0 logreader: 2.6.0 lookup_server_connector: 1.9.0 maps: 0.1.8 nextcloud_announcements: 1.10.0 notes: 4.0.4 notifications: 2.9.0 oauth2: 1.9.0 onlyoffice: 6.3.0 passman: 2.3.7 password_policy: 1.11.0 photos: 1.3.0 polls: 1.8.1 privacy: 1.5.0 provisioning_api: 1.11.0 quicknotes: 0.7.1 quota_warning: 1.10.0 rainloop: 7.1.2 ransomware_protection: 1.10.0 recommendations: 1.0.0 serverinfo: 1.11.0 settings: 1.3.0 sharebymail: 1.11.0 social: 0.4.2 spreed: 11.1.2 support: 1.4.0 suspicious_login: 4.0.0 systemtags: 1.11.0 tasks: 0.13.6 text: 3.2.0 theming: 1.12.0 timemanager: 0.1.8 twofactor_backupcodes: 1.10.0 twofactor_totp: 6.0.0 updatenotification: 1.11.0 user_status: 1.1.1 video_converter: 1.0.1 viewer: 1.5.0 weather_status: 1.1.0 welcome: 0.0.5 workflow_ocr: 1.21.0 workflow_pdf_converter: 1.6.0 workflow_script: 1.6.0 workflowengine: 2.3.0 Disabled: admin_audit breezedark drop_account encryption end_to_end_encryption external files_3d files_accesscontrol files_antivirus files_fulltextsearch flowupload fulltextsearch fulltextsearch_elasticsearch gpxedit health issuetemplate joplin ojsxc passwords registration side_menu socialsharing_diaspora socialsharing_email socialsharing_facebook socialsharing_googleplus socialsharing_twitter survey_client talk_matterbridge terms_of_service user_ldap weather

iOS detailed Log entries

2021-04-23 20:21:40 Network response result: 2021-04-23 20:21:40 [Request]: PROPFIND https://www.xxx/remote.php/webdav/Documents/xxxxx/xxxxx [Headers]: Authorization: Basic xxxxx== Content-Type: application/xml Depth: 0 OCS-APIRequest: true User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.4.0 [Body]: <?xml version="1.0" encoding="UTF-8"?>

[Response]: [Status Code]: 207 [Headers]: Cache-Control: no-store, no-cache, must-revalidate content-security-policy: default-src 'none'; Content-Type: application/xml; charset=utf-8 Date: Fri, 23 Apr 2021 18:21:39 GMT dav: 1, 3, extended-mkcol Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache referrer-policy: no-referrer Server: Apache Strict-Transport-Security: max-age=63072000; includeSubdomains Vary: Brief,Prefer x-content-type-options: nosniff x-download-options: noopen x-frame-options: SAMEORIGIN x-permitted-cross-domain-policies: none x-powered-by: PHP/7.4.16 x-robots-tag: none x-xss-protection: 1; mode=block [Body]: /remote.php/webdav/Documents/xxxxx)/xxxxxx/Mon, 09 Nov 2020 22:34:53 GMT"xxxxx" 3530253488627071641 RGDNVCK01084515ocnudqtqmhau1084515270716410 xxxxxxxx00false HTTP/1.1 200 OK HTTP/1.1 404 Not Found [Network Duration]: 0.1949249505996704s [Serialization Duration]: 1.9416678696870804e-05s [Result]: success(1210 bytes) 2021-04-23 20:21:40 Network response all headers: 2021-04-23 20:21:40 Optional([AnyHashable("x-download-options"): noopen, AnyHashable("Pragma"): no-cache, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Strict-Transport-Security"): max-age=63072000; includeSubdomains, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Date"): Fri, 23 Apr 2021 18:21:39 GMT, AnyHashable("x-frame-options"): SAMEORIGIN, AnyHashable("Vary"): Brief,Prefer, AnyHashable("Server"): Apache, AnyHashable("referrer-policy"): no-referrer, AnyHashable("dav"): 1, 3, extended-mkcol, AnyHashable("x-powered-by"): PHP/7.4.16, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("Expires"): Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("x-robots-tag"): none, AnyHashable("x-content-type-options"): nosniff]) 2021-04-23 20:21:45 Network request started: PROPFIND https://www.xxxxxxx/remote.php/webdav/Documents/xxxxxx 2021-04-23 20:21:45 Network request headers: ["OCS-APIRequest": "true", "Authorization": "Basic xxxxxxxxxx==", "Depth": "0", "Content-Type": "application/xml", "User-Agent": "Mozilla/5.0 (iOS) Nextcloud-iOS/3.4.0"] 2021-04-23 20:21:45 Network request body: 2021-04-23 20:21:45 Network response result: 2021-04-23 20:21:45 [Request]: PROPFIND https://www.xxxxx/remote.php/webdav/Documents/xxxxx [Headers]: Authorization: Basic xxxxx== Content-Type: application/xml Depth: 0 OCS-APIRequest: true User-Agent: Mozilla/5.0 (iOS) Nextcloud-iOS/3.4.0 [Body]: [Response]: [Status Code]: 207 [Headers]: Cache-Control: no-store, no-cache, must-revalidate content-security-policy: default-src 'none'; Content-Type: application/xml; charset=utf-8 Date: Fri, 23 Apr 2021 18:21:45 GMT dav: 1, 3, extended-mkcol Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache referrer-policy: no-referrer Server: Apache Strict-Transport-Security: max-age=63072000; includeSubdomains Vary: Brief,Prefer x-content-type-options: nosniff x-download-options: noopen x-frame-options: SAMEORIGIN x-permitted-cross-domain-policies: none x-powered-by: PHP/7.4.16 x-robots-tag: none x-xss-protection: 1; mode=block [Body]: /remote.php/webdav/Documents/xxxxxx/Wed, 21 Apr 2021 09:36:17 GMT"607ff21168b39"35302534886194655617 RGDNVCK00298209ocnudqtqmhau2982091946556170 xxxxxxxxx00false HTTP/1.1 200 OKHTTP/1.1 404 Not Found [Network Duration]: 0.118988037109375s [Serialization Duration]: 8.333357982337475e-06s [Result]: success(1187 bytes) 2021-04-23 20:21:45 Network response all headers: 2021-04-23 20:21:45 Optional([AnyHashable("x-download-options"): noopen, AnyHashable("referrer-policy"): no-referrer, AnyHashable("x-robots-tag"): none, AnyHashable("content-security-policy"): default-src 'none';, AnyHashable("Date"): Fri, 23 Apr 2021 18:21:45 GMT, AnyHashable("x-powered-by"): PHP/7.4.16, AnyHashable("x-permitted-cross-domain-policies"): none, AnyHashable("x-xss-protection"): 1; mode=block, AnyHashable("Server"): Apache, AnyHashable("Expires"): Thu, 19 Nov 1981 08:52:00 GMT, AnyHashable("Content-Type"): application/xml; charset=utf-8, AnyHashable("Strict-Transport-Security"): max-age=63072000; includeSubdomains, AnyHashable("x-content-type-options"): nosniff, AnyHashable("Vary"): Brief,Prefer, AnyHashable("Cache-Control"): no-store, no-cache, must-revalidate, AnyHashable("dav"): 1, 3, extended-mkcol, AnyHashable("Pragma"): no-cache, AnyHashable("x-frame-options"): SAMEORIGIN]) 2021-04-23 20:22:10 Start session with level 2 Nextcloud Coherence for iOS 3.4.0.29 © 2021
johkoenig commented 3 years ago

I can confirm this issue, it also happens when connected to a server version 20.0.9 (app version 3.4.0.29). Please fix this immediately, the ios app is completely useless right now, since no files are shown at all.

Some more information: Not all my folders are empty, only a few. It seems that those folders are empty in which there are only files which havent been changed for some time. The folders I change the data regularly (such as my picture upload folder) show normal. All data in my personal archive (last change > 3 months) is not shown, I see only emtpy folders there.

linuswilkins commented 3 years ago

I have this problem too, but with the iOS files app. If I create a new file in the "corrupted" folder it appears on the desktop an web version, but not in the files app. The nextcloud app works fine so far.

johkoenig commented 3 years ago

It seems to be partly fixed on 3.4.2.0. With this version of the iOS app, I can see the content of normal folders again.

For shared folders (e.g. group folders), the problem still exists. Folders with data that wasn't changed for some time (several months) show as empty.

yonghi commented 3 years ago

I have this problem too,and what is worse is I cant see any file on my ipad with the newest ios version(14.5). I just set up the newest version (21) nextcloud server under Docker image (databse using sqlite) which is offered by the offical yesterday.And installed the app on my ipad,I cant see any files on my ipad which has already existed and can display on my windows10 chrome browser through wifi with ipv6 through the ipad and the windows10 connected to the same network. Im from China,I have my best to express the suitation i am in. Hope the bug will be fixed soon.Thanks.

marinofaggiana commented 3 years ago

mmm strange because the lib (webdav) is the same (no modify) from several version but all is possible, if someone want send me a test account for a debug.

johkoenig commented 3 years ago

mmm strange because the lib (webdav) is the same (no modify) from several version but all is possible, if someone want send me a test account for a debug.

I will try to do so in the next days. Where should I send it to?

marinofaggiana commented 3 years ago

good, ios @ nextcloud dot com

( note write this link https://github.com/nextcloud/ios/issues/1578 please )

johkoenig commented 3 years ago

After some e-mails we were able to derive some workarounds to solve it:

  1. The problem is probably connected to some side-effects of an app update. So, removing the app and installing it again should solve the problem (maybe its also sufficient to only remove/add the account in the app).
  2. You can do a force-refresh by swiping down the file viewer. However, the swipe must be very long. On my phone, I have to do 2 swipes in quick order (to extend the swipe distance). @marinofaggiana it would be great to have that fixed, as discussed by mail.