Discussion:
[jetty-users] "Badly formatted multipart request"
Nils Kilden-Pedersen
2014-05-03 06:16:35 UTC
Permalink
Not sure if this is a Jetty problem or Chrome.

I’m trying to upload data using the HTML5 FormData object.

The content type when it reaches the server is

multipart/form-data; boundary=----WebKitFormBoundaryj2AVe6APfo5cJd0R

which causes Jetty to first warn:

WARN org.eclipse.jetty.util.MultiPartInputStreamParser - Badly
formatted multipart request

and then throw this exception:

java.io.IOException: Missing initial multi part boundary
at org.eclipse.jetty.util.MultiPartInputStreamParser.parse(MultiPartInputStreamParser.java:515)
at org.eclipse.jetty.util.MultiPartInputStreamParser.getParts(MultiPartInputStreamParser.java:408)
at org.eclipse.jetty.server.Request.getParts(Request.java:2121)

Any idea?
Jan Bartel
2014-05-03 12:34:19 UTC
Permalink
Which version of jetty and can you post the capture of the whole request?

Jan
Post by Nils Kilden-Pedersen
Not sure if this is a Jetty problem or Chrome.
I’m trying to upload data using the HTML5 FormData object.
The content type when it reaches the server is
multipart/form-data; boundary=----WebKitFormBoundaryj2AVe6APfo5cJd0R
WARN org.eclipse.jetty.util.MultiPartInputStreamParser - Badly formatted
multipart request
java.io.IOException: Missing initial multi part boundary
at
org.eclipse.jetty.util.MultiPartInputStreamParser.parse(MultiPartInputStreamParser.java:515)
at
org.eclipse.jetty.util.MultiPartInputStreamParser.getParts(MultiPartInputStreamParser.java:408)
at org.eclipse.jetty.server.Request.getParts(Request.java:2121)
Any idea?
_______________________________________________
jetty-users mailing list
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Jan Bartel <***@intalio.com>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
Joakim Erdfelt
2014-05-03 16:51:27 UTC
Permalink
Which version of Chrome?

--
Joakim Erdfelt <***@intalio.com>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org
Post by Nils Kilden-Pedersen
Not sure if this is a Jetty problem or Chrome.
I’m trying to upload data using the HTML5 FormData object.
The content type when it reaches the server is
multipart/form-data; boundary=----WebKitFormBoundaryj2AVe6APfo5cJd0R
WARN org.eclipse.jetty.util.MultiPartInputStreamParser - Badly formatted multipart request
java.io.IOException: Missing initial multi part boundary
at org.eclipse.jetty.util.MultiPartInputStreamParser.parse(MultiPartInputStreamParser.java:515)
at org.eclipse.jetty.util.MultiPartInputStreamParser.getParts(MultiPartInputStreamParser.java:408)
at org.eclipse.jetty.server.Request.getParts(Request.java:2121)
Any idea?
_______________________________________________
jetty-users mailing list
https://dev.eclipse.org/mailman/listinfo/jetty-users
Nils Kilden-Pedersen
2014-05-03 21:22:11 UTC
Permalink
Nevermind, this was caused by a fault in HTML form.
Post by Joakim Erdfelt
Which version of Chrome?
--
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org
Post by Nils Kilden-Pedersen
Not sure if this is a Jetty problem or Chrome.
I’m trying to upload data using the HTML5 FormData object.
The content type when it reaches the server is
multipart/form-data; boundary=----WebKitFormBoundaryj2AVe6APfo5cJd0R
WARN org.eclipse.jetty.util.MultiPartInputStreamParser - Badly formatted multipart request
java.io.IOException: Missing initial multi part boundary
at org.eclipse.jetty.util.MultiPartInputStreamParser.parse(MultiPartInputStreamParser.java:515)
at org.eclipse.jetty.util.MultiPartInputStreamParser.getParts(MultiPartInputStreamParser.java:408)
at org.eclipse.jetty.server.Request.getParts(Request.java:2121)
Any idea?
_______________________________________________
jetty-users mailing list
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
https://dev.eclipse.org/mailman/listinfo/jetty-users
Loading...