nextcloud / ios

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

Bug: Uploads Photos into Subfolders Loop #2943

Open islamadel opened 5 months ago

islamadel commented 5 months ago

Steps to reproduce

  1. Set Up Nextxloud to Auto Upload Photos into Photos with monthly Subfolders (Photos/Year/Month)
  2. Navigate to a month. eg. Photos/2024/06
  3. Select Upload to upload Photos and choose use Auto Upload Location with Subfolders.

Expected behaviour

The Upload process should ignore the Path where i am already inside and just upload to default Path in Settings

Actual behaviour

It starts an upload queue with repeating subfolders:

Photos/2024/06/2024/06/2024/06 ..

with error 404 resource not found

Screenshots

Can Post the later if required

Logs

If applicable, you can post the iOS app or server logs (removing any sensitive information).

Reasoning or why should it be changed/implemented?

Environment data

iOS version: e.g. iOS 17.5

Nextcloud iOS app version: see More > Settings

5.3.1

Server operating system:

Web server: Apache, nginx

Database:

PHP version:

Nextcloud version: see Nextcloud admin page

vielleicht commented 1 week ago

Having the same issue on iOS 18.1 with app version 6.1.1.1 on Nextcloud 29.0.8.

Here is some logs:

2024-11-02 12:52:08 [INFO] PROCESS (UPLOAD) find 5 items
2024-11-02 12:52:08 [INFO] Process auto upload skipped file: https://…/remote.php/dav/files/philipp/Fotos intern/Handy/Handy Philipp/2022/04/2022/04/22-04-07 19-44-25 1888.jpg, because is already in session.
2024-11-02 12:52:08 [INFO] Process auto upload skipped file: https://…/remote.php/dav/files/philipp/Fotos intern/Handy/Handy Philipp/2022/04/2022/04/2022/04/22-04-09 10-25-04 1890.jpg, because is already in session.
2024-11-02 12:52:08 [INFO] Process auto upload skipped file: https://…/remote.php/dav/files/philipp/Fotos intern/Handy/Handy Philipp/2022/04/2022/04/2022/04/2022/04/22-04-09 10-25-08 1891.jpg, because is already in session.
2024-11-02 12:52:08 [INFO] Process auto upload skipped file: https://…/remote.php/dav/files/philipp/Fotos intern/Handy/Handy Philipp/2022/04/2022/04/2022/04/22-04-09 10-25-04 1890.mov, because is already in session.
2024-11-02 12:52:08 [INFO] Process auto upload skipped file: https://…/remote.php/dav/files/philipp/Fotos intern/Handy/Handy Philipp/2022/04/2022/04/2022/04/2022/04/22-04-09 10-25-08 1891.mov, because is already in session.
MichaelKlemm commented 2 days ago

Same here. Additional observations from my side:

If you select a single file to upload, it seems to work. If you select at least two files the first file seems to work and the second file tries to upload to the recursive sub directory.

If two files already exist the collision is only detected on the first file. Second file is tried to be uploaded to this recursive path yyyy/mm/yyyy/mm with the 404 error “directory not existing”.