{"action":"closed","issue":{"url":"https://api.github.com/repos/liqd/adhocracy3.mercator/issues/1679","labels_url":"https://api.github.com/repos/liqd/adhocracy3.mercator/issues/1679/labels{/name}","comments_url":"https://api.github.com/repos/liqd/adhocracy3.mercator/issues/1679/comments","events_url":"https://api.github.com/repos/liqd/adhocracy3.mercator/issues/1679/events","html_url":"https://github.com/liqd/adhocracy3.mercator/issues/1679","id":108278149,"number":1679,"title":"Editing a comment fails","user":{"login":"slomo","id":141032,"avatar_url":"https://avatars.githubusercontent.com/u/141032?v=3","gravatar_id":"","url":"https://api.github.com/users/slomo","html_url":"https://github.com/slomo","followers_url":"https://api.github.com/users/slomo/followers","following_url":"https://api.github.com/users/slomo/following{/other_user}","gists_url":"https://api.github.com/users/slomo/gists{/gist_id}","starred_url":"https://api.github.com/users/slomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slomo/subscriptions","organizations_url":"https://api.github.com/users/slomo/orgs","repos_url":"https://api.github.com/users/slomo/repos","events_url":"https://api.github.com/users/slomo/events{/privacy}","received_events_url":"https://api.github.com/users/slomo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liqd/adhocracy3.mercator/labels/backend","name":"backend","color":"bfe5bf"},{"url":"https://api.github.com/repos/liqd/adhocracy3.mercator/labels/bug","name":"bug","color":"c52020"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-25T07:39:33Z","updated_at":"2015-10-05T13:10:44Z","closed_at":"2015-10-05T13:10:44Z","body":"On the digital_leben process in version 0.3.8 I am unable to edit a comment. Meaning I can open the edit window, change test but when hitting \"speichern\" nothing happens. On the browser console the following out put can be observed:\r\n\r\n```\r\nPOST https://spd-perspektivdebatte.liqd.net/api/batch 400 (Bad Request)(anonymous function) @ angular.min.js?_=1442561218:92n @ angular.min.js?_=1442561218:88f @ angular.min.js?_=1442561218:86(anonymous function) @ angular.min.js?_=1442561218:120n.$eval @ angular.min.js?_=1442561218:134n.$digest @ angular.min.js?_=1442561218:132n.$apply @ angular.min.js?_=1442561218:135(anonymous function) @ angular.min.js?_=1442561218:252m.event.dispatch @ jquery.min.js?_=1442561218:3r.handle @ jquery.min.js?_=1442561218:3\r\nError.js?_=1442561218:39 Object {data: Object, status: 400, config: Object, statusText: \"Bad Request\"}config: Objectdata: Objectheaders: (c)arguments: (...)caller: (...)length: 1name: \"\"prototype: Object__proto__: ()<function scope>ClosureClosureGlobal: Windowstatus: 400statusText: \"Bad Request\"__proto__: Object\r\n3angular.min.js?_=1442561218:108 TypeError: Cannot read property 'length' of undefined\r\n    at exports.logBackendBatchError (Error.js?_=1442561218:40)\r\n    at angular.min.js?_=1442561218:120\r\n    at n.$eval (angular.min.js?_=1442561218:134)\r\n    at n.$digest (angular.min.js?_=1442561218:132)\r\n    at n.$apply (angular.min.js?_=1442561218:135)\r\n    at l (angular.min.js?_=1442561218:87)\r\n    at F (angular.min.js?_=1442561218:91)\r\n    at XMLHttpRequest.K.onload (angular.min.js?_=1442561218:92)\r\n```\r\n\r\n``` json\r\n[\r\n   {\r\n      \"result_path\" : \"@pn150\",\r\n      \"body\" : {\r\n         \"parent\" : \"https://spd-perspektivdebatte.liqd.net/api/perspektivdebatte/document_0000001_2015-09-04T09%3A23%3A25.617993%2B00%3A00/PARAGRAPH_0000001_2015-09-04T09%3A27%3A28.138269%2B00%3A00/comments/comment_0000001/\",\r\n         \"root_versions\" : [],\r\n         \"data\" : {\r\n            \"adhocracy_core.sheets.versions.IVersionable\" : {\r\n               \"follows\" : [\r\n                  \"https://spd-perspektivdebatte.liqd.net/api/perspektivdebatte/document_0000001_2015-09-04T09%3A23%3A25.617993%2B00%3A00/PARAGRAPH_0000001_2015-09-04T09%3A27%3A28.138269%2B00%3A00/comments/comment_0000001/VERSION_0000001/\"\r\n               ]\r\n            },\r\n            \"adhocracy_core.sheets.comment.IComment\" : {\r\n               \"refers_to\" : \"https://spd-perspektivdebatte.liqd.net/api/perspektivdebatte/document_0000001_2015-09-04T09%3A23%3A25.617993%2B00%3A00/PARAGRAPH_0000001_2015-09-04T09%3A27%3A28.138269%2B00%3A00/VERSION_0000001/\",\r\n               \"preliminaryNames\" : {\r\n                  \"state\" : 151\r\n               },\r\n               \"content\" : \"Another test comment!\"\r\n            },\r\n            \"adhocracy_core.sheets.metadata.IMetadata\" : {\r\n               \"preliminaryNames\" : {\r\n                  \"state\" : 151\r\n               },\r\n               \"deleted\" : false\r\n            }\r\n         },\r\n         \"content_type\" : \"adhocracy_core.resources.comment.ICommentVersion\"\r\n      },\r\n      \"result_first_version_path\" : \"@pn151\",\r\n      \"method\" : \"POST\",\r\n      \"path\" : \"https://spd-perspektivdebatte.liqd.net/api/perspektivdebatte/document_0000001_2015-09-04T09%3A23%3A25.617993%2B00%3A00/PARAGRAPH_0000001_2015-09-04T09%3A27%3A28.138269%2B00%3A00/comments/comment_0000001/\"\r\n   }\r\n]\r\n```\r\n\r\nThere is no staging environment for this, because I can't currently upgrade the staging server due to sd_evolve issues. On the current stage setup with 0.2.0 I wasn't able to observe this.\r\n\r\nThe respons was:\r\n``` json\r\n{\r\n   \"errors\" : [\r\n      {\r\n         \"location\" : \"body\",\r\n         \"name\" : \"0.path\",\r\n         \"description\" : \"Longer than maximum length 200\"\r\n      }\r\n   ],\r\n   \"status\" : \"error\"\r\n}\r\n```"}}