-
Bug
-
Resolution: Done
-
Blocker
-
6.1.0
-
None
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
- is related to
-
RHBPMS-993 Unable to add KieModule to Repository from UrlResource
- Verified
-
RHBRMS-1102 Importing mavenized jar with parent pom specified is not handled correctly
- Verified
-
RHBPMS-457 Cannot download project artifact: HTTP Status 500 - ServletConfig has not been initialized
- Verified
- relates to
-
RHBPMS-993 Unable to add KieModule to Repository from UrlResource
- Verified
-
RHBRMS-1102 Importing mavenized jar with parent pom specified is not handled correctly
- Verified
-
RHBPMS-457 Cannot download project artifact: HTTP Status 500 - ServletConfig has not been initialized
- Verified