Bug 991090 - Process instances started via REST appear in web UI with initiator "Anonymous"
Process instances started via REST appear in web UI with initiator "Anonymous"
Product: JBoss BPMS Platform 6
Classification: JBoss
Component: Business Central (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ER3
: 6.0.0
Assigned To: Marco Rietveld
Radovan Synek
Depends On:
  Show dependency treegraph
Reported: 2013-08-01 11:22 EDT by Radovan Synek
Modified: 2016-09-20 01:04 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-08-06 16:10:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
server log (220.27 KB, text/x-log)
2013-08-01 11:23 EDT, Radovan Synek
no flags Details

  None (edit)
Description Radovan Synek 2013-08-01 11:22:24 EDT
Try to start some process via REST and take a look at Process Management -> Process Instances in the web UI. The initiator is "Anonymous", although proper username & password was provided in the request (and the username is a valid EAP account with kie-user role).

Even more interesting is a fact, that this behaviour can be observed only right after the server started. A few minutes after, the process instance initiator is a valid username. Unfortunately, not the username provided in the REST request, but username of account logged in the UI.

Here is what I did:

1. started EAP with business central configured to use BASIC auth.

2. curl -L --basic -u radek:radek123* -X POST http://localhost:8080/business-central/rest/runtime/${deployment}/process/${processId}/start --header "Content-Type:application/json"

3. curl -L --basic -u admin:admin123* -X POST http://localhost:8080/business-central/rest/runtime/${deployment}/process/${processId}/start --header "Content-Type:application/json"

4. logged into web UI with admin:admin123*

5. curl -L --basic -u radek:radek123* -X POST http://localhost:8080/business-central/rest/runtime/${deployment}/process/${processId}/start --header "Content-Type:application/json"

6. a minute(?) of waiting

7. curl -L --basic -u radek:radek123* -X POST http://localhost:8080/business-central/rest/runtime/${deployment}/process/${processId}/start --header "Content-Type:application/json"

Now the results from UI Process Instances (only the Initiator column):

(I would expect radek, admin, radek, radek)
Comment 1 Radovan Synek 2013-08-01 11:23:08 EDT
Created attachment 781656 [details]
server log
Comment 2 Radovan Synek 2013-08-01 11:24:37 EDT
Sorry for the missing information - tested with 6.0.0.CR1
Comment 3 Marco Rietveld 2013-08-12 10:26:23 EDT
I think I've fixed it -- if it isn't this, it's a problem with the scope of the IdentityProvider. 

Comment 4 Marco Rietveld 2013-08-27 08:33:37 EDT
This commit had to be rolled back because of dependency problems caused by it.
Comment 5 Marco Rietveld 2013-09-17 06:58:02 EDT
The following commits changed the basis for the authentication mechanism and, I think, fixed this problem: 


These changes allowed us to use BASIC authentication with the normal web.xml (formerly, we had to use FORM authentication when the UI was active, now we can use FORM for the UI while simultaneously using BASIC for the rest services.)
Comment 6 Radovan Synek 2013-09-17 07:03:05 EDT
This issue no more exists on BPMS-6.0.0.ER3
Comment 10 Lukáš Petrovický 2014-02-07 11:15:37 EST
This BZ has been part of the 6.0.0 stream.

Note You need to log in before you can comment on or make changes to this bug.