jersey
  1. jersey
  2. JERSEY-2067

Client filter instances are not injected

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
      None

      Description

      When filter is registered as a instance into the client, the fileds of this instance are not injected.
      Example:

      public class MyFilter implements ClientRequestFilter {
      	@Inject
      	private Configuration config;
             
             ......
      }
      

      Register the filter on the client:
      client.register(new MyFilter()).target()...

      this cause that config field of MyFilter will never be injected.

        Issue Links

          Activity

          Hide
          Stefan Katerkamp added a comment -

          Please remove null check for config field in HttpDigestAuthFilter once this issue has been fixed.

          See https://github.com/skaterkamp/jersey/blob/master/core-client/src/main/java/org/glassfish/jersey/client/filter/HttpDigestAuthFilter.java

          Show
          Stefan Katerkamp added a comment - Please remove null check for config field in HttpDigestAuthFilter once this issue has been fixed. See https://github.com/skaterkamp/jersey/blob/master/core-client/src/main/java/org/glassfish/jersey/client/filter/HttpDigestAuthFilter.java

            People

            • Assignee:
              Miroslav Fuksa
              Reporter:
              Miroslav Fuksa
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Time Spent - 2 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 2 hours Remaining Estimate - 1 hour
                2h