ios
ios copied to clipboard
Native iOS Files app: Folder empty after folder copy and identical renaming
Edit 19.06.24: The "Steps to reproduce" are way more easy - at least as of today. I added the reduced list of steps in the end of THIS comment.
Steps to reproduce
Step 1 Windows: create a sub folder via Windows Explorer on your Nextcloud and also some test files.
Step 2 a) iOS: open the created folder in Nextcloud App --> files exist. b) iOS: open the created folder in native iOS Files App --> files exist.
Step 3 Windows: create a copy of the sub folder (created in step 1).
Step 4 a) iOS: open the copied folder (created in step 3) in Nextcloud App --> files exist. b) iOS: open the copied folder (created in step 3) in native iOS Files App --> files exist.
Step 5 Windows: delete the original folder (created in step 1).
Step 6 Windows: rename the copied folder (created in step 3) using the exact folder title of the original folder (created in step 1 and meanwhile deleted in step 5).
Step 7 a) iOS: open the renamed folder in Nextcloud App --> files exist. b) Issue iOS: open the renamed folder in native iOS Files App --> files do not exist, folder is empty!
Workarounds: Alternative 1) Open iOS Nextcloud App > Settings > Advanced > Delete cache. Afterwards the files show up in the folder! Alternative 2) Remove the personal account in iOS Nextcloud App and login to the Nextcloud server again.
Expected behaviour
Regarding step 7b) The native iOS Files App should contain files.
Actual behaviour
The native iOS Files App shows an empty folder.
Screenshots
Step 1
Step 2b
Step 3
Step 4b
Step 5
Step 6
Step 7
Logs
None.
Reasoning or why should it be changed/implemented?
Wrong behavior. Renaming folders shouldn't be an issue. Moreover this issue also shows up, if one migrates the folders 1:1 to a new Nextcloud server (which uses the same public DNS name). Doing the same steps using Microsoft OneDrive, there is no such issue!
Environment data
iOS version: 16.7.2 and 17.2.1
Nextcloud iOS app version: 4.9.6.1
Server operating system: RedHat Linux Enterprise Server 8.9
Web server: Apache/2.4.37
Database: MariaDB/10.3.39
PHP version: 8.2.15
Nextcloud version: 27.1.5
@marinofaggiana: Is there anything I can help you with (unfortunately I'm not a coder)?
I can confirm this issue on my iPad
Environment data
- iPadOS version: 17.4.1
- Nextcloud iOS app version: 5.2.4.2
- Server operating system: Debian 11
- Web server: Nginx/1.24.0
- Database: MariaDB/11.3.2
- PHP version: 8.2.17
- Nextcloud version: 28.0.4
This is happening to me but with random folders on Nextcloud in the files app. They just show up as empty as of the past 2 months. Latest stable iOS and also happens on the latest TestFlight client.
This is happening to me but with random folders on Nextcloud in the files app. They just show up as empty as of the past 2 months. Latest stable iOS and also happens on the latest TestFlight client.
Yea, it seems to get even worse for me as well: https://help.nextcloud.com/t/ios-nextcloud-app-and-files-manager-integration-no-longer-works/136314/8?u=nextclaus
In the meantime we are using Nextcloud server v27.1.10 and Nextcloud iOS App 5.3.1.2. I'm not sure when existing folders (and not "just" the copied folders as described by me in my initial post) started to show up as empty as well. If I would have to guess, I would assume since the server update from v27.1.9 to v27.1.10. But that is just pure speculation.
This is happening to me but with random folders on Nextcloud in the files app. They just show up as empty as of the past 2 months. Latest stable iOS and also happens on the latest TestFlight client.
@Whatnoww The bug, described by you and also observed by me, was fixed today by @marinofaggiana 👍 : https://github.com/nextcloud/ios/issues/2937 https://github.com/nextcloud/ios/releases/tag/5.3.2
After updating the iOS App via Apple App Store it was immediately fixed for me.
On-topic: My initially described issue ( #2746 ) is still existing. Meanwhile I found out that (continuation of my initial bug description):
Step 8 Windows: revert the name of the copied folder (created in step 3) using its original folder name ("Test-directory - Kopie").
Step 9 a) iOS: open the folder in Nextcloud App --> files exist. b) iOS: open the folder in native iOS Files App --> files exist/appeared again (in step 7 there were allegedly no files)!
Step 10 Windows: change the name of the copied folder from its original name "Test-directory - Kopie" to something else, like "abc".
Step 11 a) iOS: open the renamed folder "abc" in Nextcloud App --> files exist. b) Issue iOS: open the renamed folder "abc" in native iOS Files App --> files do not exist, folder is allegedly empty, again!
Step 12 a) iOS: open Nextcloud App > More > Settings > Advanced > Clear cache
Step 13 a) iOS: open the renamed folder "abc" in Nextcloud App --> files exist. b) iOS: open the renamed folder "abc" in native iOS Files App --> files exist!
@marinofaggiana Summary: the issue is even worse. Already renaming an existing folders through a Windows client, leaves the folder (allegedly) empty on iOS devices if you open the renamed folder through Apple's iOS "Files" app! Deleting the cache in Nextcloud iOS app fixes the issue. So it seems to be some kind of Renaming-Cache-Issue.
So to reproduce the issue you only have to:
Steps to reproduce
Step 1 Windows: create a sub folder via Windows Explorer on your Nextcloud and also some test files.
Step 2 (just for verification/comparison) a) iOS: open the created folder in Nextcloud App --> files exist. 👍 b) iOS: open the created folder in native iOS 'Files' App --> files exist. 👍
Step 3 Windows: rename the sub folder (created in step 1).
Step 4 a) iOS: open the renamed folder in Nextcloud App --> files exist. 👍 b) Issue iOS: open the renamed folder in native iOS 'Files' App --> files do not exist, folder is (allegedly) empty! 👎
Btw: Renaming a folder via native iOS 'Files' App doesn't seem to have the same effect. So "just" when I rename a folder on my Windows client, the folder appears as "empty" afterwards when using the native iOS 'Files' App.