LiTiang / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

HEAD request to proxy causes 500 error #226

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure proxy
2. do request with method HEAD

What is the expected output? What do you see instead?
Proper HEADER response...

What version of the product are you using? On what operating system?
==================================================================
ERROR from Chrome console:
==================================================================
HEAD http://localhost:9876/scenario/widgets.html 500 (Guice provision errors:  
1) Error in custom provider, java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException   at 
com.google.jstestdriver.requesthandlers.RequestHandlersModule.provideRequestMeth
od(RequestHandlersModule.java:96)   while locating 
com.google.jstestdriver.requesthandlers.HttpMethod     for parameter 0 at 
com.google.jstestdriver.requesthandlers.UnsupportedMethodErrorSender.<init>(Unsu
pportedMethodErrorSender.java:32)   while locating 
com.google.jstestdriver.requesthandlers.UnsupportedMethodErrorSender     for 
parameter 5 at 
com.google.jstestdriver.requesthandlers.RequestDispatcher.<init>(RequestDispatch
er.java:41)   while locating 
com.google.jstestdriver.requesthandlers.RequestDispatcher  1 error)
==================================================================

I got the same response when using curl. Proxy works fine with GET method.

Original issue reported on code.google.com by vojta.jina on 15 Apr 2011 at 10:55

GoogleCodeExporter commented 9 years ago

Original comment by corbinrs...@gmail.com on 15 Apr 2011 at 11:01

GoogleCodeExporter commented 9 years ago
After discussion with Cory - this is Jetty issue.
Unfortunately, JSTD runs on dead version of Jetty (6.1, current is 7.4)

Original comment by vojta.jina on 21 Apr 2011 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by robertsd...@gmail.com on 28 Apr 2011 at 6:48