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

wrong message when required parameter is not set for DBUserGroupCallbackImpl

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.11.0.Final
    • Fix Version/s: 7.12.0.Final
    • Component/s: Human Task Service
    • Labels:
      None
    • Environment:

      Red Hat Process Automation Manager 7.0.1

    • Sprint:
      2018 Week 36-38
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      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 +")");
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swiderski.maciej Maciej Swiderski
                  Reporter:
                  hiroko Hiroko Miura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: