Hello Taylor,
Thanks for reporting this issue. It is now fixed in the svn repository.
Best regards,
Thierry Boileau
> I'm getting a null identifier using the Restlet client
>
> Response res = client.post("http://localhost:8080/nodes", r);
> Representation rep = res.getEntity();
> System.out.println(rep.getIdentifier());
> System.out.println(rep.getSize());
> System.out.println(rep.getMediaType());
>
> results in null, 12, and application/json. Am I correct in expecting
> getIdentifier() to extract the newly created "Content-Location"?
>
> I used curl to get the headers. I'm assuming that getIdentifier() utilizes
> the "Content-Location:" which is returned by my restlet:
>
> HTTP/1.1 200 The request has succeeded
> Content-Length: 12
> Content-Location: http://localhost:8080/nodes/21
> Content-Type: application/json; charset=ISO-8859-1
> Date: Fri, 15 Jan 2010 02:13:50 GMT
> Accept-Ranges: bytes
> Server: Restlet-Framework/2.0snapshot
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2437425
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2437445