{"action":"opened","issue":{"url":"https://api.github.com/repos/Nearsoft/questions/issues/208","repository_url":"https://api.github.com/repos/Nearsoft/questions","labels_url":"https://api.github.com/repos/Nearsoft/questions/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/Nearsoft/questions/issues/208/comments","events_url":"https://api.github.com/repos/Nearsoft/questions/issues/208/events","html_url":"https://github.com/Nearsoft/questions/issues/208","id":195136629,"number":208,"title":"For \"!\" right-hand operand: Expected a boolean, but this has evaluated to an extended_hash+string ","user":{"login":"wdonet","id":1031454,"avatar_url":"https://avatars.githubusercontent.com/u/1031454?v=3","gravatar_id":"","url":"https://api.github.com/users/wdonet","html_url":"https://github.com/wdonet","followers_url":"https://api.github.com/users/wdonet/followers","following_url":"https://api.github.com/users/wdonet/following{/other_user}","gists_url":"https://api.github.com/users/wdonet/gists{/gist_id}","starred_url":"https://api.github.com/users/wdonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdonet/subscriptions","organizations_url":"https://api.github.com/users/wdonet/orgs","repos_url":"https://api.github.com/users/wdonet/repos","events_url":"https://api.github.com/users/wdonet/events{/privacy}","received_events_url":"https://api.github.com/users/wdonet/received_events","type":"User","site_admin":false},"labels":[{"id":362172806,"url":"https://api.github.com/repos/Nearsoft/questions/labels/P:high","name":"P:high","color":"b60205","default":false},{"id":288370394,"url":"https://api.github.com/repos/Nearsoft/questions/labels/_bug","name":"_bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"ldurazo","id":7563640,"avatar_url":"https://avatars.githubusercontent.com/u/7563640?v=3","gravatar_id":"","url":"https://api.github.com/users/ldurazo","html_url":"https://github.com/ldurazo","followers_url":"https://api.github.com/users/ldurazo/followers","following_url":"https://api.github.com/users/ldurazo/following{/other_user}","gists_url":"https://api.github.com/users/ldurazo/gists{/gist_id}","starred_url":"https://api.github.com/users/ldurazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldurazo/subscriptions","organizations_url":"https://api.github.com/users/ldurazo/orgs","repos_url":"https://api.github.com/users/ldurazo/repos","events_url":"https://api.github.com/users/ldurazo/events{/privacy}","received_events_url":"https://api.github.com/users/ldurazo/received_events","type":"User","site_admin":false},"assignees":[{"login":"ldurazo","id":7563640,"avatar_url":"https://avatars.githubusercontent.com/u/7563640?v=3","gravatar_id":"","url":"https://api.github.com/users/ldurazo","html_url":"https://github.com/ldurazo","followers_url":"https://api.github.com/users/ldurazo/followers","following_url":"https://api.github.com/users/ldurazo/following{/other_user}","gists_url":"https://api.github.com/users/ldurazo/gists{/gist_id}","starred_url":"https://api.github.com/users/ldurazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldurazo/subscriptions","organizations_url":"https://api.github.com/users/ldurazo/orgs","repos_url":"https://api.github.com/users/ldurazo/repos","events_url":"https://api.github.com/users/ldurazo/events{/privacy}","received_events_url":"https://api.github.com/users/ldurazo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-13T01:39:57Z","updated_at":"2016-12-13T01:39:57Z","closed_at":null,"body":"When showing 1 question with answers it's throwing an error because of the FTL.\r\n\r\nIt seems we use a wrong evaluation of the conditional as:\r\n`!answer.status == 'OBSOLETE'`\r\nand should be\r\n`answer.status != 'OBSOLETE'`\r\n\r\nFirst part of the stacktrace:\r\n\r\n> For \"!\" right-hand operand: Expected a boolean, but this has evaluated to an extended_hash+string (com.nearsoft.questions.domain.ItemStatus wrapped into f.e.b.StringModel): ==> answer.status [in template \"showOneQuestion.ftl\" at line 157, column 111] ---- FTL stack trace (\"~\" means nesting-related): - Failed at: #assign canVoteUpAnswer = !ownsAnswer... [in template \"showOneQuestion.ftl\" at line 157, column 17] ---- Java stack trace (for programmers): ---- freemarker.core.NonBooleanException: [... Exception message was already printed; see it above ...] \r\n\r\nSteps to reproduce:\r\n- Go to http://dev.nuuk.me/question/11 and the error will display\r\n\r\nRelated to #193 Obsolete answers"}}
{"actor":{"display_login":"wdonet"}}