{"action":"opened","number":277,"pull_request":{"url":"https://api.github.com/repos/qos-ch/logback/pulls/277","id":47664395,"html_url":"https://github.com/qos-ch/logback/pull/277","diff_url":"https://github.com/qos-ch/logback/pull/277.diff","patch_url":"https://github.com/qos-ch/logback/pull/277.patch","issue_url":"https://api.github.com/repos/qos-ch/logback/issues/277","number":277,"state":"open","locked":false,"title":"[LOGBACK-827] restored solution https://github.com/qos-ch/logback/pul…","user":{"login":"atais","id":1538192,"avatar_url":"https://avatars.githubusercontent.com/u/1538192?v=3","gravatar_id":"","url":"https://api.github.com/users/atais","html_url":"https://github.com/atais","followers_url":"https://api.github.com/users/atais/followers","following_url":"https://api.github.com/users/atais/following{/other_user}","gists_url":"https://api.github.com/users/atais/gists{/gist_id}","starred_url":"https://api.github.com/users/atais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atais/subscriptions","organizations_url":"https://api.github.com/users/atais/orgs","repos_url":"https://api.github.com/users/atais/repos","events_url":"https://api.github.com/users/atais/events{/privacy}","received_events_url":"https://api.github.com/users/atais/received_events","type":"User","site_admin":false},"body":"I have found an old solution by @kpavlov and tried to make it work for current version.\r\n\r\nI have managed to move most of the changes from \r\nhttps://github.com/qos-ch/logback/pull/185\r\n\r\nThe only part left from `logback-access/src/test/java/ch/qos/logback/access/dummy/DummyRequest.java`\r\n```java\r\n\r\n        public Object getAttribute(String key) {\r\n            if (key.equals(\"testKey\")) {\r\n                return \"testKey\";\r\n            } else if (AccessConstants.LB_INPUT_BUFFER.equals(key)) {\r\n                return DUMMY_CONTENT_BYTES;\r\n            } else if (AccessConstants.LB_OUTPUT_BUFFER.equals(key)) {\r\n                return DUMMY_RESPONSE_CONTENT_BYTES;\r\n            } else {\r\n                return null;\r\n            }\r\n        }\r\n```\r\n\r\nBut i do not see the reason for this code. I quickly tested the solution with Tomcat 7 and it seems to work.\r\n","created_at":"2015-10-14T14:14:09Z","updated_at":"2015-10-14T14:14:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qos-ch/logback/pulls/277/commits","review_comments_url":"https://api.github.com/repos/qos-ch/logback/pulls/277/comments","review_comment_url":"https://api.github.com/repos/qos-ch/logback/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qos-ch/logback/issues/277/comments","statuses_url":"https://api.github.com/repos/qos-ch/logback/statuses/d57600dcaefd73a163d0a1923b40056ffa3b0f42","head":{"label":"atais:LOGBACK-827","ref":"LOGBACK-827","sha":"d57600dcaefd73a163d0a1923b40056ffa3b0f42","user":{"login":"atais","id":1538192,"avatar_url":"https://avatars.githubusercontent.com/u/1538192?v=3","gravatar_id":"","url":"https://api.github.com/users/atais","html_url":"https://github.com/atais","followers_url":"https://api.github.com/users/atais/followers","following_url":"https://api.github.com/users/atais/following{/other_user}","gists_url":"https://api.github.com/users/atais/gists{/gist_id}","starred_url":"https://api.github.com/users/atais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atais/subscriptions","organizations_url":"https://api.github.com/users/atais/orgs","repos_url":"https://api.github.com/users/atais/repos","events_url":"https://api.github.com/users/atais/events{/privacy}","received_events_url":"https://api.github.com/users/atais/received_events","type":"User","site_admin":false},"repo":{"id":44247138,"name":"logback","full_name":"atais/logback","owner":{"login":"atais","id":1538192,"avatar_url":"https://avatars.githubusercontent.com/u/1538192?v=3","gravatar_id":"","url":"https://api.github.com/users/atais","html_url":"https://github.com/atais","followers_url":"https://api.github.com/users/atais/followers","following_url":"https://api.github.com/users/atais/following{/other_user}","gists_url":"https://api.github.com/users/atais/gists{/gist_id}","starred_url":"https://api.github.com/users/atais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atais/subscriptions","organizations_url":"https://api.github.com/users/atais/orgs","repos_url":"https://api.github.com/users/atais/repos","events_url":"https://api.github.com/users/atais/events{/privacy}","received_events_url":"https://api.github.com/users/atais/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atais/logback","description":"The reliable, generic, fast and flexible logging framework for Java.","fork":true,"url":"https://api.github.com/repos/atais/logback","forks_url":"https://api.github.com/repos/atais/logback/forks","keys_url":"https://api.github.com/repos/atais/logback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atais/logback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atais/logback/teams","hooks_url":"https://api.github.com/repos/atais/logback/hooks","issue_events_url":"https://api.github.com/repos/atais/logback/issues/events{/number}","events_url":"https://api.github.com/repos/atais/logback/events","assignees_url":"https://api.github.com/repos/atais/logback/assignees{/user}","branches_url":"https://api.github.com/repos/atais/logback/branches{/branch}","tags_url":"https://api.github.com/repos/atais/logback/tags","blobs_url":"https://api.github.com/repos/atais/logback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atais/logback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atais/logback/git/refs{/sha}","trees_url":"https://api.github.com/repos/atais/logback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atais/logback/statuses/{sha}","languages_url":"https://api.github.com/repos/atais/logback/languages","stargazers_url":"https://api.github.com/repos/atais/logback/stargazers","contributors_url":"https://api.github.com/repos/atais/logback/contributors","subscribers_url":"https://api.github.com/repos/atais/logback/subscribers","subscription_url":"https://api.github.com/repos/atais/logback/subscription","commits_url":"https://api.github.com/repos/atais/logback/commits{/sha}","git_commits_url":"https://api.github.com/repos/atais/logback/git/commits{/sha}","comments_url":"https://api.github.com/repos/atais/logback/comments{/number}","issue_comment_url":"https://api.github.com/repos/atais/logback/issues/comments{/number}","contents_url":"https://api.github.com/repos/atais/logback/contents/{+path}","compare_url":"https://api.github.com/repos/atais/logback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atais/logback/merges","archive_url":"https://api.github.com/repos/atais/logback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atais/logback/downloads","issues_url":"https://api.github.com/repos/atais/logback/issues{/number}","pulls_url":"https://api.github.com/repos/atais/logback/pulls{/number}","milestones_url":"https://api.github.com/repos/atais/logback/milestones{/number}","notifications_url":"https://api.github.com/repos/atais/logback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atais/logback/labels{/name}","releases_url":"https://api.github.com/repos/atais/logback/releases{/id}","created_at":"2015-10-14T12:49:55Z","updated_at":"2015-10-14T12:50:01Z","pushed_at":"2015-10-14T14:08:57Z","git_url":"git://github.com/atais/logback.git","ssh_url":"git@github.com:atais/logback.git","clone_url":"https://github.com/atais/logback.git","svn_url":"https://github.com/atais/logback","homepage":"http://logback.qos.ch","size":38886,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qos-ch:master","ref":"master","sha":"993b3ccd176b85f217473b897670d78090d4c7dc","user":{"login":"qos-ch","id":1521407,"avatar_url":"https://avatars.githubusercontent.com/u/1521407?v=3","gravatar_id":"","url":"https://api.github.com/users/qos-ch","html_url":"https://github.com/qos-ch","followers_url":"https://api.github.com/users/qos-ch/followers","following_url":"https://api.github.com/users/qos-ch/following{/other_user}","gists_url":"https://api.github.com/users/qos-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/qos-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qos-ch/subscriptions","organizations_url":"https://api.github.com/users/qos-ch/orgs","repos_url":"https://api.github.com/users/qos-ch/repos","events_url":"https://api.github.com/users/qos-ch/events{/privacy}","received_events_url":"https://api.github.com/users/qos-ch/received_events","type":"Organization","site_admin":false},"repo":{"id":283325,"name":"logback","full_name":"qos-ch/logback","owner":{"login":"qos-ch","id":1521407,"avatar_url":"https://avatars.githubusercontent.com/u/1521407?v=3","gravatar_id":"","url":"https://api.github.com/users/qos-ch","html_url":"https://github.com/qos-ch","followers_url":"https://api.github.com/users/qos-ch/followers","following_url":"https://api.github.com/users/qos-ch/following{/other_user}","gists_url":"https://api.github.com/users/qos-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/qos-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qos-ch/subscriptions","organizations_url":"https://api.github.com/users/qos-ch/orgs","repos_url":"https://api.github.com/users/qos-ch/repos","events_url":"https://api.github.com/users/qos-ch/events{/privacy}","received_events_url":"https://api.github.com/users/qos-ch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qos-ch/logback","description":"The reliable, generic, fast and flexible logging framework for Java.","fork":false,"url":"https://api.github.com/repos/qos-ch/logback","forks_url":"https://api.github.com/repos/qos-ch/logback/forks","keys_url":"https://api.github.com/repos/qos-ch/logback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qos-ch/logback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qos-ch/logback/teams","hooks_url":"https://api.github.com/repos/qos-ch/logback/hooks","issue_events_url":"https://api.github.com/repos/qos-ch/logback/issues/events{/number}","events_url":"https://api.github.com/repos/qos-ch/logback/events","assignees_url":"https://api.github.com/repos/qos-ch/logback/assignees{/user}","branches_url":"https://api.github.com/repos/qos-ch/logback/branches{/branch}","tags_url":"https://api.github.com/repos/qos-ch/logback/tags","blobs_url":"https://api.github.com/repos/qos-ch/logback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qos-ch/logback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qos-ch/logback/git/refs{/sha}","trees_url":"https://api.github.com/repos/qos-ch/logback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qos-ch/logback/statuses/{sha}","languages_url":"https://api.github.com/repos/qos-ch/logback/languages","stargazers_url":"https://api.github.com/repos/qos-ch/logback/stargazers","contributors_url":"https://api.github.com/repos/qos-ch/logback/contributors","subscribers_url":"https://api.github.com/repos/qos-ch/logback/subscribers","subscription_url":"https://api.github.com/repos/qos-ch/logback/subscription","commits_url":"https://api.github.com/repos/qos-ch/logback/commits{/sha}","git_commits_url":"https://api.github.com/repos/qos-ch/logback/git/commits{/sha}","comments_url":"https://api.github.com/repos/qos-ch/logback/comments{/number}","issue_comment_url":"https://api.github.com/repos/qos-ch/logback/issues/comments{/number}","contents_url":"https://api.github.com/repos/qos-ch/logback/contents/{+path}","compare_url":"https://api.github.com/repos/qos-ch/logback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qos-ch/logback/merges","archive_url":"https://api.github.com/repos/qos-ch/logback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qos-ch/logback/downloads","issues_url":"https://api.github.com/repos/qos-ch/logback/issues{/number}","pulls_url":"https://api.github.com/repos/qos-ch/logback/pulls{/number}","milestones_url":"https://api.github.com/repos/qos-ch/logback/milestones{/number}","notifications_url":"https://api.github.com/repos/qos-ch/logback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qos-ch/logback/labels{/name}","releases_url":"https://api.github.com/repos/qos-ch/logback/releases{/id}","created_at":"2009-08-20T18:48:24Z","updated_at":"2015-10-13T18:42:36Z","pushed_at":"2015-10-08T03:06:42Z","git_url":"git://github.com/qos-ch/logback.git","ssh_url":"git@github.com:qos-ch/logback.git","clone_url":"https://github.com/qos-ch/logback.git","svn_url":"https://github.com/qos-ch/logback","homepage":"http://logback.qos.ch","size":38886,"stargazers_count":542,"watchers_count":542,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":388,"mirror_url":null,"open_issues_count":41,"forks":388,"open_issues":41,"watchers":542,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qos-ch/logback/pulls/277"},"html":{"href":"https://github.com/qos-ch/logback/pull/277"},"issue":{"href":"https://api.github.com/repos/qos-ch/logback/issues/277"},"comments":{"href":"https://api.github.com/repos/qos-ch/logback/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/qos-ch/logback/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/qos-ch/logback/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qos-ch/logback/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/qos-ch/logback/statuses/d57600dcaefd73a163d0a1923b40056ffa3b0f42"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":0,"changed_files":2}}