Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory backend sometimes show empty permissions #1045

Closed
gabisurita opened this issue Jan 27, 2017 · 0 comments
Closed

Memory backend sometimes show empty permissions #1045

gabisurita opened this issue Jan 27, 2017 · 0 comments
Labels

Comments

@gabisurita
Copy link
Member

gabisurita commented Jan 27, 2017

If you do multiple requests on memory backend, the empty permissions cycle between showing and not showing. The same does not happen with postgres.

gsurita-30820:kinto gsurita$ echo '{"permissions": {"read": []}}' | http put localhost:8888/v1/buckets/b1 -a a:a

{
    "data": {
        "id": "b1",
        "last_modified": 1485553456205
    },
    "permissions": {
        "write": [
            "basicauth:80866b4d0726f35eda20b90bc479a38727c99c68d7c88a87f3b860726a79daeb"
        ]
    }
}

gsurita-30820:kinto gsurita$ echo '{"permissions": {"read": []}}' | http put localhost:8888/v1/buckets/b1 -a a:a

{
    "data": {
        "id": "b1",
        "last_modified": 1485553470501
    },
    "permissions": {
        "collection:create": [],
        "group:create": [],
        "read": [],
        "write": [
            "basicauth:80866b4d0726f35eda20b90bc479a38727c99c68d7c88a87f3b860726a79daeb"
        ]
    }
}

gsurita-30820:kinto gsurita$ echo '{"permissions": {"read": []}}' | http put localhost:8888/v1/buckets/b1 -a a:a

{
    "data": {
        "id": "b1",
        "last_modified": 1485553471419
    },
    "permissions": {
        "write": [
            "basicauth:80866b4d0726f35eda20b90bc479a38727c99c68d7c88a87f3b860726a79daeb"
        ]
    }
}

gsurita-30820:kinto gsurita$ echo '{"permissions": {"read": []}}' | http put localhost:8888/v1/buckets/b1 -a a:a

{
    "data": {
        "id": "b1",
        "last_modified": 1485553472203
    },
    "permissions": {
        "collection:create": [],
        "group:create": [],
        "read": [],
        "write": [
            "basicauth:80866b4d0726f35eda20b90bc479a38727c99c68d7c88a87f3b860726a79daeb"
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant