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

wrong message when required parameter is not set for DBUserGroupCallbackImpl

XMLWordPrintable

    • NEW
    • NEW
    • 2018 Week 36-38

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

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-hmiura Hiroko Miura
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: