Skip to content

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

@mitch-geht-ab

Description

@mitch-geht-ab

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//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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions