Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1054860

Summary: Cloning repository over REST fails with java.security.AccessControlException: access denied
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: Ryan Zhang <rzhang>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Petrovický <lpetrovi>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0CC: lpetrovi, mwinkler, rrajasek
Target Milestone: CR2   
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:08:50 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:
Embargoed:
Bug Depends On: 1054834    
Bug Blocks:    
Attachments:
Description Flags
response.xml none

Description Jiri Locker 2014-01-17 15:47:49 UTC
Description of problem:
When I run this command
curl -u '<credentials>' -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST -d '{"name":"bpms-assets", "requestType":"clone", "gitURL":"http://git.app.eng.bos.redhat.com/git/bpms-assets.git"}' "http://localhost:8080/business-central/rest/repositories/"

I get:
Exception executing consequence for rule "approve" in org.drools.workbench.common.services.rest.approver: java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)

Version-Release number of selected component (if applicable):
CR1

Additional info:
See attached response.xml for exception stack trace.

Comment 1 Jiri Locker 2014-01-17 15:48:11 UTC
Created attachment 851677 [details]
response.xml

Comment 2 Kris Verlaenen 2014-01-17 16:19:54 UTC
Same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1054834

Security policy applied in CR1 in preventing various operations, does work if the security policy is disabled (in jboss-eap-6.1/bin/standalone.conf, comment out the last line where the security policy is enabled).  This could be used as a workaround to continue work while we investigate further.

Comment 3 Kris Verlaenen 2014-01-18 22:18:41 UTC
Should be solved when applying the fix as described in https://bugzilla.redhat.com/show_bug.cgi?id=1054834

Comment 4 Ryan Zhang 2014-01-21 02:30:37 UTC
Mark it as modified since it should be fixed as Bug 1054834.

Comment 5 Lukáš Petrovický 2014-01-26 18:03:24 UTC
No longer failing. VERIFIED with CR2.