Skip to content

403 error when loading thumbnail for shared document (non-owner user) #7537

@thomas-zic

Description

@thomas-zic

Describe the bug

I am encountering an issue with LibreSign where a user cannot see the document thumbnail when the document is shared with them. The thumbnail request fails with a 403 error, while the document owner can see it without any issue.

To reproduce

Steps to reproduce
User A uploads a document and creates a LibreSign request
User A shares the document with User B (or adds User B as a participant)
User B logs into Nextcloud
User B tries to view the document list (LibreSign interface)
The thumbnail is not displayed for User B

Actual behavior
The browser console shows a 403 error on the thumbnail endpoint:
/ocs/v2.php/apps/libresign/api/v1/file/thumbnail/<file_id>?x=128&y=128&mimeFallback=true&a=1

Additional observations
The document itself is accessible in Nextcloud Files for User B
The issue seems specific to LibreSign API permissions
The owner (User A) can see the thumbnail without any problem
The error consistently returns HTTP 403 (forbidden), not 404

Expected behavior

User B (who has access to the document) should be able to see the thumbnail just like User A.

Screenshots

No response

Environment information

Nextcloud version: 32
LibreSign version: 12.4.2
Deployment: Docker

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    1. to do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions