Skip to content

[stable33] fix: handle private validation URL redirect and string error messages#7546

Merged
vitormattos merged 2 commits intostable33from
backport/7543/stable33
Apr 23, 2026
Merged

[stable33] fix: handle private validation URL redirect and string error messages#7546
vitormattos merged 2 commits intostable33from
backport/7543/stable33

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>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Apr 23, 2026
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (33) milestone Apr 23, 2026
@vitormattos vitormattos merged commit 0813155 into stable33 Apr 23, 2026
63 checks passed
@vitormattos vitormattos deleted the backport/7543/stable33 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