-
Bug
-
Resolution: Done
-
Major
-
3.0.17.Final
-
None
-
None
Follow up of https://issues.jboss.org/browse/RESTEASY-1300
I have a method that produces
@Produces(MediaType.TEXT_PLAIN)
A request comes in with Accept header
Accept: text/plain, text/*, */*
This is parsed as three acceptMedia, so this loop is executed three times. Because of that the match is added three times, and because of that the warning triggers, filling up our logs.
Idea for a fix: Check the unique number of destinations, before printing the warning. In my code, the three matches (based on media type) all point to the same method in the same resource. The warning should only be printed if we have to choose between multiple methods I think.
- causes
-
JBEAP-3459 Log warning message if two end-points are conflicting on the same path
- Verified
- relates to
-
RESTEASY-1369 When logging warning for RESTEASY 002142: Multiple resource methods match request. Selecting one. give more details which classes / functions matches.
- Closed