Bug 1148145

Summary: Unable to add KieModule to Repository from UrlResource
Product: [Retired] JBoss BPMS Platform 6 Reporter: Paulo Henrique Alves <alvesph.redhat>
Component: jBPM CoreAssignee: manstis
Status: CLOSED EOL QA Contact: Marek Baluch <mbaluch>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.2CC: kverlaen, manstis, mbaluch
Target Milestone: ER5   
Target Release: 6.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 18:38:27 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:
Attachments:
Description Flags
stacktrace none

Description Paulo Henrique Alves 2014-09-30 19:29:48 UTC
Created attachment 942833 [details]
stacktrace

Description of problem:
Unable to add KieModule to Repository from UrlResource.

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

Steps to Reproduce:
1. Create a project in BPM Suite and buid.
2. Access maven url file in browser, (Ex: http://bpms:8080/business-central/maven2/org/kie/example/project1/1.0.1/project1-1.0.1.jar)
3. Execute code above in your application.
UrlResource urlResource = (UrlResource) kieServices.getResources().newUrlResource("http://bpms:8080/business-central/maven2/org/kie/example/project1/1.0.1/project1-1.0.1.jar");
urlResource.setBasicAuthentication("enabled");  
urlResource.setUsername("bpmsUser");  
urlResource.setPassword("bpmsPass");
kieServices.getRepository().addKieModule(urlResource);

Actual results:
Throws exception (see attach).

Expected results:
The project added in repository.

Additional Info:
I removed guvnor-m2-repo from maven configuration file (settings.xml)

Comment 3 Jiri Svitak 2015-02-26 08:12:29 UTC
Already verified in 'see also' bugzilla BZ1183984.

Verified.

https://gitlab.mw.lab.eng.bos.redhat.com/bxms/brms/commit/8120ae62871b96b6d6616cebd64254043e42b90d