Hey guys,

I am playing with the Sync Gateway and the requireUser/requireRole rules.

I tried to delete a document from my iOS app which I am not allowed to 
delete:

   - I see the "throw" happens on the server side.
   - My local document has already been deleted
   - I do not get notified for this error

By looking at the code 
<https://github.com/couchbase/couchbase-lite-ios/blob/b58d6e824d508ff8c65e506655010dab23c3cd46/Source/CBLRestPusher.m#L350-L363>
 
we clearly see that this error from the sync gateway is considered as 
"normal" because the user is not allowed to do that.

However, I can see cases where it could be beneficial to at least get 
notified. For example: 

   - After publishing my app I notice that a rule was not correctly written 
   and allow user to do bad things. 
   - I update the sync function
   - I update the app
   - A user does not update the app and tries to do the "bad" thing
   - The app gets in a bad state and the user does not even now about it

Is my example to convoluted? Did I miss THE way to get notified when this 
type of error arrives?

Thanks!
Jonas

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3acc18ba-0bd8-4e83-be80-405f2a078cbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to