Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ETag checking/optimistic locking in Offline OData Tutorial for Android

former_member756951
Discoverer
0 Likes
651

Hi,

I just completed the Offline OData Tutorial for Android. According to the docs an optimistic locking approach based on ETags is implemented in the offline api.

I would like to test this and therefore I installed the sample app on two devices. After initial sync, I modified the same SalesOrderItem on both devices. Then I synchronized changes on the first device.
When trying to sync on the second device, I expected a conflict due to a stale ETag, but the sync completed successfully and changes from the first device were overriden.

Am I doing something wrong?

1 REPLY 1
Read only

former_member756951
Discoverer
0 Likes
545

When querying the sample odata service, I cannot see any @odata.etag properties in the response. Therefore I think there is just no support for etags in the sample-odata-v2-espm service.
Is it possible to use another odata service supporting etags with an trial account?