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

com/sun/net/httpserver/MissingTrailingSpace.java failed with java.lang.RuntimeException: respond to unknown code 207 doesn't return space at the end of the first header.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:

      Description

      ----------System.out:(4/242)----------
      Server started at port 53419
      Client connected by socket: Socket[addr=localhost/127.0.0.1,port=53419,localport=53422]
      Client wrote rquest to socket: Socket[addr=localhost/127.0.0.1,port=53419,localport=53422]
      Client start reading from server:
      ----------System.err:(14/962)----------
      java.lang.RuntimeException: respond to unknown code 207 doesn't return space at the end of the first header.
      Should be: "HTTP/1.1 404 Not Found ", but returns: "HTTP/1.1 404 Not Found".
      at MissingTrailingSpace.runRawSocketHttpClient(MissingTrailingSpace.java:109)
      at MissingTrailingSpace.main(MissingTrailingSpace.java:71)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: respond to unknown code 207 doesn't return space at the end of the first header. Should be: "HTTP/1.1 404 Not Found ", but returns: "HTTP/1.1 404 Not Found".


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: respond to unknown code 207 doesn't return space at the end of the first header. Should be: "HTTP/1.1 404 Not Found ", but returns: "HTTP/1.1 404 Not Found".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              fyuan Frank Yuan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: