Skip to content

403 accessing _users #2730

Description

@hawkrdg

just installed v3.0 and can't get a logged in user to access their doc

test:

C:\Users\cliff>curl -X POST http://192.168.1.25:5984/_session -d "name=sally.user&password=pw"
returns
{"ok":true,"name":"sally.user","roles":["user","supervisor"]}

C:\Users\cliff>curl -X GET http://192.168.1.25:5984/_users/org.couchdb.user:sally.user
returns
{"error":"unauthorized","reason":"You are not authorized to access this db."}

this is a basic install of v3.0. I created server admins, then created _users table in fauxton. Added users in the usual fashion and the docs seem fine. I ran into this building a login component in angular. I get the same result using angular's HttpClient - login works fine, GET after logging in returns 403. Angular's HttpClient has withCredentials = true as an option, and this has been working fine in couch v2.3

I have tested this against require_valid_user both true and false - same result.

any help would be appreciated here: am I doing something lame...? Do I need some configuration set...? Or is this a bug...?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions