Bug 1051515
| Summary: | KIE-CI cannot download artifacts from secured KIE-WB M2 repo | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Marek Winkler <mwinkler> | ||||
| Component: | BRE | Assignee: | Mario Fusco <mfusco> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Winkler <mwinkler> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 6.0.0 | CC: | etirelli, rrajasek, rzhang | ||||
| Target Milestone: | CR1 | ||||||
| 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:16:52 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
Marek Winkler
2014-01-10 13:50:26 UTC
I have investigated a bit more and found that KIE-CI uses org.sonatype.maven.wagon.AhcWagon implementation for downloading artifacts (if I am not mistaken). The method AhcWagon.openConnectionInternal() contains the following code
realmBuilder = (new Realm.RealmBuilder())
.setPrincipal( username )
.setPassword( password )
.setUsePreemptiveAuth( false )
.setEnconding( credentialEncoding );
which always disables preemptive authentication. However, porcelli suggested to turn it on in his comment to BZ 1037556, and I was unable to download the artifact by Maven until preemptive authentication was enabled.
Verified on BRMS 6.0.0 CR1. |