{"action":"closed","issue":{"url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/issues/1062","labels_url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/issues/1062/labels{/name}","comments_url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/issues/1062/comments","events_url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/issues/1062/events","html_url":"https://github.com/Graylog2/graylog2-web-interface/issues/1062","id":55162511,"number":1062,"title":"Exception when acessing node details page with german locale","user":{"login":"bernd","id":461,"avatar_url":"https://avatars.githubusercontent.com/u/461?v=3","gravatar_id":"","url":"https://api.github.com/users/bernd","html_url":"https://github.com/bernd","followers_url":"https://api.github.com/users/bernd/followers","following_url":"https://api.github.com/users/bernd/following{/other_user}","gists_url":"https://api.github.com/users/bernd/gists{/gist_id}","starred_url":"https://api.github.com/users/bernd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernd/subscriptions","organizations_url":"https://api.github.com/users/bernd/orgs","repos_url":"https://api.github.com/users/bernd/repos","events_url":"https://api.github.com/users/bernd/events{/privacy}","received_events_url":"https://api.github.com/users/bernd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"edmundoa","id":716185,"avatar_url":"https://avatars.githubusercontent.com/u/716185?v=3","gravatar_id":"","url":"https://api.github.com/users/edmundoa","html_url":"https://github.com/edmundoa","followers_url":"https://api.github.com/users/edmundoa/followers","following_url":"https://api.github.com/users/edmundoa/following{/other_user}","gists_url":"https://api.github.com/users/edmundoa/gists{/gist_id}","starred_url":"https://api.github.com/users/edmundoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmundoa/subscriptions","organizations_url":"https://api.github.com/users/edmundoa/orgs","repos_url":"https://api.github.com/users/edmundoa/repos","events_url":"https://api.github.com/users/edmundoa/events{/privacy}","received_events_url":"https://api.github.com/users/edmundoa/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/milestones/33","labels_url":"https://api.github.com/repos/Graylog2/graylog2-web-interface/milestones/33/labels","id":872660,"number":33,"title":"1.0.0","description":"","creator":{"login":"joschi","id":43951,"avatar_url":"https://avatars.githubusercontent.com/u/43951?v=3","gravatar_id":"","url":"https://api.github.com/users/joschi","html_url":"https://github.com/joschi","followers_url":"https://api.github.com/users/joschi/followers","following_url":"https://api.github.com/users/joschi/following{/other_user}","gists_url":"https://api.github.com/users/joschi/gists{/gist_id}","starred_url":"https://api.github.com/users/joschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschi/subscriptions","organizations_url":"https://api.github.com/users/joschi/orgs","repos_url":"https://api.github.com/users/joschi/repos","events_url":"https://api.github.com/users/joschi/events{/privacy}","received_events_url":"https://api.github.com/users/joschi/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":36,"state":"open","created_at":"2014-11-19T11:46:35Z","updated_at":"2015-01-23T15:28:56Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-01-22T14:56:29Z","updated_at":"2015-01-23T15:28:56Z","closed_at":"2015-01-23T15:28:56Z","body":"I started the web interface with `activator -Duser.country=DE -Duser.language=de run` and got the following exception when accessing the node details page.\r\n\r\n```\r\n[NumberFormatException: For input string: \"0,5\"]\r\nIn graylog2-web-interface/app/views/system/nodes/show.scala.html:154\r\n151                    <h3>Utilization</h3>\r\n152                    @defining(NumberHelper.asPercent(node.getJournalInfo.journalSize, node.getJournalInfo.journalSizeLimit, 1, false)) { utilizationPercent =>\r\n153                        <div class=\"progress node-journal-usage\">\r\n154                            @if(utilizationPercent.toDouble <= 100.0) {\r\n155                                <div class=\"bar bar-warning\" data-percentage=\"@utilizationPercent\" style=\"width : @utilizationPercent%;\">\r\n156                            } else {\r\n157                                <div class=\"bar bar-warning\" data-percentage=\"100\" style=\"width : 100%;\">\r\n158                            }\r\n159                                @utilizationPercent%\r\n```\r\n\r\nThis is due to the `String.format()` call in the `NumberHelper.asPercent()` method. The `%f` format string will be formatted with the default locale in this case. With a german locale this will be `0,5` in this case. It looks like `\"0,5\".toDouble` fails..."}}