couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Murphy <martin.mur...@whiteboard-it.com>
Subject Re: Bug in Password
Date Wed, 25 Aug 2010 18:13:21 GMT
Steps to reproduce..

Sign up for a new user in futon with
username.= test@test.com
password = test

 curl -vX PUT http://test%40test.com:test@localhost:5984/db

The reason that this is important is because usernames with ANY encodable
characters cannot replicate at the moment.


On Tue, Aug 24, 2010 at 11:20 AM, Nathan Stott <nrstott@gmail.com> wrote:

> That is the id, but I was referring to the "name" field.
>
> {
>   "_id": "org.couchdb.user:nrstott@gmail.com<org.couchdb.user%3Anrstott@gmail.com>
> ",
>   "_rev": "1-fbc8402aa4d61bf0acd04ab8763760e4",
>   "name": "nrstott@gmail.com",
>   "type": "user",
>   "roles": [
>   ]
> }
>
> That's the actual document.
>
> On Tue, Aug 24, 2010 at 8:44 AM, Benoit Chesneau <bchesneau@gmail.com>
> wrote:
> > On Tue, Aug 24, 2010 at 3:32 PM, Nathan Stott <nrstott@gmail.com> wrote:
> >> It's saved in couch like "username@example.com"
> >>
> >> I have saved users named "nrstott@gmail.com" for example and that's
> >> how it shows up in the "name" field in the user doc
> >>
> >> On Tue, Aug 24, 2010 at 4:43 AM, Benoit Chesneau <bchesneau@gmail.com>
> wrote:
> >>> On Tue, Aug 24, 2010 at 8:08 AM, Nathan Stott <nrstott@gmail.com>
> wrote:
> >>>> You can reproduce it easily using curl or a web browser.  If your
> >>>> username has an @ in it, you can't use URL authentication successfully
> >>>> even if you url encode the username.
> >>>>
> >>>
> >>> At the end couchdb see only the headers. So maybe it's the way the
> >>> user was saved in the doc. Can you check how it is saved compared to
> >>> the pparam you pass in your client or browser ?
> >>>
> >>> - benoƮt
> >>
> >
> > I think it should be org.couchdb.user:username as id in user db. Need
> > to check though.
> >
> > - benoit
> >
>



-- 
Martin Murphy
Whiteboard-it
(205) 910-0720

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message