-
Type: Improvement
-
Status: Open
-
Priority: Critical
-
Resolution: Unresolved
-
Affects Version/s: 3.0.0
-
Component/s: Widgets
-
Tags:
-
Backlog priority:700
-
Sprint:UI - 2023-6, UI COOLDOWN - 2023-6, UI - 2023-7, UI - 2024-11
-
Story Points:3
When the called automation operation throw an exception with an error message, the nuxeo-operation-element only displays a generic error message and not the error message from the exception. Several users requested to display the error message in the toast.
I attached a Nuxeo package containing a Web UI button (element nuxeo-operation-button) that calls an automation operation that throws an exception with an error message if the input document is located in a certain workspace.
How to reproduce:
- install the attached Nuxeo package nuxeo-custom-operation-validate-document-package-1.0.0.zip in a LTS 2021 distibution and start it
- create a workspace /default-domain/workspaces/test-ws
- create a document in it and navigate to it
- click on the Validate Document button (checkmark icon)
Actual result: a toast with the message Error is displayed
Expected result: a toast with the message returned by Nuxeo Server (Oups! in the example provided in the attached package) is displayed
You can build and start a Docker container with Docker Compose by cloning my Github repository nuxeo-custom-operation-validate-document.
AC
- When nuxeo server sends back an error message, this message should be displayed in the toast
- When nuxeo server does not send back an error message, a generic error message "Error" is displayed as a placeholder
- This generic message leverages the existing translation keys so that it can be replaced or translated using configuration