Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
What is the current status of expect/continue patch?
I have encountered the following problem (related to this) and I have a =
patch as well (no diff, but just 3 lines), that at least works in my =
The Scenario is:
I am performing a Web Services call (from a .Net client) to Axis running =
Jetty, using BASIC AUTH over HTTPS.
1) On the initial request, .Net does NOT send the WWW-Authentication =
header, but does send an Expect: 100 -Continue.
2) Jetty reads the headers (but NOT the body), and determines that we =
are not authenticated to make the request. Jetty returns a 401 =
3) The .Net client then sends the same request again as before, but this =
time with the appropriate WWW-Authentication tag.
4) Jetty begins reading the next request. Since it never cleared the =
input stream from the first request, it reads that instead, which is =
garbage. Jetty interprets that garbage as the request "method" ie. POST, =
or GET, but in this case it's garbage) and returns a 405 Method not =
I solved this issue by inserting the following 3 lines of code into =
HttpConnection.java, at line 627 (method commit() ):
// Check if there is missing content expectations
// No input read yet - so assume it never will be =
//BEGIN PATCH NEW ADDITION JAMES SCHOPP
for (int i=3D_inputStream.getContentLength(); =
//END PATCH NEW ADDITION JAMES SCHOPP
So, the idea here is, just eat up the extra bytes on the input stream =
before leaving so that we are correctly positioned for the next request. =
NOTE that "skip" did not work here, so I had to read single bytes in a =
loop. I'm sure with more investigation it could work, but I had enough =
just figuring out what this error was.