Just to confirm

1) doing db/_all_docs?channels=true

shows that the doc belongs to the expected channel

2) doing db/_user/user_id

shows that the user has access to the channel


slim


On Sunday, October 19, 2014 11:26:34 AM UTC-4, Seung Chan Lim wrote:
>
> BTW, I create users _through_ the sgw. And after creating the users, I 
> also create documents I want these users to have through the same sync gw.
>
> So my understanding from the past is that since the sync function takes 
> care of the channel creating and giving access to the channel to the user, 
> by the end of the user creation, channels are set for this user, and the 
> documents are waiting to be replicated out.
>
> slim
>
> On Sunday, October 19, 2014 10:18:13 AM UTC-4, Seung Chan Lim wrote:
>>
>> I'm seeing a slightly different behavior from the past, so I'm double 
>> checking. (I've updated to couchdb 3 and syncgw 1.02)
>>
>> (I'm on iOS/phonegap)
>>
>> So I use a script to create a user on the server side
>> Then the mobile device talks to the sync gw to authenticate
>> Then using the returned session cookie the mobile device starts push/pull 
>> replication 
>>
>> In the past, when I replicate I used to see a bunch of documents that 
>> were on the couchdb to replicate into the mobile device through the sync gw
>>
>> this time around, I'm not seeing them replicate in.
>>
>> I'm a bit confused as to why... I've checked the session, it seems legit 
>> (i.e. I see the session document on couchdb's admin interface)
>>
>> The only thing else I can think of is the sync function, but I have not 
>> changed it.
>>
>> Where else should I be looking?
>>
>> slim
>>
>

-- 
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 mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/e1ab3ba0-9a38-4ef2-9d65-0fd1c15c05cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to