Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-1731

findTasksAssignedAsPotentialOwner doesn't work anymore with usernames on 6.4 if KIE_SERVER_BYPASS_AUTH_USER=true

    XMLWordPrintable

Details

    • Release Notes
    • Hide

      (see the attached CLOUD-1731.tar.gz)

       oc create -f processserver64-basic-s2i.json
       oc process processserver64-basic-s2i KIE_SERVER_PASSWORD='kieserver1!' CONTEXT_DIR="" KIE_CONTAINER_DEPLOYMENT=testContainer=com.redhat.xpaas.bpms:multi-user-task-project:1.0.0 | oc create -f -
       oc delete pod kie-app-1-build
       oc env dc kie-app KIE_SERVER_HT_CALLBACK=props KIE_SERVER_BYPASS_AUTH_USER=true
       oc start-build kie-app --from-dir=.
      

      Wait a bit for the application to start

       HOSTNAME=`oc get route kie-app -o=custom-columns=HOST:.spec.host --no-headers=true`
      
       curl -X POST -H "Content-Type: application/xml" 'http://kieserver:kieserver1!@'${HOSTNAME}/kie-server/services/rest/server/containers/testContainer/processes/multi-user-task-project.multi-user-task-process/instances --data-binary "<?xml version='1.0' encoding='UTF-8' standalone='yes'?><map-type><entries/></map-type>"
      
       # This works in both old and new versions:
       curl 'http://kieserver:kieserver1!@'${HOSTNAME}'/kie-server/services/rest/server/queries/tasks/instances/pot-owners?user=managers&page=0&pageSize=50&sort=&sortOrder=true'
      
       # This only works with the old version, returns an empty list on the new image:
       curl 'http://kieserver:kieserver1!@'${HOSTNAME}'/kie-server/services/rest/server/queries/tasks/instances/pot-owners?user=my_manager&page=0&pageSize=50&sort=&sortOrder=true'
      

      You may do oc edit bc kie-app to switch between the old / new images , e.g.

            from:
              kind: DockerImage
              name: registry.access.redhat.com/jboss-processserver-6/processserver63-openshift:1.3
      

      and then running the build again

        oc start-build kie-app --from-dir=.
      
      Show
      (see the attached CLOUD-1731 .tar.gz) oc create -f processserver64-basic-s2i.json oc process processserver64-basic-s2i KIE_SERVER_PASSWORD= 'kieserver1!' CONTEXT_DIR="" KIE_CONTAINER_DEPLOYMENT=testContainer=com.redhat.xpaas.bpms:multi-user-task-project:1.0.0 | oc create -f - oc delete pod kie-app-1-build oc env dc kie-app KIE_SERVER_HT_CALLBACK=props KIE_SERVER_BYPASS_AUTH_USER= true oc start-build kie-app --from-dir=. Wait a bit for the application to start HOSTNAME=`oc get route kie-app -o=custom-columns=HOST:.spec.host --no-headers= true ` curl -X POST -H "Content-Type: application/xml" 'http: //kieserver:kieserver1!@' ${HOSTNAME}/kie-server/services/ rest /server/containers/testContainer/processes/multi-user-task-project.multi-user-task-process/instances --data-binary "<?xml version= '1.0' encoding= 'UTF-8' standalone= 'yes' ?><map-type><entries/></map-type>" # This works in both old and new versions: curl 'http: //kieserver:kieserver1!@' ${HOSTNAME} '/kie-server/services/ rest /server/queries/tasks/instances/pot-owners?user=managers&page=0&pageSize=50&sort=&sortOrder= true ' # This only works with the old version, returns an empty list on the new image: curl 'http: //kieserver:kieserver1!@' ${HOSTNAME} '/kie-server/services/ rest /server/queries/tasks/instances/pot-owners?user=my_manager&page=0&pageSize=50&sort=&sortOrder= true ' You may do oc edit bc kie-app to switch between the old / new images , e.g. from: kind: DockerImage name: registry.access.redhat.com/jboss-processserver-6/processserver63-openshift:1.3 and then running the build again oc start-build kie-app --from-dir=.

    Description

      Doing a query for tasks as potential owners:

      curl 'http://kieserver:kieserver1!@'${HOSTNAME}'/kie-server/services/rest/server/queries/tasks/instances/pot-owners?user=my_manager&page=0&pageSize=50&sort=&sortOrder=true'
      

      doesn't seem to work anymore on 6.4 if KIE_SERVER_BYPASS_AUTH_USER=true

      It still works OK if the "user" is a group, instead of a username. The query worked for both groups and usernames in 6.3 image

      Attachments

        Issue Links

          Activity

            People

              rhn-support-fspolti Filippe Spolti
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: