Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18317

Prevent the resending of a request by sun.net.www.http.HttpClient

    XMLWordPrintable

    Details

    • Upgrade notes:
      Hide

      Added "-Dsun.net.http.retryPost=false" to the JVM options to prevent the JDK's HTTP client from automatically resending to the server an unsuccessful HTTP POST request

      Show
      Added "-Dsun.net.http.retryPost=false" to the JVM options to prevent the JDK's HTTP client from automatically resending to the server an unsuccessful HTTP POST request
    • Sprint:
      drive-8.1-1, drive-8.1-3, nxfit 9.3.1
    • Story Points:
      3

      Description

      As seen with NXP-18257, the sun.net.http.retryPost system property is set to true by default, see http://itdoc.hitachi.co.jp/manuals/3020/30203Y2310e/EY230208.HTM.

      We want to disable this behaviour because it hides errors in the HTTP communication.
      We should do this:

      • In the test framework: typically, the tests using BaseTest#getResponse are relying on the HTTP client implementation of JDK.
      • At runtime for the case where Nuxeo would be client of another service.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 2 hours
                  2d 2h