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

JAX-RS client shoud support redirect

    XMLWordPrintable

Details

    Description

      The RESTeasy implementation of the JAX-RS client library does not seem to support any handling of redirects, despite the underlying ability of Apache HttpClient to do so.

      At the very least there are these problems:

      1) There is no way to indicate that a proxy class generated via ResteasyWebTarget.proxy should follow redirects.

      2) ClientInvoker has some relevant methods but you cannot call the setter "followRedirects" particularly from a proxy and even if you could the getter seems to be totally unreferenced

      3) ApacheHttpClient4Engine explicitly forbids it with a TODO

            if (httpMethod instanceof HttpGet && false) // todo  && request.followRedirects())
            {
               HttpClientParams.setRedirecting(httpMethod.getParams(), true);
            }
            else
            {
               HttpClientParams.setRedirecting(httpMethod.getParams(), false);
            }
      

      There are multiple threads to the mailing list about this functionality and none of them seem to have any response but silence.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              stevenschlansker Steven Schlansker (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: