Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

POST with If-None-Match: * and provided id in body always return 412 #673

Closed
leplatrem opened this issue Mar 4, 2016 · 0 comments
Closed
Assignees
Labels

Comments

@leplatrem
Copy link
Contributor

{
        "method": "POST",
        "path": "/buckets/default/collections/tasks/records",
        "headers": {
          "Authorization": "Basic dXNlcjpwYXNz",
          "If-None-Match": "*"
        },
        "body": {
          "data": {
            "id": "660d9409-241e-45cc-8b04-ba1ef72167bb",
            "title": "task3",
            "done": true
          },
          "permissions": {}
        }
      }

always return 412, instead of only when id already exists.

@leplatrem leplatrem added the bug label Mar 4, 2016
@leplatrem leplatrem self-assigned this Mar 4, 2016
@Natim Natim closed this as completed in 0b51b8c Mar 5, 2016
Natim added a commit that referenced this issue Mar 5, 2016
Do not always return 412 errors when request header `If-None-Match: *`` is sent on ``POST /collection`` (fixes #673)
@Natim Natim removed the in progress label Mar 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants