Re: Re: redirect with get from post

2013-04-17 Thread Jerome Louvel
Hi Adam,

Thanks for the cool feed-back on RF!

As far as I know, HTTP redirection doesn't let you explicitely specify the
HTTP method to use for the target URI.

Looking more closely at the HTTP redirection statuses:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3

it does appear that status code 303 (and potentially 302) do change the
method from POST to GET automatically! It should therefore work with RF as
expected.

Best regards,
Jerome
--
http://restlet.org
http://twitter.com/#!/jlouvel



2013/4/17 Adam Mc a...@cs.miami.edu

 Jerome,

 thanks for your reply.  Yes, I was not aware of the html redirect, as I
 have always used server side.  I suppose that would work, but it does seem
 that serverside is a more recommended method.

 My pattern is that an HTML FORM submits a POST, and depending on the
 circumstance, issues a redirect.  This pattern always worked fine using
 servlets. Switching to Restlet caused a bit of a problem in this area as it
 was forcing a POST redirect.

 Too bad we can't designate the redirect method.  Is there something in
 REST or HTTP that dictates against changing methods on a redirect?

 Regardless, I have found Restlets to be a great framework and I am
 currently in the process of switching some major code base over to the
 framework.

 Thanks again,
 -Adam

 --

 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053474


--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053504

RE: Restlet Framework 2.1.2 and 2.2 M3 released (+ new web site)

2013-04-17 Thread Darryl Miles
Great work.

But what is broken in the Maven repo ?

http://maven.restlet.org/org/restlet/org.restlet/  (should a 2.1.1 version be 
here?)

http://maven.restlet.org/org/restlet/org.restlet.ext.servlet/  (same again, 
should a 2.1.1 version be here?)

I have Apache Solr 4.2.1 and it references:

org.restlet:org.restlet:2.1.1
org.restlet:org.restlet.ext.servlet:2.1.1

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053512


Re: Restlet Framework 2.1.2 and 2.2 M3 released (+ new web site)

2013-04-17 Thread Arjohn Kampman
I think the proper location for these artifacts are:

http://maven.restlet.org/org/restlet/jee/org.restlet/
http://maven.restlet.org/org/restlet/jee/org.restlet.ext.servlet/

Apache Solr should update the groupId of their dependencies to include 
the targeted platform, e.g. org.restlet.jee.


On 17/04/2013 11:49, Darryl Miles wrote:
 Great work.

 But what is broken in the Maven repo ?

 http://maven.restlet.org/org/restlet/org.restlet/  (should a 2.1.1 version be 
 here?)

 http://maven.restlet.org/org/restlet/org.restlet.ext.servlet/  (same again, 
 should a 2.1.1 version be here?)

 I have Apache Solr 4.2.1 and it references:

 org.restlet:org.restlet:2.1.1
 org.restlet:org.restlet.ext.servlet:2.1.1


--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053518


RE: Re: Restlet Framework 2.1.2 and 2.2 M3 released (+ new web site)

2013-04-17 Thread Darryl Miles
Ah yes they are using correct GAV.  I don't know restlet's project history with 
groupId changes.

So... looking at the problem I see again from another angle.

Maybe the issue is the Nexus index is out of date on maven.restlet.org ?  

My local Nexus repository (which I only setup today) does not list anything 
after:

2.0.10
2.1-RC1

org.restlet.jee:org.restlet.ext.servlet

Since a nexus index exists this is probably used in preference to just trying 
to obtain the artifact.

I tried to disable Download Remote Indexes (of the local Nexus repo) but I 
think because it has already downloaded an index it is still being used in 
preference to hitting the origin server for every HTTP/404.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053519


RE: Re: Restlet Framework 2.1.2 and 2.2 M3 released (+ new web site)

2013-04-17 Thread Thierry Boileau
Hello Darryl, Arjohn,

I've reconnected the nexus indexation process... It should be better now.
Thanks for reporting this issue.

Best regards,
Thierry Boileau

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053527


RE: Re: Restlet Framework 2.1.2 and 2.2 M3 released (+ new web site)

2013-04-17 Thread Darryl Miles
I can confirm this has resolved the problem.

Thanks for the swift response.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053528