I'm making a request to couchbase lite on phonegap to get a continous feed filtered by a doc id. But I'm getting back a 404!
But it says it is supported here:Am I misreading?
So do I need to create my own view filter to be able to implement such a functionality?
I'm also noticing that the design doc I created through the sync gateway gets replicated to couchbase lite with is id changed to "_design\/name" instead of "_design/name"What am I doing wrong?I'd like to create views on couchbase which then gets replicated out to couchbase lite and used by couchbaselite to do filters on its local couchbase.slim
On Friday, May 30, 2014 1:59:10 PM UTC-4, Seung Chan Lim wrote:No dice... This is weird. One oddness I'm seeing is that the design document is oddly displayed in the couchbase web interface. I can see it listed, but when I use the lookup function and type in the id I get "Document does not exist" message. I don't see it under "Views" tab either. But once again, if I use curl to get it, I get it just fine.I'm putting this design document into couchbase through the sync gateway. I wonder if that's causing trouble?
Ha.... Interesting. Is that at all illegal from the app store perspective?
Ha.... Interesting. Is that at all illegal from the app store perspective?It's been a while since I read it but we wouldn't be the first downloading JavaScript code, I think a lot of PhoneGap apps are just wrappers around web views pointed at remote servers.
Wait, I'm confused. You're saying replicating a design document and running a filter or a map function from it would be illegal.
What are you then referring to when you say "That specific usage is OK”?
Oh, I see. So what Chris is suggesting _is_ illegal. Am I understanding you?
On Jun 4, 2014, at 8:51 AM, Seung Chan Lim wrote:Oh, I see. So what Chris is suggesting _is_ illegal. Am I understanding you?Yes, my understanding is that it’s illegal to download a design doc from a server if it contains JS code that will be run on the client.
I'm no lawyer but I wonder if it's changed now that JavaScriptCore is public. Stackoverflow has a lively debate. The best suggestion in that thread is to talk to Apple Developer Relations and ask.
3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's builtin WebKit framework…