-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix annotation check for controller methods in RESTEasy
While fixing #334 (PR #335) we introduced a small bug during the check if a method needs to be processed by the general validator or not. Because of this bug, the implementation checked only if a method is annotated with @controller, but not if this is the case for the whole class. The result was Krazo not handling invalid input correctly. This fix adds the ability to check if the method OR the declaring class is annotated with @controller, so we ensure we really have something that needs to be handled by MVC. This fix needs to be backported to Krazo 3.0.x. fixes: #342
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters