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

JAX-RS client shoud support redirect

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.7.Final
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: jaxrs
    • Labels:
      None

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                asoldano Alessio Soldano
                Reporter:
                stevenschlansker Steven Schlansker
              • Votes:
                5 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: