{"action":"closed","issue":{"url":"https://api.github.com/repos/katharsis-project/katharsis-rs/issues/15","labels_url":"https://api.github.com/repos/katharsis-project/katharsis-rs/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/katharsis-project/katharsis-rs/issues/15/comments","events_url":"https://api.github.com/repos/katharsis-project/katharsis-rs/issues/15/events","html_url":"https://github.com/katharsis-project/katharsis-rs/issues/15","id":111649402,"number":15,"title":"KatharsisFilter should not mask WebApplicationException","user":{"login":"broglep-koubachi","id":1199504,"avatar_url":"https://avatars.githubusercontent.com/u/1199504?v=3","gravatar_id":"","url":"https://api.github.com/users/broglep-koubachi","html_url":"https://github.com/broglep-koubachi","followers_url":"https://api.github.com/users/broglep-koubachi/followers","following_url":"https://api.github.com/users/broglep-koubachi/following{/other_user}","gists_url":"https://api.github.com/users/broglep-koubachi/gists{/gist_id}","starred_url":"https://api.github.com/users/broglep-koubachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broglep-koubachi/subscriptions","organizations_url":"https://api.github.com/users/broglep-koubachi/orgs","repos_url":"https://api.github.com/users/broglep-koubachi/repos","events_url":"https://api.github.com/users/broglep-koubachi/events{/privacy}","received_events_url":"https://api.github.com/users/broglep-koubachi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/katharsis-project/katharsis-rs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"meshuga","id":1073936,"avatar_url":"https://avatars.githubusercontent.com/u/1073936?v=3","gravatar_id":"","url":"https://api.github.com/users/meshuga","html_url":"https://github.com/meshuga","followers_url":"https://api.github.com/users/meshuga/followers","following_url":"https://api.github.com/users/meshuga/following{/other_user}","gists_url":"https://api.github.com/users/meshuga/gists{/gist_id}","starred_url":"https://api.github.com/users/meshuga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshuga/subscriptions","organizations_url":"https://api.github.com/users/meshuga/orgs","repos_url":"https://api.github.com/users/meshuga/repos","events_url":"https://api.github.com/users/meshuga/events{/privacy}","received_events_url":"https://api.github.com/users/meshuga/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-15T15:59:39Z","updated_at":"2015-10-15T17:23:46Z","closed_at":"2015-10-15T17:23:46Z","body":"We have authorization code that throws e.g. ```ForbiddenException``` inside the Katharsis repository.\r\nThe code at https://github.com/katharsis-project/katharsis-rs/blob/development/src/main/java/io/katharsis/rs/KatharsisFilter.java#L74-L79 transforms this into a 500 internal server error.\r\n\r\nSuggested solution:\r\n```\r\n    try {\r\n        dispatchRequest(requestContext);\r\n    } catch (Exception e) {\r\n         if (e instanceof WebApplicationException) {\r\n            throw e;\r\n         } else{\r\n            throw new WebApplicationException(e);\r\n         }\r\n    }\r\n```"}}