Skip to content

[stable32] fix: handle private validation URL redirect and string error messages#7545

Merged
vitormattos merged 2 commits intostable32from
backport/7543/stable32
Apr 23, 2026
Merged

[stable32] fix: handle private validation URL redirect and string error messages#7545
vitormattos merged 2 commits intostable32from
backport/7543/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #7543

When make_validation_url_private=true, the backend returns HTTP 401
with action=REDIRECT and errors as a string array. The frontend was
only handling object-format errors ({message}) and not the redirect
action, causing a false 'Failed to validate document' message.

Adds handleValidationRedirect() and fixes getValidationErrorMessage()
to handle both string and object error formats.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
When make_validation_url_private=true, the backend returns HTTP 401
with action=REDIRECT and errors as a string array. The frontend was
only handling object-format errors ({message}) and not the redirect
action, causing a false 'Failed to validate document' message.

Adds handleValidationRedirect() and fixes getValidationErrorMessage()
to handle both string and object error formats.

Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Apr 23, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Apr 23, 2026
@vitormattos vitormattos merged commit 4c4b5de into stable32 Apr 23, 2026
63 checks passed
@vitormattos vitormattos deleted the backport/7543/stable32 branch April 23, 2026 00:58
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Apr 23, 2026
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.

1 participant