Re: Restlet Framework 2.2 RC3 released

2014-03-13 Thread Arjohn Kampman
Hi Jerome, Don't have a lot of time to contribute ATM. My impression is that the Representation.getSize() != 0 checks are the main cause of this issue. IMHO these should be removed from ConverterService.toObject() and Representation.isAvailable(), but perhaps also in other places. On

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Arjohn Kampman
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 --

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Jerome Louvel
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

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Arjohn Kampman
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

Re: Restlet Framework 2.2 RC3 released

2014-03-06 Thread Jerome Louvel
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

Restlet Framework 2.2 RC3 released

2014-03-05 Thread Jerome Louvel
Hi all, We are quickly progressing towards our 2.2.0 release with another release candidate 3 available: http://restlet.org/download/current Here are the latest changes http://restlet.org/learn/2.2/changes since 2.2 RC1: - Add JSON related media types. - Moved all the remaining NIO logic