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

    • Bug
    • Resolution: Done
    • Major
    • 7.2.0.GA
    • 7.0.1.GA
    • jBPM Core
    • None
    • Red Hat Process Automation Manager 7.0.1

    • 1
    • CR1
    • ?
    • 2018 Week 36-38

    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

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

              Dates

                Created:
                Updated:
                Resolved: