[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-412) parse parameters in request from <form enctype="multipart/form-data">

suresh vadlamudi (JIRA) jira-events at lists.jboss.org
Tue Apr 13 03:30:06 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBPORTAL-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12525289#action_12525289 ] 

suresh vadlamudi commented on JBPORTAL-412:
-------------------------------------------

Hi All,

This is suresh
As u r saying this issue is fixed ..but still i am finding the issue with enctype="multipart/form-data" request type in Jboss 2.6.8. Here are some details about issue...

I am using Jboss 2.6.8 . I am consuming my portlet from WPS6.0 to Jboss. But if i use enctype="multipart/form-data" request type, portlet not working in Jboss.Please provide the alternate for this ASAP.

Thanks and Regards
Suresh.vadlamudi

> parse parameters in request from <form enctype="multipart/form-data">
> ---------------------------------------------------------------------
>
>                 Key: JBPORTAL-412
>                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-412
>             Project: JBoss Portal
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Portal Portlet
>    Affects Versions: 2.2 Final, 2.0 Branch
>         Environment: all
>            Reporter: Boleslaw Dawidowicz
>            Priority: Optional
>             Fix For: 2.2 Final
>
>
> We have a html  <form enctype="multipart/form-data" ...........> element and within have some
> <input type="text" > or <input type="hidden"> elements. When request is passed into processAction() then 
> request.getParameter() method will return ONLY parameters passed through <form action=""> action attribute.
> It's iteresting as if we do:
> ***********************************************
>    BufferedReader br = request.getReader();
>    String readerString = null;
>    while((readerString = br.readLine()) != null)
>    {
>       System.out.println(readerString);
>    }
> ************************************************
> We'll receive something like this:
> (taken from ForumsPortlet post submit preview action.)
> *******************************************
>  -----------------------------194166472211358575181494488750
> 20:13:41,367 INFO  [STDOUT] Content-Disposition: form-data; name="subject"
> 20:13:41,367 INFO  [STDOUT] asdfasdf
> 20:13:41,367 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,367 INFO  [STDOUT] Content-Disposition: form-data; name="addbbcode18"
> 20:13:41,368 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,368 INFO  [STDOUT] Content-Disposition: form-data; name="addbbcode20"
> 20:13:41,368 INFO  [STDOUT] 12
> 20:13:41,368 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,368 INFO  [STDOUT] Content-Disposition: form-data; name="helpbox"
> 20:13:41,368 INFO  [STDOUT] Tip: Styles can be applied quickly to selected text.
> 20:13:41,369 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,369 INFO  [STDOUT] Content-Disposition: form-data; name="message"
> 20:13:41,369 INFO  [STDOUT] sadfasdfas
> 20:13:41,369 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,369 INFO  [STDOUT] Content-Disposition: form-data; name="topictype"
> 20:13:41,369 INFO  [STDOUT] 0
> 20:13:41,369 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,369 INFO  [STDOUT] Content-Disposition: form-data; name="poll_title"
> 20:13:41,369 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,369 INFO  [STDOUT] Content-Disposition: form-data; name="add_poll_option_text"
> 20:13:41,370 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,370 INFO  [STDOUT] Content-Disposition: form-data; name="poll_length"
> 20:13:41,370 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,370 INFO  [STDOUT] Content-Disposition: form-data; name="mode"
> 20:13:41,370 INFO  [STDOUT] newtopic
> 20:13:41,370 INFO  [STDOUT] -----------------------------194166472211358575181494488750
> 20:13:41,371 INFO  [STDOUT] Content-Disposition: form-data; name="preview"
> 20:13:41,371 INFO  [STDOUT] Preview
> 20:13:41,371 INFO  [STDOUT] -----------------------------194166472211358575181494488750--
> *******************************************
> If form have no enctype="multipart/form-data" then req.getReader() will return empty buffer.
> This parameters should be parsed be portal container.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list