[
https://issues.apache.org/jira/browse/ACE-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234112#comment-14234112
]
J.W. Janssen commented on ACE-499:
----------------------------------
For my understanding: you have configured the ACE OBR to only allow
authenticated access using HTTP Basic Auth, and you are trying to upload
bundles from Gogo shell to this OBR using the {{AceObrRepository}} plugin?
If this is the case, and given that we're in total control of the URL in that
plugin, I'd say we extend it to support HTTP Basic Auth using either the
{{ConnectionFactory}} of ACE or maybe even directly (not sure yet about the
pros and cons of either solution)...
> AceObrRepository doesn't work for repositories that require authentication
> --------------------------------------------------------------------------
>
> Key: ACE-499
> URL: https://issues.apache.org/jira/browse/ACE-499
> Project: ACE
> Issue Type: Bug
> Affects Versions: 2.0.1
> Reporter: Bram Pouwelse
>
> The AceObrRepository (at least in the way it's used in the gogo support
> functions) doesn't support using a repository that requires authentication.
> I've tried adding a Registry to the plugin to provide a
> "aQute.bnd.deployer.http.HttpBasicAuthURLConnector", this resolves the issue
> for read actions but the upload method still doesn't work. The UrlConnector
> interface currently only supports read actions so making this work would
> require a change in bnd.
> Discussed this issue with [~marrs], he proposed to obtain a BundleContext
> using FrameworkUtil to retrieve the Ace ConnectionFactory service. A possible
> drawback of this solution would be that this doesn't work in case the
> AceObrRepository is used from bnd(tools)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)