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
Trying to upload a file that already exists shows bad error message #1309
Comments
more like not user-friendly than totally bad. The message is created by the Generic AJAX error handler line 28 cbrain.js. |
Click on Upload creates a json request rather than redirect in controller, then json response intercepted by 'generic ajax error handler' at line 28 of cbrain.js Adding JSON response handler, which checks for notices could help (currently only XML content is addressed, though I thought we seldom use XML). It might though create error message duplication . May be ignoring json error responses with notices better, not sure. I meant something akin
|
If you have a solution, make a PR... |
When trying to upload a file that already exists, users get to see the message "422 Unprocessable entity"; that show up until a new page is loaded and THEN the proper message "name has already been taken" is shown.
The text was updated successfully, but these errors were encountered: