-
Bug
-
Resolution: Done
-
Major
-
3.15.3.Final, 4.7.5.Final, 6.0.0.Final
-
None
-
None
When the @Cache annotation is set on an interface, in as sub-resource, the annotation is not detected by the CacheControlFeature, and as a consequence, no cache-control header is set on the GET request.
This issue stems from the change in the behavior of ResourceInfo, brought by https://issues.redhat.com/browse/RESTEASY-2391
Indeed, the CacheControlFeature was relying on the resourceInfo.getMethod() to hold the annotation, which is no more the case, because this now returns the implementation method, which is not necessarily the annotated one.
This issue not only affects CacheControlFeature but also any dynamic feature which relied on the previous behavior of resourceInfo.
- is caused by
-
RESTEASY-2391 ResourceInfo provides super-class method instead of sub-class method in inherited JAX-RS controller
- Resolved
- is incorporated by
-
QUARKUS-3926 Upgrade RESTEasy to 6.2.7.Final
- Verified
-
WFLY-18916 Upgrade RESTEasy from 6.2.6.Final to 6.2.7.Final
- Closed