{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3497","labels_url":"https://api.github.com/repos/chef/chef/issues/3497/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3497/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3497/events","html_url":"https://github.com/chef/chef/pull/3497","id":85693845,"number":3497,"title":"Issue#3485: Fix corruption of run_context when guard interpreters are executed","user":{"login":"adamedx","id":2422125,"avatar_url":"https://avatars.githubusercontent.com/u/2422125?v=3","gravatar_id":"","url":"https://api.github.com/users/adamedx","html_url":"https://github.com/adamedx","followers_url":"https://api.github.com/users/adamedx/followers","following_url":"https://api.github.com/users/adamedx/following{/other_user}","gists_url":"https://api.github.com/users/adamedx/gists{/gist_id}","starred_url":"https://api.github.com/users/adamedx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamedx/subscriptions","organizations_url":"https://api.github.com/users/adamedx/orgs","repos_url":"https://api.github.com/users/adamedx/repos","events_url":"https://api.github.com/users/adamedx/events{/privacy}","received_events_url":"https://api.github.com/users/adamedx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/chef/chef/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-06T04:29:10Z","updated_at":"2015-06-08T14:40:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3497","html_url":"https://github.com/chef/chef/pull/3497","diff_url":"https://github.com/chef/chef/pull/3497.diff","patch_url":"https://github.com/chef/chef/pull/3497.patch"},"body":"Addresses #3485 -- the `RunContext` alters the private state of the node passed to the `RunContext#initialize`. The node passed in this case is the actual `Node` instance being tracked by the Chef Client run, so unpredictable side-effects may occur, though so far we have only one known issue related to this problem. The limited observations are possibly due to the internals of Chef using the `RunContext` instance referenced from sources other than the corrupt `Node` instance.\r\n\r\nPassing a duplicate of the `Node` instance to the `initialize` method of `RunContext` avoids this problem while still meeting the requirements of `guard_interpreter` resource execution."},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/110018234","html_url":"https://github.com/chef/chef/pull/3497#issuecomment-110018234","issue_url":"https://api.github.com/repos/chef/chef/issues/3497","id":110018234,"user":{"login":"jdmundrawala","id":27443,"avatar_url":"https://avatars.githubusercontent.com/u/27443?v=3","gravatar_id":"","url":"https://api.github.com/users/jdmundrawala","html_url":"https://github.com/jdmundrawala","followers_url":"https://api.github.com/users/jdmundrawala/followers","following_url":"https://api.github.com/users/jdmundrawala/following{/other_user}","gists_url":"https://api.github.com/users/jdmundrawala/gists{/gist_id}","starred_url":"https://api.github.com/users/jdmundrawala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdmundrawala/subscriptions","organizations_url":"https://api.github.com/users/jdmundrawala/orgs","repos_url":"https://api.github.com/users/jdmundrawala/repos","events_url":"https://api.github.com/users/jdmundrawala/events{/privacy}","received_events_url":"https://api.github.com/users/jdmundrawala/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T14:40:25Z","updated_at":"2015-06-08T14:40:25Z","body":":+1: "}}