Couchdb-lucene and readers problem

11 views
Skip to first unread message

Patrick Barnes

unread,
Sep 24, 2010, 2:53:15 AM9/24/10
to us...@couchdb.apache.org
I have couchdb-lucene set up and working fine - I can query the fulltext
view I have defined. (Using couchdb-lucene 0.5.6 and couchdb 1.0.1)

However, if I set any readers in the database's security options and
call with *proper* credentials, couchdb-lucene fails, with response:

{"code":500,
"reason":"A JSONObject text must begin with '{' at character 1 of
<!DOCTYPE html>\n....... (full text at http://gist.github.com/594894)

I'm guessing couchdb-lucene is not expecting to have to pass on
credentials to couchdb? [Also, why is couchdb responding as if it
received an unauthorised request from a browser?]

Any suggestions?

-Patrick

Robert Newson

unread,
Sep 24, 2010, 5:03:22 AM9/24/10
to us...@couchdb.apache.org
I'm assuming you've set require_valid_user=true?

If so, you need to add a user:pass value to couchdb-lucene's ini file.
The details are in the README under "Security".

Sent from my iPad

Patrick Barnes

unread,
Sep 26, 2010, 10:22:54 PM9/26/10
to us...@couchdb.apache.org
Thanks Robert, that fixed it.

(I'm using the readers list to lock down access per db, not
require_valid_user - I created a 'lucene' user and gave it a role to
allow it access to any db for which it has indexes)

Reply all
Reply to author
Forward
0 new messages