Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1532

Element nuxeo-operation-button should display the error message thrown by the automation operation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.x, 3.0.x
    • Component/s: Widgets

      Description

      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:

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vdutat Vincent Dutat
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 week, 5 hours
                1w 5h
                Remaining:
                Time Spent - 1 day Remaining Estimate - 4 days, 5 hours
                4d 5h
                Logged:
                Time Spent - 1 day Remaining Estimate - 4 days, 5 hours
                1d