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

ApacheHttpClient4Engine ignores HttpClient#defaultRequestConfig

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.Final, 3.0.20.Final
    • 3.0.14.Final
    • jaxrs
    • None

      As described here the RequestConfig class is used to control certain behaviour in HttpClient 4.5 such as cookie policy.

      ApacheHttpClient4Engine completely ignores this and always uses the default cookie policy which leads to unnecessary log warnings. This issue has been described before in RESTEASY-975 and could be fixed by changing #createHttpMethod to copy the default config from the HttpClient. Currently there is no way to set this, and then InternalHttpClient#doExecute creates a RequestConfig based on the request HttpParams which also cannot be modified.

            rsearls r searls
            jfreedman_jira Jon Freedman (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: