Malformed multipart POST -

Upload core product.
Post Reply
crowder
Posts: 10
Joined: Tue Mar 15, 2011 8:58 pm

Malformed multipart POST -

Post by crowder »

I have one user who get an occasional Malformed multipart Post error. I am only seeing the particular error from his IP address. After Jfileupload uploads the file, it calls the post processing script , this error show up.

[Wed May 16 12:09:23 2012] [error] [client xxx.xxx.xxx.xx] [Wed May 16 12:09:23 2012] n_prdata_save_file.cgi: Malformed multipart POST
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(142): mod_dumpio: dumpio_out
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (data-HEAP): 139 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(74): mod_dumpio: dumpio_out (data-HEAP): HTTP/1.1 200 OK\r\nDate: Wed, 16 May 2012 16:09:18 GMT\r\nServer: Apache/2.2.21 (Unix)\r\nTransfer-Encoding: chunked\r\nContent-Type: text/html\r\n\r\n
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(142): mod_dumpio: dumpio_out
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (data-TRANSIENT): 4 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(74): mod_dumpio: dumpio_out (data-TRANSIENT): fb\r\n
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (data-HEAP): 251 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(74): mod_dumpio: dumpio_out (data-HEAP): <h1>Software error:</h1>\n<pre>Malformed multipart POST\n</pre>\n<p>\nFor help, please send mail to the webmaster (<a href="mailto:xxxxx.xxxxx@xxxxxx.com">xxxxx.xxxxx@xxxxxxx.com</a>), giving this error message \nand the time and date of the error.\n\n</p>\n
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (data-IMMORTAL): 2 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(74): mod_dumpio: dumpio_out (data-IMMORTAL): \r\n
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (metadata-FLUSH): 0 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(142): mod_dumpio: dumpio_out
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (data-IMMORTAL): 0 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (data-IMMORTAL): 5 bytes
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(74): mod_dumpio: dumpio_out (data-IMMORTAL): 0\r\n\r\n
[Wed May 16 12:09:23 2012] [debug] mod_dumpio.c(55): mod_dumpio: dumpio_out (metadata-EOS): 0 bytes
[Wed May 16 12:09:23 2012] [error] [client xxx.xxx.xxx.xx] Invalid method in request Fu_Y1yvCbgjk37M9wo7AKu7--

Does anyone have a clue as to what the problem may be???

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Malformed multipart POST -

Post by support »

How do you parse the multipart POST request? Which server-side technology are you using?

crowder
Posts: 10
Joined: Tue Mar 15, 2011 8:58 pm

Re: Malformed multipart POST -

Post by crowder »

Hi, we are using Apache 2.2.21 if that is what you were inquiring about.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Malformed multipart POST -

Post by support »

I'm not sure we can help, we never had this issue. We have Apache too here. We've many users with PHP, ASP.NET, ColdFusion, JSP and they never report about this. issue.

crowder
Posts: 10
Joined: Tue Mar 15, 2011 8:58 pm

Re: Malformed multipart POST -

Post by crowder »

My user has been encountering this problem for a while:

I hit this problem again just now, and the Java Console may have some useful info – I tried uploading the NX syslog to PR 6817216 and although the tool reported the upload completed:

Uploading : bowden1e6c098a.syslog
(310,395 bytes)
Upload started ...Upload completed
----------------------------------------------------------------------------------------------
Uploading : NX85_user_VM_Master.dpv
(1,927 bytes)
Upload started ...Upload completed
----------------------------------------------------------------------------------------------

After the user has upload the data, the bowden1e6c098a.syslog file has not been processed on the server.

The java console output below, shows a warning. The cgi script that is supposed to be executed after the upload never gets triggered. This seems to only happen to this one user. Any ideas?




and the java console shows:

Java Plug-in 10.7.2.10
Using JRE version 1.7.0_07-b10 Java HotSpot(TM) Client VM
User home directory = C:\Users\bowden
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
[INFO] MApplet - JFileUpload 2.8 Build FINAL.001
[INFO] HTTPTransfer - Auto-detect proxy settings (ps): DIRECT
[INFO] HTTPTransfer - Auto-detect proxy settings : host = null
[INFO] HTTPTransfer - Auto-detect proxy settings : port = -1
[INFO] HTTPTransfer - Head Status code = 200
[INFO] HTTPUploadTransfer - Upload (POST) started : C:\Temp\bowden1e6c098a.syslog
[INFO] HTTPUploadTransfer - Upload Status code = 200
[WARN] HttpMethodBase - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
[INFO] HTTPUploadTransfer - Upload completed
[INFO] MApplet - Posting
[INFO] HTTPTransfer - Head Status code = 200
[INFO] HTTPUploadTransfer - Upload (POST) started : C:\workdir\NX_Projects\NX851.3\NX85_user_VM_Master.dpv
[INFO] HTTPUploadTransfer - Upload Status code = 200
[INFO] HTTPUploadTransfer - Upload completed
[INFO] MApplet - Posting

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Malformed multipart POST -

Post by support »

This warning is not related to multipart POST issue you report. What server side script are you using? PHP or JSP or?

crowder
Posts: 10
Joined: Tue Mar 15, 2011 8:58 pm

Re: Malformed multipart POST -

Post by crowder »

The apache log reports the mulipost warning, the java console report the other warning. They both happen when the users tries to upload a file and it reports that it successfully uploads when it really doesn't. We are using perl cgi and apache.

Post Reply