yhknight / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

AbstractOdataClient throws RuntimeException #264

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call getEntity using OdataJerseyConsumer for an entity does not exist say 
'http://services.odata.org/Northwind/Northwind.svc/Customers('AkLFKI')'
2. The service implementation will return '404 Not Found'
3. But OdataJerseyClient.doRequest(...) will throw RuntimeException because 
expected status from a response are only 'Status.OK, Status.NO_CONTENT'

What is the expected output? What do you see instead?
Because client is expecting 200 or 204 it throws RuntimeException, actually it 
should have 404 as one of the expected status 

What version of the product are you using? On what operating system?
0.7.0, worked OK with 0.6.0 as it expected 200, 204 and 404

Original issue reported on code.google.com by junejo.s...@gmail.com on 11 Jul 2013 at 3:20