Skip to content
This repository was archived by the owner on Sep 19, 2019. It is now read-only.
This repository was archived by the owner on Sep 19, 2019. It is now read-only.

no reader error raised #3

@benoitc

Description

@benoitc

fabric_rpc:with_db use the couch_db:open_int function which never raise a reader error. As a consequence the reader protection of a db doesn't work.

Step to reproduce :

$ curl -XPUT 'http://admin:test@127.0.0.1:5984/testdb/_security '-d'{"admins": {
    "names": [],
    "roles": []
},
"readers": {
    "names": ["benoitc"],
    "roles": ["testdb:read"]
}}' -H"Content-Type: application/json"
$ curl -XPOST -'http://admin:test@127.0.0.1:5984/testdb' -d'{}' -H"Content-Type: application/json"

will works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions