Bug 1183984 - Unable to access Workbench Maven repository with Basic Authentication enabled
Summary: Unable to access Workbench Maven repository with Basic Authentication enabled
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ER5
: 6.1.0
Assignee: manstis
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-20 11:11 UTC by manstis
Modified: 2020-03-27 18:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 18:36:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1148145 0 high CLOSED Unable to add KieModule to Repository from UrlResource 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1187068 0 unspecified CLOSED Importing mavenized jar with parent pom specified is not handled correctly 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1189201 0 high CLOSED Cannot download project artifact: HTTP Status 500 - ServletConfig has not been initialized 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker DROOLS-693 0 None None None Never

Internal Links: 1148145 1187068 1189201

Description manstis 2015-01-20 11:11:20 UTC
Description of problem:

The Workbench's Maven Repository is a protected resource meaning it needs (Basic Authentication) User credentials supplied in HTTP requests. It is impossible to use Drools Engine's UrlResource to add KJARs from the Workbench's Maven repository due to flawed implementation of Basic Authentication HTTP headers in the UrlResource class.

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

6.1.x (Product), 6.2.x (Community)

How reproducible:

Always

Steps to Reproduce:

Try to access the Workbench Maven Repository with something like this:

KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
UrlResource urlResource = (UrlResource) ks.getResources().newUrlResource("http://business-central/maven2/<path-to-JAR>.jar");
urlResource.setUsername("username");
urlResource.setPassword("password");
urlResource.setBasicAuthentication("enabled");
 
InputStream is = urlResource.getInputStream();
KieModule kModule = kr.addKieModule( ks.getResources().newInputStreamResource(is) );

Actual results:

HTTP401/HTTP403 (see comments)

Expected results:

HTTP200

Comment 9 Marek Baluch 2015-02-25 12:56:40 UTC
Verified on 6.1.0.ER5.

The code is passing now.

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


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