Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1576

Add the possibility to desactivate http client redirection in HTTP Configurer

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 1.1.15
    • None
    • None
    • All
    • GreenHopper Ranking:
      0|i1lsa3:
    • 9223372036854775807
    • Small

    Description

      The rest connector has to define it's own redirection behavior.
      Currently, the default http client implementation is based on the jvm HttpURLConnection which follow redirection by default.

      To test my own implementation of reidrection I set : HttpURLConnection.setFollowRedirects(false); in unit test.

      But in real runtime, redirections are followed. It should be good to be able in the Connection interface of TCK to have a method setFollowRedirect:
      https://github.com/Talend/component-runtime/blob/master/component-api/src/main/java/org/talend/sdk/component/api/service/http/Configurer.java#L35

      with the default http client, it will call https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html#setInstanceFollowRedirects(boolean)

      Attachments

        Activity

          People

            rmannibucau Romain Manni-Bucau
            ypiel Yves Piel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: