{"action":"created","issue":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/490","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/490/comments","events_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/490/events","html_url":"https://github.com/LearningLocker/learninglocker/issues/490","id":55218491,"number":490,"title":"State API requires eTags (should be optional)","user":{"login":"garemoko","id":1363163,"avatar_url":"https://avatars.githubusercontent.com/u/1363163?v=3","gravatar_id":"","url":"https://api.github.com/users/garemoko","html_url":"https://github.com/garemoko","followers_url":"https://api.github.com/users/garemoko/followers","following_url":"https://api.github.com/users/garemoko/following{/other_user}","gists_url":"https://api.github.com/users/garemoko/gists{/gist_id}","starred_url":"https://api.github.com/users/garemoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garemoko/subscriptions","organizations_url":"https://api.github.com/users/garemoko/orgs","repos_url":"https://api.github.com/users/garemoko/repos","events_url":"https://api.github.com/users/garemoko/events{/privacy}","received_events_url":"https://api.github.com/users/garemoko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/priority:medium","name":"priority:medium","color":"eb6420"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/status:unmerged","name":"status:unmerged","color":"eb6420"},{"url":"https://api.github.com/repos/LearningLocker/learninglocker/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/14","html_url":"https://github.com/LearningLocker/learninglocker/milestones/1.3.4","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones/14/labels","id":978208,"number":14,"title":"1.3.4","description":"","creator":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":12,"state":"open","created_at":"2015-02-13T10:29:50Z","updated_at":"2015-02-25T14:59:14Z","due_on":null,"closed_at":null},"comments":50,"created_at":"2015-01-22T22:29:43Z","updated_at":"2015-02-25T15:48:09Z","closed_at":null,"body":"**Version**\r\nLatest from composer as 22nd Jan 2015\r\n\r\n**Steps to reproduce the bug**\r\n1. Store an application/json document in the State API. \r\n2. Update the document (PUT) omitting the etag header. \r\n\r\n**Expected behaviour**\r\nDocument should be accepted, returning 204 no content. Etags are not required for the State API, only the Agent and Activity Profile APIs. \r\n\r\n**Actual behaviour**\r\n400 Bad request is returned. \r\n\r\n**Server information**\r\nMongoDB with Basic auth. Running on MAMP. \r\n\r\n**Client information**\r\nOS: OS X 10.10.1\r\nBrowser: Chrome\r\n\r\n**Additional information**\r\nI've tested the client code I'm using against Wax and Cloud and it works. "},"comment":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/comments/75984142","html_url":"https://github.com/LearningLocker/learninglocker/issues/490#issuecomment-75984142","issue_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/490","id":75984142,"user":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T15:48:09Z","updated_at":"2015-02-25T15:48:09Z","body":"Just wrote a migration. You need to run `php artisan migrate --env=YOUR_ENV`. Then you should be ok to test it out :)"}}