You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@archiva.apache.org by Brett Porter <br...@apache.org> on 2008/05/11 04:07:51 UTC

test failures on trunk (archiva-security)

Hi,

I haven't got time to dig into it further, but it seems like the  
addition of the xwork integration dependency on trunk causes test  
failures in the existing tests (due to dragging in alternate providers).

I don't think we should depend on the xwork integration in -security -  
though I see the reason why because the HttpAuthenticator that is  
needed is in there.

Is there a way to factor those methods out of there, or for their  
limited need copy them into archiva-security? It seems like these were  
put here to share between the servlets, so the bits that use xwork  
actually will be ignored and could be handled directly from the  
httpservletreq.

Cheers,
Brett

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


Re: test failures on trunk (archiva-security)

Posted by Brett Porter <br...@apache.org>.
On 11/05/2008, at 12:38 PM, Maria Odea Ching wrote:

> I couldn't move these authentication classes from the security  
> module to the webapp module because this would cause a cyclic  
> dependency between the webapp and webdav modules. But I guess I  
> could just have the SecuritySession and AuthenticationResults  
> objects just passed as parameters to the isAuthenticed &  
> isAuthorized methods in archiva-security so as to eliminate the  
> dependency to xwork-integration.

Great! That's better than what I was suggesting.

It's still not perfect (webdav shouldn't depend on xwork) - but that's  
a fault in that redback doesn't properly separate servlet stuff from  
xwork stuff - so, later :)

Cheers,
Brett

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


Re: test failures on trunk (archiva-security)

Posted by Maria Odea Ching <oc...@exist.com>.
Yeah, I was looking at these build failures but I don't have the 
appropriate permissions to see the build results. Archiva is 
successfully building locally, so I can't see what was causing the build 
failure in Continuum. Can I get a developer access for Archiva in 
VMbuild please? :-)

Brett Porter wrote:
> Hi,
>
> I haven't got time to dig into it further, but it seems like the 
> addition of the xwork integration dependency on trunk causes test 
> failures in the existing tests (due to dragging in alternate providers).
>
> I don't think we should depend on the xwork integration in -security - 
> though I see the reason why because the HttpAuthenticator that is 
> needed is in there.
>
> Is there a way to factor those methods out of there, or for their 
> limited need copy them into archiva-security? It seems like these were 
> put here to share between the servlets, so the bits that use xwork 
> actually will be ignored and could be handled directly from the 
> httpservletreq.
I couldn't move these authentication classes from the security module to 
the webapp module because this would cause a cyclic dependency between 
the webapp and webdav modules. But I guess I could just have the 
SecuritySession and AuthenticationResults objects just passed as 
parameters to the isAuthenticed & isAuthorized methods in 
archiva-security so as to eliminate the dependency to xwork-integration.
>
> Cheers,
> Brett
>
> -- 
> Brett Porter
> brett@apache.org
> http://blogs.exist.com/bporter/
>
>

Thanks,
Deng