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 Oups! is displayed

      You can build and start a Docker container with Docker Compose by cloning my Github repository nuxeo-custom-operation-validate-document.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                PagerDuty