{"action":"created","issue":{"url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/49","repository_url":"https://api.github.com/repos/hacdias/caddy-filemanager","labels_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/49/comments","events_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/49/events","html_url":"https://github.com/hacdias/caddy-filemanager/issues/49","id":189153017,"number":49,"title":"Creating a page with number content only results in PANIC and response-code 500","user":{"login":"ebudan","id":14150096,"avatar_url":"https://avatars.githubusercontent.com/u/14150096?v=3","gravatar_id":"","url":"https://api.github.com/users/ebudan","html_url":"https://github.com/ebudan","followers_url":"https://api.github.com/users/ebudan/followers","following_url":"https://api.github.com/users/ebudan/following{/other_user}","gists_url":"https://api.github.com/users/ebudan/gists{/gist_id}","starred_url":"https://api.github.com/users/ebudan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebudan/subscriptions","organizations_url":"https://api.github.com/users/ebudan/orgs","repos_url":"https://api.github.com/users/ebudan/repos","events_url":"https://api.github.com/users/ebudan/events{/privacy}","received_events_url":"https://api.github.com/users/ebudan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T16:09:36Z","updated_at":"2016-11-14T16:25:31Z","closed_at":null,"body":"This is a bit of an edge case, but...  who knows who might need a page with a number. (I wouldn't, but hit this while tracking down something else.)\r\n\r\nIf you use Filemanager to create a page containing only something that can be parsed as a number, `handlers/put.go:PreProccessPUT()` will panic at the following point:\r\n\r\n    mainContent := data[\"content\"].(string)\r\n\r\nA quick inspection shows that saving page content \"1\" PUTs\r\n\r\n    { content: 1 }\r\n\r\nwhile page content \"a\" PUTs\r\n\r\n    { content: \"a\" }\r\n\r\nThis is deliberately done in `_embed/public/js/form2js.js`, function convertValue(), so I'm not certain whether client or server-side would be the place to cover the case.\r\n"},"comment":{"url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/comments/260383666","html_url":"https://github.com/hacdias/caddy-filemanager/issues/49#issuecomment-260383666","issue_url":"https://api.github.com/repos/hacdias/caddy-filemanager/issues/49","id":260383666,"user":{"login":"ebudan","id":14150096,"avatar_url":"https://avatars.githubusercontent.com/u/14150096?v=3","gravatar_id":"","url":"https://api.github.com/users/ebudan","html_url":"https://github.com/ebudan","followers_url":"https://api.github.com/users/ebudan/followers","following_url":"https://api.github.com/users/ebudan/following{/other_user}","gists_url":"https://api.github.com/users/ebudan/gists{/gist_id}","starred_url":"https://api.github.com/users/ebudan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebudan/subscriptions","organizations_url":"https://api.github.com/users/ebudan/orgs","repos_url":"https://api.github.com/users/ebudan/repos","events_url":"https://api.github.com/users/ebudan/events{/privacy}","received_events_url":"https://api.github.com/users/ebudan/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T16:25:31Z","updated_at":"2016-11-14T16:25:31Z","body":"Just realised: this also comes up if you try to delete all page content and save an empty page.\r\n"}}
{"actor":{"display_login":"ebudan"}}