{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/24647","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/24647/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/24647/comments","events_url":"https://api.github.com/repos/rails/rails/issues/24647/events","html_url":"https://github.com/rails/rails/issues/24647","id":149710589,"number":24647,"title":"IOError: not modifiable string thrown by Hash.from_xml","user":{"login":"gleseur","id":1303269,"avatar_url":"https://avatars.githubusercontent.com/u/1303269?v=3","gravatar_id":"","url":"https://api.github.com/users/gleseur","html_url":"https://github.com/gleseur","followers_url":"https://api.github.com/users/gleseur/followers","following_url":"https://api.github.com/users/gleseur/following{/other_user}","gists_url":"https://api.github.com/users/gleseur/gists{/gist_id}","starred_url":"https://api.github.com/users/gleseur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gleseur/subscriptions","organizations_url":"https://api.github.com/users/gleseur/orgs","repos_url":"https://api.github.com/users/gleseur/repos","events_url":"https://api.github.com/users/gleseur/events{/privacy}","received_events_url":"https://api.github.com/users/gleseur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-20T09:21:47Z","updated_at":"2016-04-20T10:14:21Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n     Hash.from_xml \"<?xml version=\\\"1.0\\\"?><a></a>\".freeze\r\n\r\nIOError: not modifiable string\r\nfrom .../activesupport-4.2.6/lib/active_support/xml_mini/rexml.rb:27:in `ungetc'\r\n\r\n### Expected behavior\r\nI would expect Hash.from_xml not to fail on frozen strings\r\n\r\n### Actual behavior\r\nError raised\r\n\r\n### System configuration\r\nRails 4.2.6\r\nRuby 2.3.0\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/212366100","html_url":"https://github.com/rails/rails/issues/24647#issuecomment-212366100","issue_url":"https://api.github.com/repos/rails/rails/issues/24647","id":212366100,"user":{"login":"gleseur","id":1303269,"avatar_url":"https://avatars.githubusercontent.com/u/1303269?v=3","gravatar_id":"","url":"https://api.github.com/users/gleseur","html_url":"https://github.com/gleseur","followers_url":"https://api.github.com/users/gleseur/followers","following_url":"https://api.github.com/users/gleseur/following{/other_user}","gists_url":"https://api.github.com/users/gleseur/gists{/gist_id}","starred_url":"https://api.github.com/users/gleseur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gleseur/subscriptions","organizations_url":"https://api.github.com/users/gleseur/orgs","repos_url":"https://api.github.com/users/gleseur/repos","events_url":"https://api.github.com/users/gleseur/events{/privacy}","received_events_url":"https://api.github.com/users/gleseur/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T10:14:21Z","updated_at":"2016-04-20T10:14:21Z","body":"@mayurkhatri Hash.from_xml parses the string to build a hash, I don't see why the parser should modify the parsed string. I would even say that I expect the parser to never modify the string being parsed.\r\n\r\n"}}