[jira] [Updated] (OFBIZ-9969) In 'ValidateMethod.java', when we don't pass any className from xml files. default value 'org.apache.ofbiz.base.util.UtilValidate' should be set for className.

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

[jira] [Updated] (OFBIZ-9969) In 'ValidateMethod.java', when we don't pass any className from xml files. default value 'org.apache.ofbiz.base.util.UtilValidate' should be set for className.

Nicolas Malin (Jira)

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

Sonal Patwari updated OFBIZ-9969:
---------------------------------
    Attachment: OFBIZ-9969.patch

In 'ValidateMethod.java', set 'className' with
{code:java}
'MiniLangValidate.checkAttribute(element.getAttribute("class"), "org.apache.ofbiz.base.util.UtilValidate")
{code}
instead of
{code:java}
'element.getAttribute("class")
{code}
In the previous code, If we do not pass any className from the xml files.Then, className is set to null and throws an error of 'Validation Method not found'.
I have verified the changes on the local instance. Please find the attached patch. Thanks!

> In 'ValidateMethod.java', when we don't pass any className from xml files. default value 'org.apache.ofbiz.base.util.UtilValidate' should be set for className.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-9969
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9969
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Sonal Patwari
>            Assignee: Sonal Patwari
>         Attachments: OFBIZ-9969.patch
>
>
> *Actual:* In 'ValidateMethod.java', If we have not passed any className from the xml files.Then, className is set to null and throws an error of 'Validation Method not found'.
> *Expected:* A default value 'org.apache.ofbiz.base.util.UtilValidate' should be assigned to the className.
> As reference: Visit 'ValidateMethodCondition.java' and there, 'className' is set with a default value 'org.apache.ofbiz.base.util.UtilValidate'.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)