[jira] [Updated] (OFBIZ-5371) SimpleMethod parameters doesnt work with prefix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-5371) SimpleMethod parameters doesnt work with prefix

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Ende updated OFBIZ-5371:
--------------------------------

    Description:
I experianced some problems when a form submitted parameters with prefix directly to a SimpleMethod (through the controller request). In this case the prefix is not stripped from the parameter name. The patch updates the method ModelService.java:makePrefixMap().



  was:
I experianced some problems when a form submitted parameters with suffix or prefix directly to a SimpleMethod (through the controller request). In this case the prefix/suffix is not stripped from the parameter name. The patch updates the method SetServiceFields.java:exec(). I used the same code that is in the ServiceEventHandler.java and does the same job.
I hope you agree with me, that the <set-service-fields>-Tag is an appropriate way to house the code.

In contrast to the ServiceEventHandler.java we are not considering MultiPart (like files) as a valid input. This might be a bit restrictive but we are missing the required parameters like request, session, ... in the set-service-field function.


> SimpleMethod parameters doesnt work with prefix
> -----------------------------------------------
>
>                 Key: OFBIZ-5371
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5371
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Michael Ende
>         Attachments: OFBIZ-5371.patch
>
>
> I experianced some problems when a form submitted parameters with prefix directly to a SimpleMethod (through the controller request). In this case the prefix is not stripped from the parameter name. The patch updates the method ModelService.java:makePrefixMap().



--
This message was sent by Atlassian JIRA
(v6.1#6144)