nextcloud / ios

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

Can't add file to favorites from search results #866

Open bigbofo opened 5 years ago

bigbofo commented 5 years ago

Expected behaviour

File should be added to favorites from search results

Actual behaviour

Error 404 appears in the app and in the webserver log

Steps to reproduce

In the iOS App search for file which is somewhere in the directory structure (File tab, drag down, enter search term). Tap the three dots. Tap "Add to favorites".

iOS version

iOS 12.3.0

App version

App 2.23.6.15

Operating system: Ubuntu 18.04 LTS

Web server: Apache2

Database: MariaDB

PHP version: PHP 7.2

Nextcloud version: (see Nextcloud admin page) Nextcloud 16.0.1

When trying to add a file (somewhere in the directory structure) to favorites from search results in the iOS App, an error 404 appears. In the Apache log it can be seen that the original file path is not added to the file path. I suspect the path to the file gets lost or is not added.

Log entry: xxx.xxx.xxx.xxx - - [27/May/2019:08:11:39 +0200] "PROPPATCH /nextcloud/remote.php/dav/files/username/Filename.xlsx HTTP/1.1" 404 1501 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.6"

When adding the file to favorites by clicking through the directory structure and adding it from its directory, the process works as designed.

marinofaggiana commented 5 years ago

@bigbofo only for the file (not directory) confirm you ?

bigbofo commented 5 years ago

@marinofaggiana for directories too (with and without spaces).

xxx.xxx.xxx.xxx - - [27/May/2019:13:36:11 +0200] "PROPPATCH /nextcloud/remote.php/dav/files/username/Directory%20Name HTTP/1.1" 404 1509 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.23.6"