Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Portlet annotation handler mapping does is not working properly because of a flaw in predicate comparison [SPR-9303] #13941
I can have handler class as follows:
If I make request with parameter
Registering the example handler above (in
Now what happens in
Comparison In Detail
The code in
The problem this issue is about is:
Where Is The Issue?
The issue in comparison implementation is simple - parameter length should be compared first, regardles of the predicate type (you can see that the current implementation compares parameter length only in case predicates are of the same type).
Affects: 3.1.1, 3.1.2
Pavel Horal commented
While writing the test case I find out, that this issue exists only when using two handlers/controllers without (or the same) TypeLevelPredicate. Having such configuration is AFAIK not prohibited, but it is definitely not common practice. Based on this fact the priority of this issue is not CRITICAL, but probably MINOR as it is now.