{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2413","repository_url":"https://api.github.com/repos/couchbase/sync_gateway","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2413/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2413/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2413/events","html_url":"https://github.com/couchbase/sync_gateway/issues/2413","id":215925066,"number":2413,"title":"Creating a view via sg admin port does not return a response","user":{"login":"sethrosetter","id":1365736,"avatar_url":"https://avatars2.githubusercontent.com/u/1365736?v=4","gravatar_id":"","url":"https://api.github.com/users/sethrosetter","html_url":"https://github.com/sethrosetter","followers_url":"https://api.github.com/users/sethrosetter/followers","following_url":"https://api.github.com/users/sethrosetter/following{/other_user}","gists_url":"https://api.github.com/users/sethrosetter/gists{/gist_id}","starred_url":"https://api.github.com/users/sethrosetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethrosetter/subscriptions","organizations_url":"https://api.github.com/users/sethrosetter/orgs","repos_url":"https://api.github.com/users/sethrosetter/repos","events_url":"https://api.github.com/users/sethrosetter/events{/privacy}","received_events_url":"https://api.github.com/users/sethrosetter/received_events","type":"User","site_admin":false},"labels":[{"id":108421991,"url":"https://api.github.com/repos/couchbase/sync_gateway/labels/backlog","name":"backlog","color":"ededed","default":false},{"id":110668780,"url":"https://api.github.com/repos/couchbase/sync_gateway/labels/P1:%20high","name":"P1: high","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":{"login":"jamiltz","id":2589337,"avatar_url":"https://avatars2.githubusercontent.com/u/2589337?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiltz","html_url":"https://github.com/jamiltz","followers_url":"https://api.github.com/users/jamiltz/followers","following_url":"https://api.github.com/users/jamiltz/following{/other_user}","gists_url":"https://api.github.com/users/jamiltz/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiltz/subscriptions","organizations_url":"https://api.github.com/users/jamiltz/orgs","repos_url":"https://api.github.com/users/jamiltz/repos","events_url":"https://api.github.com/users/jamiltz/events{/privacy}","received_events_url":"https://api.github.com/users/jamiltz/received_events","type":"User","site_admin":false},"assignees":[{"login":"jamiltz","id":2589337,"avatar_url":"https://avatars2.githubusercontent.com/u/2589337?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiltz","html_url":"https://github.com/jamiltz","followers_url":"https://api.github.com/users/jamiltz/followers","following_url":"https://api.github.com/users/jamiltz/following{/other_user}","gists_url":"https://api.github.com/users/jamiltz/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiltz/subscriptions","organizations_url":"https://api.github.com/users/jamiltz/orgs","repos_url":"https://api.github.com/users/jamiltz/repos","events_url":"https://api.github.com/users/jamiltz/events{/privacy}","received_events_url":"https://api.github.com/users/jamiltz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/couchbase/sync_gateway/milestones/14","html_url":"https://github.com/couchbase/sync_gateway/milestone/14","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/milestones/14/labels","id":1112439,"number":14,"title":"2.0.0","description":"All proposed changes that result in breaking existing code will be scheduled here, per [semver](http://semver.org/) guidelines.","creator":{"login":"zgramana","id":759830,"avatar_url":"https://avatars3.githubusercontent.com/u/759830?v=4","gravatar_id":"","url":"https://api.github.com/users/zgramana","html_url":"https://github.com/zgramana","followers_url":"https://api.github.com/users/zgramana/followers","following_url":"https://api.github.com/users/zgramana/following{/other_user}","gists_url":"https://api.github.com/users/zgramana/gists{/gist_id}","starred_url":"https://api.github.com/users/zgramana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgramana/subscriptions","organizations_url":"https://api.github.com/users/zgramana/orgs","repos_url":"https://api.github.com/users/zgramana/repos","events_url":"https://api.github.com/users/zgramana/events{/privacy}","received_events_url":"https://api.github.com/users/zgramana/received_events","type":"User","site_admin":false},"open_issues":106,"closed_issues":141,"state":"open","created_at":"2015-05-15T16:45:17Z","updated_at":"2017-11-29T16:42:52Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-03-22T01:13:41Z","updated_at":"2017-11-29T16:42:52Z","closed_at":"2017-11-29T16:42:52Z","author_association":"CONTRIBUTOR","body":"### Sync Gateway version\r\n1.4.0-2\r\n\r\n### Operating system\r\nCentOS 7\r\n\r\n### Config file\r\nstandard\r\n\r\n### Log output\r\n```\r\n2017-03-18T03:56:43.459Z HTTP:  #003: PUT /db/_design/test_views  (ADMIN)\r\n_time=2017-03-18T03:56:43.459+00:00 _level=INFO _msg= Trying with selected node 0\r\n2017-03-18T03:56:43.470Z HTTP+: #003:     --> 201 OK  (11.4 ms)\r\n```\r\n\r\n### Expected behavior\r\nPUT of a view should return a response - https://developer.couchbase.com/documentation/mobile/1.4/references/sync-gateway/admin-rest-api/index.html#!/query/put_db_design_ddoc\r\n\r\n### Actual behavior\r\nIt does not return a response. I can see that the view is creating in Couchbase Server and there are no errors in the Sync Gateway logs.\r\n\r\n### Steps to reproduce\r\n1. `curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{\"views\": {\"filtered\": {\"map\": \"function(doc, meta) {emit(doc.name, null);}\"}}}' 'https://localhost:4985/db/_design/test_views'`\r\n2. The doc PUT is successful but no response is returned"},"comment":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/comments/347920567","html_url":"https://github.com/couchbase/sync_gateway/issues/2413#issuecomment-347920567","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2413","id":347920567,"user":{"login":"djpongh","id":21346920,"avatar_url":"https://avatars3.githubusercontent.com/u/21346920?v=4","gravatar_id":"","url":"https://api.github.com/users/djpongh","html_url":"https://github.com/djpongh","followers_url":"https://api.github.com/users/djpongh/followers","following_url":"https://api.github.com/users/djpongh/following{/other_user}","gists_url":"https://api.github.com/users/djpongh/gists{/gist_id}","starred_url":"https://api.github.com/users/djpongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djpongh/subscriptions","organizations_url":"https://api.github.com/users/djpongh/orgs","repos_url":"https://api.github.com/users/djpongh/repos","events_url":"https://api.github.com/users/djpongh/events{/privacy}","received_events_url":"https://api.github.com/users/djpongh/received_events","type":"User","site_admin":false},"created_at":"2017-11-29T16:42:52Z","updated_at":"2017-11-29T16:42:52Z","author_association":"NONE","body":"Movd to Jira DOC-3015"}}
{"actor":{"display_login":"djpongh"}}