Skip to content

Conversation

@backportbot-libresign
Copy link

Backport of PR #6557

When background jobs execute signing operations for unauthenticated signers
(e.g., via WhatsApp), they run in a different session context than when the
visual elements were uploaded. This caused the system to fail finding the
signature files, resulting in the error 'You need to define a visible
signature or initials to sign this document.'

The fix makes getNode() always attempt to retrieve files by nodeId using
folderService->getFileByNodeId(), which searches across the entire signature
folder tree regardless of session. Only if that fails does it fall back to
session-based lookup for backward compatibility.

This resolves signing failures for external signers who properly defined
their visual signature elements.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add test coverage for the scenario where an unauthenticated signer (e.g., via
WhatsApp) has uploaded signature elements that are stored in the folder
service but accessed from a different session context during background job
execution.

This test verifies that the system can successfully locate and use signature
files by their nodeId even when the session context differs from the upload
context.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@backportbot-libresign backportbot-libresign bot added this to the Next Patch (32) milestone Jan 23, 2026
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Jan 23, 2026
@vitormattos vitormattos merged commit 4f09c6e into stable32 Jan 23, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 4. to release in Roadmap Jan 23, 2026
@vitormattos vitormattos deleted the backport/6557/stable32 branch January 23, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants