Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[document_repository] Improper error handling #8760

Closed
jeffersoncasimir opened this issue Jun 8, 2023 · 1 comment
Closed

[document_repository] Improper error handling #8760

jeffersoncasimir opened this issue Jun 8, 2023 · 1 comment
Assignees
Labels
25.0.0 - Bugs Category: Bug PR or issue that aims to report or fix a bug

Comments

@jeffersoncasimir
Copy link
Contributor

jeffersoncasimir commented Jun 8, 2023

Describe the bug
Certain errors are not properly reported. They return a generic "Please contact your administrator" message, caused by a Syntax error on the front-end due to the responses being invalid JSON.

These errors were: 413 (Request Entity Too Large) for test plan step 16 and a 403 (Forbidden), which occurred when initiating an upload, and logging out in another tab before completion.

Found during testing assignment #8519.

@jeffersoncasimir jeffersoncasimir added Category: Bug PR or issue that aims to report or fix a bug 25.0.0 - Bugs labels Jun 8, 2023
@driusan
Copy link
Collaborator

driusan commented Jun 8, 2023

@kongtiaowang Can you look into fixing this? I think you just need to check resp.status and in the swal instead of saying "Please contact your administrator" have a permission denied (for 403) or file too large (for 413) error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
25.0.0 - Bugs Category: Bug PR or issue that aims to report or fix a bug
Projects
None yet
Development

No branches or pull requests

3 participants