Hello There,

I've come across an issue with the "Last-Modified" header that gets sent
with a response. More specifically, I have a resource method that is
setting a "Last-Modified:" header in the following way:

.................................................................................................................................
return
builder.lastModified(myEntity.getModificationDate()).links(selfLink).build();

This is all fine and I can see in the response the the header is set indeed:
Last-Modified: 2014-08-15 22:24:20.0

And then I have a second method which is testing for preconditions as in:

ResponseBuilder builder = request.evaluatePreconditions(modificationDate);

But when this method runs I am getting a parse exception:
.......................................................................................................................................................................................................
"Caused by: org.jboss.resteasy.util.DateUtil$DateParseException: Unable to
parse the date 2014-08-15 22:24:20.0"


I understand I can implement my own ParamConverter<Date> perhaps(?), but is
the provider meant to be using the same format for setting and parsing this
header? Any thoughts?

I am using the resteasy provider that comes with WildFly 8.0.0-Final (I
think this is version 3.0.6.Final)

Thanks,
Savvas
------------------------------------------------------------------------------
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to