eclipse-ee4j / eclipse-ee4j/jersey

Priority on ContainerRequest and Response filters is not taken into account when objects are retrieved from CDI container

Open
#3,587 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

The problem is in the implementation of RankedProvider: https://github.com/jersey/jersey/blob/ac34707df4ca97028ce6abfc2eeb4a39eae77b81/core-common/src/main/java/org/glassfish/jersey/model/internal/RankedProvider.java#L103

when returned provider object is a Proxy (which is true in Weld case), isAnnotationPresent(Priority.class) returns false and the priority used for comparison defaults to Priorities.USER.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.