Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5432

Incomprehensible error shown when user with no access to kie-server enters tasks/proc.inst. perspectives

XMLWordPrintable

    • NEW
    • NEW
    • Hide

      1. setup business-central + kie-server
      2. add eap user with just the role "admin" to login to business-central
      3. Visit tasks perspective / process-instances

      Actual result: Incomprehensible error is shown (see description)
      Expected result: Some helpful message should be displayed - along the lines: "You don't have access to view task data (where?). To get it you need to (what?)".

      Other possibility would be to even disable access to tasks perspective because user can't possibly do anything useful there or to make it contingent upon user having kie-server role.. WDYT?

      Show
      1. setup business-central + kie-server 2. add eap user with just the role "admin" to login to business-central 3. Visit tasks perspective / process-instances Actual result: Incomprehensible error is shown (see description) Expected result: Some helpful message should be displayed - along the lines: "You don't have access to view task data (where?). To get it you need to (what?)". Other possibility would be to even disable access to tasks perspective because user can't possibly do anything useful there or to make it contingent upon user having kie-server role.. WDYT?

      When I enter tasks / process instances perspectives with a user who doesn't have right to access datasets on kie-server (e.g. he only has admin role and nothing else), incomprehensible error message is displayed (like "Unable to complete your request. The following exception occurred: (TypeError) : Cannot read property 'i' of undefined."). See screenshot.

      At the same time the following appears in server.log:

      08:55:00,595 ERROR [org.dashbuilder.exception.ExceptionManager] (default task-110) Can't lookup on specified data set: jbpmHumanTasksWithUser: org.dashbuilder.dataset.exception.DataSetLookupException: Can't lookup on specified data set: jbpmHumanTasksWithUser
      	at org.dashbuilder.dataset.DataSetManagerImpl.lookupDataSet(DataSetManagerImpl.java:156)
      ...
      Caused by: org.kie.server.client.KieServicesException: Unexpected HTTP response code when requesting URI 'http://localhost:8080/kie-server/services/rest/server/queries/definitions/jbpmHumanTasksWithUser/filtered-data?mapper=RawList&page=0&pageSize=10'! Error code: 403, message: <html><head><title>Error</title></head><body>Forbidden</body></html>
      	at org.kie.server.client.impl.AbstractKieServicesClientImpl.createExceptionForUnexpectedResponseCode(AbstractKieServicesClientImpl.java:616)
      ...
      

            cnicolai@redhat.com Cristiano Nicolai
            jhrcek Jan Hrcek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: