Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1496

wrong message when required parameter is not set for DBUserGroupCallbackImpl

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.1.GA
    • Fix Version/s: 7.2.0.GA
    • Component/s: jBPM Core
    • Labels:
      None
    • Environment:

      Red Hat Process Automation Manager 7.0.1

    • Target Release:
    • Fix Build:
      CR1
    • Story Points:
      1
    • Sprint:
      2018 Week 36-38
    • QE Test Coverage:
      ?

      Description

      If required any of 4 parameter is not configured correctly for DBUserGroupCallback,
      the following error is returned.

      Error when initializing server extension of type jBPM KIE Server extension due to All properties must be given (db.ds.jndi.name,db.user.roles.query,db.roles.query,db.user.roles.query)

      Please note 'db.user.roles.query' (USER_ROLES_QUERY) appears twice instead of 'db.user.query' (PRINCIPAL_QUERY )

      i.e.
      https://github.com/kiegroup/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/identity/DBUserGroupCallbackImpl.java#L148-L149

      			throw new IllegalArgumentException("All properties must be given ("+ DS_JNDI_NAME + ","
      + USER_ROLES_QUERY +"," + ROLES_QUERY +"," +USER_ROLES_QUERY +")");
      

      This should be:

      			throw new IllegalArgumentException("All properties must be given ("+ DS_JNDI_NAME + ","
      + PRINCIPAL_QUERY +"," + ROLES_QUERY +"," +USER_ROLES_QUERY +")");
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swiderski.maciej Maciej Swiderski
              Reporter:
              hiroko Hiroko Miura
              Tester:
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: