Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293574

HttpClient mishandles HTTP 1xx status codes as final response messages

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      A DESCRIPTION OF THE PROBLEM :
      See <https://github.com/greenbytes/java-http-1xx-tests>.

      HttpClient treats HTTP 1xx response messages as final, instead of waiting for a message with status code >= 200.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      git clone git@github.com:greenbytes/java-http-1xx-tests.git
      mvn clean install -Dtest=JavaNetHttpHttpClientTests


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Tests should pass.
      ACTUAL -
      Tests fail with the informational response handled as final (FWIW, HTTPURLConnection has the same bug, reported in 2016: https://bugs.openjdk.org/browse/JDK-8170305)

      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: