ios icon indicating copy to clipboard operation
ios copied to clipboard

[Bug]: Nextcloud-iOS/4.7.0 Search not working with LDAP User

Open mitch-geht-ab opened this issue 2 years ago • 3 comments

Steps to reproduce

  1. Use Nextcloud Server 25.0.4
  2. Use LDAP user backend
  3. Use Nextcloud-iOS/4.7.0

Expected behaviour

Search should list files.

Actual behaviour

App get stuck in "search in progress".

Problem is related to Nextcloud Server and User DB via LDAP. You search for eg. "apfel", the ios app use searchprovider for files and get back some files. Next the app tries to PROPFIND one of this files, but instead using the LDAP "uid" (or nextcloud uid for the LDAP user) it uses the "name". Because there is no file, it get back a http/404 and no of the search results is presented. If I use nextcloud server without LDAP Backend (local user), this is not a problem. See Logs below.

Logs

Search request and failed (http/404) PROPFIND for first search result. ios App switchs from ...dav/files/069e27e2-aebd-1030-94bc-fb0f24389eba/Exchange... to ...dav/files/user/Exchange...

192.168.7.4 - user [15/Mar/2023:15:52:47 +0100] "GET /nextcloud/ocs/v2.php/search/providers/files/search?term=apfel HTTP/1.0" 200 1435 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.7.0"
192.168.7.4 - user [15/Mar/2023:15:52:47 +0100] "PROPFIND /nextcloud/remote.php/dav/files/user/Exchange/rezepte/backen/Apfelstrudel%20Galette.pdf HTTP/1.0" 404 1086 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.7.0"

but file is available under .../files/<ldapID>/Exchange/....

192.168.7.4 - user [15/Mar/2023:15:55:57 +0100] "GET /nextcloud/remote.php/dav/files/069e27e2-aebd-1030-94bc-fb0f24389eba/Exchange/rezepte/backen/Apfelstrudel%20Galette.pdf HTTP/1.0" 200 3588947 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.7.0"

With Android and Browser/Chrome it's working fine, because both aren't call a PROPFIND after search ...providers/files/search?term=apfel.

Have attached a screenshot of the LDAP user list. ldap user list

mitch-geht-ab avatar Mar 15 '23 15:03 mitch-geht-ab

Same problem

Use Nextcloud Server 25.0.5 Use LDAP user backend Use Nextcloud-iOS/4.7.0

oboeglen avatar Apr 04 '23 11:04 oboeglen

Are @AzureInformatique and me the only ones using NX + LDAP + ios App? Nobody else who is bothered by this?

mitch-geht-ab avatar Nov 16 '23 07:11 mitch-geht-ab

Am facing the same problem.

HTTP/1.1" 404 1086 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.9.6"

When searching from IOS devices, scenario e.g below: file name: 08 office apple.pdf When search key: 08 <-- found office <-- Search in progress.. 08 office <-- found apple <-- Search in progress..

strange behavior, BUT from web access search is working fine.

ghackelo avatar Jan 04 '24 06:01 ghackelo