Bug 1003876

Summary: Getting 401 unauthorized when starting a process instance via REST with kie-services-client
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: kverlaen, mbaluch, rrajasek, smcgowan, vigoyal
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:12:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Radovan Synek 2013-09-03 12:16:00 UTC
Description of problem:
kie-services-client cannot authenticate with business central using valid EAP6 user account with kie-user role. Every request ends up with "401 unauthorized". This issue is probably fixed by following commit:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/0ae835d6c5217a15a7b6aedb043d77339db945ce

but this commit isn't a part of ER2 build.

Version-Release number of selected component (if applicable):
6.0.0.ER2

Comment 1 Marek Baluch 2013-09-03 12:37:12 UTC
Workaround exists - It's required to remove security. Please decide weather this should be fixed for Beta.

Comment 2 Marco Rietveld 2013-09-04 14:29:47 UTC
This is fixed in the community CR3 build, by the commit referenced above.

Comment 3 Radovan Synek 2013-09-04 14:34:49 UTC
The workaround Marek stated in comment 1 has two steps:
1. comment out url-pattern /rest/* in filter-mapping for UberFire Security Filter in web.xml
2. use AuthenticationType.NONE when instantiating the kie-services-client for REST

Comment 8 Radovan Synek 2013-10-15 12:37:31 UTC
Verified on BPMS-6.0.0.ER4