thybag / PHP-SharePoint-Lists-API

A simple PHP API to make working with SharePoint lists easy.
MIT License
184 stars 95 forks source link

A race condition (I assume) in sharepoint leads to misleading responces. #160

Open ghost opened 4 years ago

ghost commented 4 years ago

When using the update command with SharePoint online, SharePoint (and therefore by extension this library) returns a copy of the record. However, SharePoint online often takes longer to update its self then the API call takes to run. This leads to the returned record being out of date and therefore misleading, as it appears an update has failed when in fact it has succeeded.

As noted I think this is an issue with SharePoint online as opposed to this library, however, clarification of this effect may prove useful to other developers (and save them two days work trying to figure out why thing "weren't saving").

thybag commented 4 years ago

Thanks for the info. Have merged your update with the message :)