ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-5048) Multi Part Input Parameters not Available in Groovy Event
Date Tue, 11 Feb 2020 20:53:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-5048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034828#comment-17034828
] 

ASF subversion and git services commented on OFBIZ-5048:
--------------------------------------------------------

Commit de75e163fba948b0459d866292a80831ae449ce2 in ofbiz-framework's branch refs/heads/release18.12
from Michael Brohl
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=de75e16 ]

Revert "Multi Part Input Parameters not Available in Groovy Event (OFBIZ-5048)"

This reverts commit 02d59bcd5b0b9040a2fda777d26c0879139ae646.


> Multi Part Input Parameters not Available in Groovy Event
> ---------------------------------------------------------
>
>                 Key: OFBIZ-5048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5048
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Vikramjit Singh
>            Assignee: Michael Brohl
>            Priority: Major
>             Fix For: 17.12.01, 18.12.01
>
>         Attachments: GroovyEventMultipartParametes.patch, OFBIZ-5048.patch, OFBIZ-5048V2.patch
>
>
> If form is of type enctype="multipart/form-data" and we are handling it's submission
through Groovy Event then in the parameters Map Ofbiz does not set the multipart input parameters
from request parameters.
> The same are available when multipart form submission is handled through service.
> The reason being the code that sets the multipart parameters in request attribute is
only available in ServiceEventHandler.java and in GroovyEventHandler the multipart are never
set. 
> So I have created a method getMultiPartParameterMap in the class UtilHttp.java and put
the common logic in that method so that when getCombinedMap method is called from the GroovEventHandler
the method also call getMultiPartParameterMap and in the ServiceEventHandler I have written
a call for getMultiPartParameterMap method.
> I am attaching the Patch Kindly Verify the same.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message