SG 1.2 seems to break Basic Auth SG View access

38 views
Skip to first unread message

Todd Freese

unread,
Feb 5, 2016, 12:01:00 PM2/5/16
to Couchbase Mobile
Did this commit make it into SG 1.2 release?  https://github.com/couchbase/sync_gateway/issues/862

Upgrading my SG to 1.2 has broken accessing an SG view with basic auth on port 4984 via a REST. I'm always getting an {"error":"Forbidden","reason":"forbidden"}

If I revert my SG back to the previous build that included the above commit, it starts working again.

Todd

Traun Leyden

unread,
Feb 5, 2016, 1:32:13 PM2/5/16
to mobile-c...@googlegroups.com
See 

https://github.com/couchbase/sync_gateway/issues/1493

and


It's an "unsupported" feature that can be explicitly enabled in the config.  


--
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-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/0aaa0a6c-fc24-4394-8371-605887f22a57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Todd Freese

unread,
Feb 5, 2016, 2:54:45 PM2/5/16
to Couchbase Mobile
Thanks. Is this documented anywhere? Are the docs on the web site updated for 1.2?

Todd

Traun Leyden

unread,
Feb 5, 2016, 2:56:42 PM2/5/16
to mobile-c...@googlegroups.com
The 1.2 docs are up, but I don't think the unsupported feature made it into the docs yet.



On Fri, Feb 5, 2016 at 11:54 AM, Todd Freese <to...@filmworkers.com> wrote:
Thanks. Is this documented anywhere? Are the docs on the web site updated for 1.2?

Todd

--
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-couchba...@googlegroups.com.

Todd Freese

unread,
Feb 5, 2016, 3:18:25 PM2/5/16
to Couchbase Mobile
So I put this in my SG config:

"Unsupported": {

          "UserViews": {

            "Enabled":true

          }

        }


Still gets rejected with a {"error":"Forbidden","reason":"forbidden"}


Also tried:

"unsupported": {
          "user_views": {
            "enabled":true
          }
        }
Any thoughts?
Todd

Todd Freese

unread,
Feb 5, 2016, 3:26:05 PM2/5/16
to Couchbase Mobile
OK, I needed to put the config in the databases section. I had it outside. So my requests are getting through.

Are the previous pre-1.2 existing views compatible with sg 1.2? 

The github issues had a couple comments taking about pre-1.2 view compatibility but not an absolute answer.

Todd
Reply all
Reply to author
Forward
0 new messages