{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/26030","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/26030/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/26030/comments","events_url":"https://api.github.com/repos/rails/rails/issues/26030/events","html_url":"https://github.com/rails/rails/issues/26030","id":168999385,"number":26030,"title":"constant auto loading causes Module#const_get to load and return the requested constant, if not present in the receiver, from receiver's nesting ancestors (violating const_get spec)","user":{"login":"bughit","id":895588,"avatar_url":"https://avatars.githubusercontent.com/u/895588?v=3","gravatar_id":"","url":"https://api.github.com/users/bughit","html_url":"https://github.com/bughit","followers_url":"https://api.github.com/users/bughit/followers","following_url":"https://api.github.com/users/bughit/following{/other_user}","gists_url":"https://api.github.com/users/bughit/gists{/gist_id}","starred_url":"https://api.github.com/users/bughit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bughit/subscriptions","organizations_url":"https://api.github.com/users/bughit/orgs","repos_url":"https://api.github.com/users/bughit/repos","events_url":"https://api.github.com/users/bughit/events{/privacy}","received_events_url":"https://api.github.com/users/bughit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/activesupport","name":"activesupport","color":"FC9300"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2016-08-02T22:00:52Z","updated_at":"2016-08-12T19:07:54Z","closed_at":"2016-08-03T00:46:33Z","body":"I don't have a test case yet, but would like to know if this is a known limitation of auto loading or should be considered a bug.\r\n\r\nBreaking the ruby api should be avoided if possible, which it may be in this case.  const_get could be overridden setting an ivar flag for the duration of the call (if the second argument is false) which would inform const_missing to avoid searching parents.\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/239534047","html_url":"https://github.com/rails/rails/issues/26030#issuecomment-239534047","issue_url":"https://api.github.com/repos/rails/rails/issues/26030","id":239534047,"user":{"login":"bughit","id":895588,"avatar_url":"https://avatars.githubusercontent.com/u/895588?v=3","gravatar_id":"","url":"https://api.github.com/users/bughit","html_url":"https://github.com/bughit","followers_url":"https://api.github.com/users/bughit/followers","following_url":"https://api.github.com/users/bughit/following{/other_user}","gists_url":"https://api.github.com/users/bughit/gists{/gist_id}","starred_url":"https://api.github.com/users/bughit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bughit/subscriptions","organizations_url":"https://api.github.com/users/bughit/orgs","repos_url":"https://api.github.com/users/bughit/repos","events_url":"https://api.github.com/users/bughit/events{/privacy}","received_events_url":"https://api.github.com/users/bughit/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T19:07:54Z","updated_at":"2016-08-12T19:07:54Z","body":"@fxn\r\n\r\nok, it seemed like after a week there would not be a response\r\n\r\n> he gave a valid rationale I wholly respect\r\n\r\nthis was the rationale:\r\n\r\n> the proposed solution, for example, is insufficient because a const_get can cause an arbitrary amount of code to be executed, outside our control\r\n\r\nI think I addressed this,\r\nhttps://github.com/rails/rails/issues/26030#issuecomment-237110835\r\n\r\nto which there was no response.  Is that not the end of any convincing?\r\n\r\nIf you understand why the fix is invalid, per his rationale, please explain it to me, perhaps a snippet of code that will illustrate the problem.\r\n\r\n"}}
{"actor":{"display_login":"bughit"}}