Re: Restlet Framework 2.2 RC3 released
Hi Jerome, Will this release also change how empty entity are treated? We've been bitten a couple of times now by restlet's habbit to convert empty entities to null. Cheers, Arjohn -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3074087
Re: Restlet Framework 2.2 RC3 released
Hi Arjohn, We had another report for this issue that we just fixed: https://github.com/restlet/restlet-framework-java/issues/848 It will be part of 2.2 RC4 due early next week. Let us know if it works for you. Best regards, Jerome 2014-03-06 0:57 GMT-08:00 Arjohn Kampman arjohn.kamp...@vound-software.com : Hi Jerome, Will this release also change how empty entity are treated? We've been bitten a couple of times now by restlet's habbit to convert empty entities to null. Cheers, Arjohn -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3074087 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3074117
Re: Restlet Framework 2.2 RC3 released
Hi Jerome, Great to hear that. We were also having problem with incoming entities. To give an example: SomeServerResource { @Post void postIdSet(IdSet idSet) { // code here } } An empty IdSet is serialized to an empty entity (byte[0]). We'd expect the converter service to deserialize the entity back to an empty IdSet, but that converter is never invoked and restlet passes null for the idSet parameter instead. I've posted a related question to this list some time ago, see http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2950796 Looking at the code in GitHub, I don't think that this has been fixed yet. Could you have a look? Cheers, Arjohn On 06/03/2014 20:20, Jerome Louvel wrote: Hi Arjohn, We had another report for this issue that we just fixed: https://github.com/restlet/restlet-framework-java/issues/848 It will be part of 2.2 RC4 due early next week. Let us know if it works for you. Best regards, Jerome -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3074126
Re: Restlet Framework 2.2 RC3 released
Thanks Arjohn for reporting this again. I have just entered an issue that we'll try to fix before 2.2.0: https://github.com/restlet/restlet-framework-java/issues/861 Do you think you could contribute a fix/pull request? Best, Jerome 2014-03-06 12:32 GMT-08:00 Arjohn Kampman arjohn.kamp...@vound-software.com : Hi Jerome, Great to hear that. We were also having problem with incoming entities. To give an example: SomeServerResource { @Post void postIdSet(IdSet idSet) { // code here } } An empty IdSet is serialized to an empty entity (byte[0]). We'd expect the converter service to deserialize the entity back to an empty IdSet, but that converter is never invoked and restlet passes null for the idSet parameter instead. I've posted a related question to this list some time ago, see http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2950796 Looking at the code in GitHub, I don't think that this has been fixed yet. Could you have a look? Cheers, Arjohn On 06/03/2014 20:20, Jerome Louvel wrote: Hi Arjohn, We had another report for this issue that we just fixed: https://github.com/restlet/restlet-framework-java/issues/848 It will be part of 2.2 RC4 due early next week. Let us know if it works for you. Best regards, Jerome -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3074126 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3074141