Server-side errors that occur during saving data are not reported to the client application

Sep 16, 2010 at 4:55 PM

I create a new object that should be stored on the server:

[self.dataSource addToFolderDocumentItems: aNewObject];
[self.dataSource saveChanges];

where self.dataSource is an instance of a class generated by odatagen.

There is a bug on the server side - an exception is thrown during saving the new object. As a result, an "Internal server error" response is sent to the client application. But the saveChanges method returns correctly, so the client application doesn't know that data hasn't been saved. I suggest that saveChanges method throw an exception if it receives an error from server.

Oct 13, 2010 at 10:05 PM

Adding this as a bug, the saveChanges method should throw an exception in this case.



Mar 12, 2011 at 1:15 AM

Fixed in Version 1.2. We now get a 500 error from the server. No exceptions are generated, but the 500 error is now available to the user.