{"action":"created","issue":{"url":"https://api.github.com/repos/betamaxteam/betamax/issues/188","repository_url":"https://api.github.com/repos/betamaxteam/betamax","labels_url":"https://api.github.com/repos/betamaxteam/betamax/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/betamaxteam/betamax/issues/188/comments","events_url":"https://api.github.com/repos/betamaxteam/betamax/issues/188/events","html_url":"https://github.com/betamaxteam/betamax/issues/188","id":140924993,"number":188,"title":"`TapeMode.READ_ONLY` seems to have no effect","user":{"login":"pledbrook","id":19075,"avatar_url":"https://avatars.githubusercontent.com/u/19075?v=3","gravatar_id":"","url":"https://api.github.com/users/pledbrook","html_url":"https://github.com/pledbrook","followers_url":"https://api.github.com/users/pledbrook/followers","following_url":"https://api.github.com/users/pledbrook/following{/other_user}","gists_url":"https://api.github.com/users/pledbrook/gists{/gist_id}","starred_url":"https://api.github.com/users/pledbrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pledbrook/subscriptions","organizations_url":"https://api.github.com/users/pledbrook/orgs","repos_url":"https://api.github.com/users/pledbrook/repos","events_url":"https://api.github.com/users/pledbrook/events{/privacy}","received_events_url":"https://api.github.com/users/pledbrook/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/betamaxteam/betamax/labels/defect","name":"defect","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-03-15T09:54:51Z","updated_at":"2016-09-24T13:57:05Z","closed_at":null,"body":"When I change the tape mode to READ_ONLY, unknown requests still go through to the target server. The problem seems to be in [`BetamaxFilters`](https://github.com/betamaxteam/betamax/blob/master/betamax-core/src/main/java/software/betamax/proxy/BetamaxFilters.java#L139), which only returns a 403 if there is no tape specified for the test. I'd argue that `onRequestIntercepted()` needs to check whether the tape is writable before forwarding the request.\r\n\r\nOn a side note, there is a test for read-only behaviour, but it's currently skipped due to an `@Ignore` annotation :open_mouth: "},"comment":{"url":"https://api.github.com/repos/betamaxteam/betamax/issues/comments/249366207","html_url":"https://github.com/betamaxteam/betamax/issues/188#issuecomment-249366207","issue_url":"https://api.github.com/repos/betamaxteam/betamax/issues/188","id":249366207,"user":{"login":"cowboygneox","id":1126866,"avatar_url":"https://avatars.githubusercontent.com/u/1126866?v=3","gravatar_id":"","url":"https://api.github.com/users/cowboygneox","html_url":"https://github.com/cowboygneox","followers_url":"https://api.github.com/users/cowboygneox/followers","following_url":"https://api.github.com/users/cowboygneox/following{/other_user}","gists_url":"https://api.github.com/users/cowboygneox/gists{/gist_id}","starred_url":"https://api.github.com/users/cowboygneox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowboygneox/subscriptions","organizations_url":"https://api.github.com/users/cowboygneox/orgs","repos_url":"https://api.github.com/users/cowboygneox/repos","events_url":"https://api.github.com/users/cowboygneox/events{/privacy}","received_events_url":"https://api.github.com/users/cowboygneox/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T13:57:05Z","updated_at":"2016-09-24T13:57:05Z","body":"@thomashunziker I've been struggling to find time for this project lately. However, I know that there are currently functional options for making Betamax run without access to a remote API. Could you make a separate issue?"}}
{"actor":{"display_login":"cowboygneox"}}