ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Pouwelse (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACE-499) AceObrRepository doesn't work for repositories that require authentication
Date Thu, 04 Dec 2014 11:05:12 GMT

    [ https://issues.apache.org/jira/browse/ACE-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234126#comment-14234126
] 

Bram Pouwelse commented on ACE-499:
-----------------------------------

That is what I'm trying to do.

Yesterday I've tested the "BND approach"  but wasn't happy with the implementation. The {{aQute.bnd.service.url.URLConnector}}
only supports reading and the {{aQute.bnd.deployer.http.HttpBasicAuthURLConnector}} isn't
easy to extend so I ended up with a copy of the {{HttpBasicAuthURLConnector}} which needs
to be wrapped in a {{aQute.bnd.service.Registry}} to be able to pass it to the {{AceObrRepository}}
instance. 

Pros and cons
{noformat}
bnd URLConnector: 
+ Also works when used in bnd(tools)
- Doesn't use the existing Ace  connection factory configuration
- Would be tied to a specific implementation (at least for now as the interface only has read
methods)

Ace ConnectionFactory:
+ Uses the existing Ace  connection factory configuration
- Doesn't work when used in bnd(tools)

{noformat}


> 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)

Mime
View raw message