Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-573

@Context not injected at runtime

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.2.2.GA
    • 2.3.1
    • None
    • None
    • Hide

      1. invoke URI with query parameters
      2. invoke URI without query parameters
      3. uriInfo not changed as we using UriInfo intercepted by @Context,
      and @Context annotated methods invoked only once during app. lifetime

      @Context
      public void setUriInfo(UriInfo uriInfo)

      { this.uriInfo = uriInfo; }
      Show
      1. invoke URI with query parameters 2. invoke URI without query parameters 3. uriInfo not changed as we using UriInfo intercepted by @Context, and @Context annotated methods invoked only once during app. lifetime @Context public void setUriInfo(UriInfo uriInfo) { this.uriInfo = uriInfo; }
    • Compatibility/Configuration

    Description

      Hi,

      i noticed that since 2.2GA QueryParameters at UriInfoImpl not get cleaned,
      so at next hit they will appear at UriInfo.

      e.g: when i'm filtering collection using: href=".../rhevm-api/vms?search=

      {query}

      "

      like: rhevm-api/vms?search=name%3Dfoo

      URI parameters collected by uriInfo.getQueryParameters() [1],
      next time when i want to list collection without any filtering as href=".../rhevm-api/vms",
      uriInfo.getQueryParameters() returns same 'search=name%3Dfoo' from previous execution

      [1] org.jboss.resteasy.specimpl.UriInfoImpl implements javax.ws.rs.core.UriInfo

      Attachments

        Issue Links

          Activity

            People

              patriot1burke@gmail.com Bill Burke (Inactive)
              mpastern Michael Pasternak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: