Native iOS Files app: Folder empty after folder copy and identical renaming
@marinofaggiana is already working on this.
Since Jan 18, 2024.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.