On Sat, 2010-10-02 at 18:06 -0600, Justin Deoliveira wrote:
> None here. I imagine all the rest config tests pass?
Actually they don't. But _seems_ to be due to a bad assumption in the
test code originated by a bug in
com.noelios.restlet.ext.servlet.ResletCall.
The fix for geoserver is to replace the calls to
MockHttpServletResponse.getStatusCode() by a call to getErrorCode() for
the cases where an HTTP error code is expected.
For example:
public void testXXX(){
assertEquals( 405, putAsServletResponse("/rest/...").
}
instead of
public void testXXX(){
assertEquals( 405, putAsServletResponse("/rest/...").
}
All in all I think we better don't do that for 2.0.x, I'm already asking
the geonode dev branch to switch to geoserver-2.1.x anyways.
But for trunk it would be worth it.
Cheers,
Gabriel
>
>
>
> On Oct 2, 2010, at 2:18 PM, Gabriel Roldán <[email protected]> wrote:
>
> > Hey,
> >
> > tried a tentative upgrade for the org.restlet dependencies version, from
> > 1.0.8 to the latest stable 1.1.10, because I need support for setting
> > the HTTP header "content-disposition" and it was added only at version
> > 1.1. Also note 1.0.x is more than three years old?
> >
> > Any objection in upgrading to restlet api 1.1.10? (would need to be both
> > for trunk and 2.0.x.
> >
> > --
> > Gabriel Roldan
> > [email protected]
> > Expert service straight from the developers
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Start uncovering the many advantages of virtual appliances
> > and start using them to simplify application deployment and
> > accelerate your shift to cloud computing.
> > http://p.sf.net/sfu/novell-sfdev2dev
> > _______________________________________________
> > Geoserver-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Gabriel Roldan
[email protected]
Expert service straight from the developers
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel