{"action":"created","issue":{"url":"https://api.github.com/repos/vatesfr/xo-web/issues/1569","repository_url":"https://api.github.com/repos/vatesfr/xo-web","labels_url":"https://api.github.com/repos/vatesfr/xo-web/issues/1569/labels{/name}","comments_url":"https://api.github.com/repos/vatesfr/xo-web/issues/1569/comments","events_url":"https://api.github.com/repos/vatesfr/xo-web/issues/1569/events","html_url":"https://github.com/vatesfr/xo-web/issues/1569","id":178540457,"number":1569,"title":"Template edition - \"no such object\"","user":{"login":"fufroma","id":5324476,"avatar_url":"https://avatars.githubusercontent.com/u/5324476?v=3","gravatar_id":"","url":"https://api.github.com/users/fufroma","html_url":"https://github.com/fufroma","followers_url":"https://api.github.com/users/fufroma/followers","following_url":"https://api.github.com/users/fufroma/following{/other_user}","gists_url":"https://api.github.com/users/fufroma/gists{/gist_id}","starred_url":"https://api.github.com/users/fufroma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fufroma/subscriptions","organizations_url":"https://api.github.com/users/fufroma/orgs","repos_url":"https://api.github.com/users/fufroma/repos","events_url":"https://api.github.com/users/fufroma/events{/privacy}","received_events_url":"https://api.github.com/users/fufroma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/comp:%20GUI","name":"comp: GUI","color":"006b75"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/comp:%20server","name":"comp: server","color":"bfe5bf"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/difficulty%201:%20easy%20(hours)","name":"difficulty 1: easy (hours)","color":"bfe5bf"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/severity%203:%20high","name":"severity 3: high","color":"ff6600"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/vatesfr/xo-web/milestones/33","html_url":"https://github.com/vatesfr/xo-web/milestones/5.3","labels_url":"https://api.github.com/repos/vatesfr/xo-web/milestones/33/labels","id":1925345,"number":33,"title":"5.3","description":"","creator":{"login":"olivierlambert","id":1241401,"avatar_url":"https://avatars.githubusercontent.com/u/1241401?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlambert","html_url":"https://github.com/olivierlambert","followers_url":"https://api.github.com/users/olivierlambert/followers","following_url":"https://api.github.com/users/olivierlambert/following{/other_user}","gists_url":"https://api.github.com/users/olivierlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlambert/subscriptions","organizations_url":"https://api.github.com/users/olivierlambert/orgs","repos_url":"https://api.github.com/users/olivierlambert/repos","events_url":"https://api.github.com/users/olivierlambert/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlambert/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":39,"state":"open","created_at":"2016-08-05T12:49:23Z","updated_at":"2016-09-22T07:54:50Z","due_on":"2016-10-11T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-09-22T07:25:45Z","updated_at":"2016-09-22T07:55:54Z","closed_at":null,"body":"xo-server 5.2.4 / xo-web 5.2.2\r\n\r\nOn /#/home?s=&t=VM-template\r\n\r\nIf I try to edit a \"default template\" (ex: CentOS 7), edition fail with the error \"no such object\". I have the error when editing the Name, the CPU and the Ram.\r\n\r\nThe default template may be Read Only and edition should not be allowed for those.\r\n\r\nLog:\r\n```\r\nvm.set\r\n{\r\n  \"name_label\": \"fdsCentOS 7\",\r\n  \"id\": \"ceca49dc-034a-1ab1-869c-78ce43a2da3c\"\r\n}\r\n{\r\n  \"message\": \"no such object\",\r\n  \"stack\": \"NoSuchObject: no such object\\n    at Xo.getObject (/source/xo.js:132:12)\\n    at /source/xo-mixins/api.js:99:24\\n    at /usr/local/lib/node_modules/xo-server/node_modules/lodash/_createBaseFor.js:17:11\\n    at baseForOwn (/usr/local/lib/node_modules/xo-server/node_modules/lodash/_baseForOwn.js:13:20)\\n    at /usr/local/lib/node_modules/xo-server/node_modules/lodash/_createBaseEach.js:17:14\\n    at forEach (/usr/local/lib/node_modules/xo-server/node_modules/lodash/forEach.js:38:10)\\n    at Xo.resolveParams (/source/xo-mixins/api.js:93:10)\\n    at Api._callee2$ (/source/xo-mixins/api.js:237:49)\\n    at tryCatch (/usr/local/lib/node_modules/xo-server/node_modules/regenerator-runtime/runtime.js:62:40)\\n    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/xo-server/node_modules/regenerator-runtime/runtime.js:336:22)\\n    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/xo-server/node_modules/regenerator-runtime/runtime.js:95:21)\\n    at step (/usr/local/lib/node_modules/xo-server/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)\\n    at /usr/local/lib/node_modules/xo-server/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:20\\n    at run (/usr/local/lib/node_modules/xo-server/node_modules/core-js/library/modules/es6.promise.js:87:22)\\n    at /usr/local/lib/node_modules/xo-server/node_modules/core-js/library/modules/es6.promise.js:100:28\\n    at flush (/usr/local/lib/node_modules/xo-server/node_modules/core-js/library/modules/_microtask.js:18:9)\",\r\n  \"code\": 1,\r\n  \"data\": {\r\n    \"id\": \"ceca49dc-034a-1ab1-869c-78ce43a2da3c\",\r\n    \"type\": [\r\n      \"VM\",\r\n      \"VM-snapshot\"\r\n    ]\r\n  }\r\n} \r\n```"},"comment":{"url":"https://api.github.com/repos/vatesfr/xo-web/issues/comments/248836101","html_url":"https://github.com/vatesfr/xo-web/issues/1569#issuecomment-248836101","issue_url":"https://api.github.com/repos/vatesfr/xo-web/issues/1569","id":248836101,"user":{"login":"olivierlambert","id":1241401,"avatar_url":"https://avatars.githubusercontent.com/u/1241401?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlambert","html_url":"https://github.com/olivierlambert","followers_url":"https://api.github.com/users/olivierlambert/followers","following_url":"https://api.github.com/users/olivierlambert/following{/other_user}","gists_url":"https://api.github.com/users/olivierlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlambert/subscriptions","organizations_url":"https://api.github.com/users/olivierlambert/orgs","repos_url":"https://api.github.com/users/olivierlambert/repos","events_url":"https://api.github.com/users/olivierlambert/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlambert/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T07:55:54Z","updated_at":"2016-09-22T07:55:54Z","body":"Issue is `VM.destroy(...) [12ms] =!> XapiError: VM_IS_TEMPLATEè"}}
{"actor":{"display_login":"olivierlambert"}}