Re: Converting couchdb json file to cblite file

2014-07-22 Thread Azhar Bandri
On Friday, July 18, 2014 10:55:22 PM UTC+5:30, Traun Leyden wrote: > > > Eventually, we will have a "portable java" version of LiteServ that could > run as a desktop app. > >> >> Yes, the "Java/android" desktop app would be of real help. Thanks! -- You received this message because you are su

Re: Converting couchdb json file to cblite file

2014-07-22 Thread Azhar Bandri
On Monday, July 21, 2014 9:15:21 PM UTC+5:30, Jens Alfke wrote: > > > If necessary you could write a trivial little app that did nothing but > run that replication. > > —Jens > I think I will go with this option now. Thanks! -- You received this message because you are subscribed to the Googl

Re: Best data model for large content-sharing application with Sync Gateway and CBL

2014-07-22 Thread J. Chris Anderson
The cheaper solution would be to send the client a message that says drop channel X. And there is some kind of ref count in the client that when no more channels reference a doc it is purged. -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.

ChangeTracker Timeout Issue

2014-07-22 Thread Dominique Legault
I'm developing the custom indirect authentication feature for the Todolite-Phonegap app and I'm running into an issue with a post to the _changes REST API timing out. here is the sync_gateway log: 10:04:37.743256 HTTP: #042: POST /todos/_session (ADMIN) 10:04:37.744779 HTTP: #043: POST /todos

Override setters/getters for CBLModel

2014-07-22 Thread Ragu Vijaykumar
Since the CBLModel uses dynamic variables, I was wondering what the approach would be if I needed to override a setter / getter? I obviously can't call super, is there some other function I should call to pass the input variable onto the CBLModel so it can save / get it? Thanks. -- You receive

Re: Override setters/getters for CBLModel

2014-07-22 Thread Jens Alfke
On Jul 22, 2014, at 11:07 AM, Ragu Vijaykumar wrote: > Since the CBLModel uses dynamic variables, I was wondering what the approach > would be if I needed to override a setter / getter? I obviously can't call > super, is there some other function I should call to pass the input variable > ont

Replication timeout and internal server errors

2014-07-22 Thread wbison
We have a setup where 3-6 iPads in a LAN need to be aware of changes in a set of documents. When our app is started, the following steps are performed: - start a CBLListener - start a NSNetServiceBrowser - on receipt of a netServiceBrowser:didFindService a 'peer' object is created

best practice or keeping sessions alive for several days

2014-07-22 Thread Seung Chan Lim
I want my users to be able to take advantage of offline use of the app. The only way to authenticate them is through the sync gateway, which requires that they're online. So I can have them authenticate once while they're online, then keep the session cookie cached and use it to replicate whene

Re: Replication timeout and internal server errors

2014-07-22 Thread Jens Alfke
On Jul 22, 2014, at 12:09 PM, wbi...@attic.nl wrote: > This works fine but every few days the replication stops and we see > replication errors "Request time out" and "500 Internal server error" in our > logs. There is no relation with the workload or the number of ipads. Which replication st

Re: best practice or keeping sessions alive for several days

2014-07-22 Thread Jens Alfke
On Jul 22, 2014, at 1:47 PM, Seung Chan Lim wrote: > The question is, what's the best practice to doing this over a long duration > of time? What if they're offline for days? They might need to re-authenticate, if you're using cookies and the delay is longer than the session lifetime. > Do I

Re: Question about additional user fields not being saved via Sync Gateway Admin API.

2014-07-22 Thread Joel Saltzman
Does this mean the password field for a sync gateway _user should be set only if you are using the builtin login methods (Facebook or persona)? On Wednesday, January 22, 2014 2:34:32 PM UTC-8, Jens Alfke wrote: > > > Or if you're using custom authentication — where the client connects to > your

Re: ChangeTracker Timeout Issue

2014-07-22 Thread Dominique Legault
I just tested the issue with the https://github.com/couchbaselabs/TodoLite-PhoneGap repository. and I get the same results: When I login with facebook on my own sync gateway. Could there be an issue with my sync_gateway configuration. I'm using the stock configuration that comes with the TodoLit

Re: ChangeTracker Timeout Issue

2014-07-22 Thread Dominique Legault
I've filled an issue here: https://github.com/couchbase/sync_gateway/issues/377 On Tuesday, 22 July 2014 15:48:55 UTC-7, Dominique Legault wrote: > > I just tested the issue with the > https://github.com/couchbaselabs/TodoLite-PhoneGap repository. > and I get the same results: > When I login wit

Re: Question about additional user fields not being saved via Sync Gateway Admin API.

2014-07-22 Thread Joel Saltzman
Sorry, I should have tested first. I was worried that I couldn't do basic auth using the _user password field. A simple test showed that I can use the password field. On Tuesday, July 22, 2014 3:44:37 PM UTC-7, Joel Saltzman wrote: > > Does this mean the password field for a sync gateway _user s

Re: ChangeTracker Timeout Issue

2014-07-22 Thread Jens Alfke
On Jul 22, 2014, at 3:48 PM, Dominique Legault wrote: > I think I'm going to file an issue with the sync_gateway git repository. My hunch is it's a Couchbase Lite (Android) issue, since that's what's throwing the exception. And the changes feed is supposed to sit idle, so a timeout shouldn't

Re: Question about additional user fields not being saved via Sync Gateway Admin API.

2014-07-22 Thread Jens Alfke
On Jul 22, 2014, at 5:09 PM, Joel Saltzman wrote: > Sorry, I should have tested first. I was worried that I couldn't do basic > auth using the _user password field. A simple test showed that I can use the > password field. That's exactly what the password field is for (HTTP auth). Facebook an