Skip to content

Thumbnails not displayed for files in Space subfolders due to hardcoded /webdav/ path #171

@jbrunner

Description

@jbrunner

Thumbnails are not displayed in the Android app when images are uploaded into a subfolder within a Space.

When opening a subfolder in a non-Personal Space, the app attempts to fetch thumbnails via /webdav/{folder}/image.jpg, resulting in 404 errors. The server expects requests to /dav/spaces/{spaceId}/{folder}/image.jpg.

The following requests appear in the server logs:

GET /webdav/MyFolder/test.jpg → 404
PROPFIND /dav/spaces/e0895001-b3d1-49cc-96cf-203a41cf8b3c$116077b3-f67c-4ab1-8f23-41912e131fa3/MyFolder/test.jpg → 207

PROPFIND requests use the correct Space-based path and succeed, while thumbnail GET requests use the incorrect /webdav/ path.

The issue appears to be caused by a hardcoded constant FILE_PREVIEW_URI in ThumbnailsRequester.kt.

The getPreviewUri() method uses this constant and appends the remotePath directly to /webdav/, regardless of whether the file resides in a Space with a dedicated webDavUrl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions