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

Instances built from org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget must inherit of a detached snaphot of the parent configuration (PART2)

    XMLWordPrintable

Details

    Description

      According to jax-RS specification all methods of any javax.ws.rs.client.WebTarget implementation that returns a new WebTarget instance (such as path(),queryParam(),resolveTemplates()...) must ensure that :

      A snapshot of the present configuration of the current (parent) target instance is taken and is inherited by the newly constructed (child) target instance.
      ...
      Therefore, once a configuration is inherited it is also detached (deep copied)
      from its parent configuration and changes to the parent and child configurations are not be visible to each other.
      

      Thanks to what have been done in https://issues.jboss.org/browse/RESTEASY-1345, child configuration is partially detached from its parent in a way that invocations of getClasses(), getInstances(), getContracts(...), getProperties() and getProperty(...) on the child does not reflect parent configurations changes and vice versa.

      However those configurations are not yet fully detached from each other since providers registered on parent configuration after child configuration creation are taken into account and used by child request/response processing mechanism (see unit tests added to the PR).

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              nicones Nicolas NESMON (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: