Hi

On Wed, Apr 27, 2011 at 1:32 PM, Shashank Rachamalla
<[email protected]> wrote:
> sure. will look into it. however, i got the same code running in a different
> environment. i am not sure if this has to do with the differences in the
> versions of dependencies.

Do you have it working with a non-CXF server ?
A similar issue was reported recently and I also could not reproduce
it, as far as I recall Struts was involved.
Please try to make sure Content-Length matches the length of the
payload, and if it still does not work, then send me a war (but
without libs contained in the CXF distro) and I'll try it on Tomcat

Cheers, Sergey

>
> On Wed, Apr 27, 2011 at 5:00 PM, Sergey Beryozkin <[email protected]>wrote:
>
>> Here is what I'm seeing in my test:
>>
>> POST /bookstore/books/fileform2 HTTP/1.1
>> Content-Type: multipart/form-data;
>> boundary=---------------------------1774014288799809133756375422
>> User-Agent: Jakarta Commons-HttpClient/3.1
>> Host: localhost:8081
>> Content-Length: 331
>>
>> -----------------------------1774014288799809133756375422
>> Content-Disposition: form-data; name="title"
>>
>> test
>> -----------------------------1774014288799809133756375422
>> Content-Disposition: form-data; name="file"; filename="test.txt"
>> Content-Type: text/plain
>>
>> file content
>>
>> -----------------------------1774014288799809133756375422--
>>
>> Response (number of parts, as in your test code):
>>
>> HTTP/1.1 200 OK
>> Content-Type: text/plain
>> Date: Wed, 27 Apr 2011 11:15:54 GMT
>> Content-Length: 1
>> Server: Jetty(7.3.1.v20110307)
>>
>> 2
>>
>>
>> There is only difference, Content-Length in my test is '331', in your
>> case it is 342.
>> The question is, where is the difference coming from ? If you save the
>> part of the log starting from the first part,
>>
>> "-----------------------------1774014288799809133756375422",
>> immediately after Content-Length and the empty line,
>> and ending with the final closing boundary,
>> "-----------------------------1774014288799809133756375422--", to a
>> file, then you can see its length is 331.
>>
>> Can you look into it ?
>>
>> Cheers, Sergey
>>

Reply via email to