[jira] Created: (OFBIZ-2836) ModelNotification is not serializable

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

[jira] Created: (OFBIZ-2836) ModelNotification is not serializable

Nicolas Malin (Jira)
ModelNotification is not serializable
-------------------------------------

                 Key: OFBIZ-2836
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2836
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 4.0
         Environment: All
            Reporter: Tony Noble


request-redirect fails after submitting a form that does not meet the associated service's requirements.

Steps to reproduce:

Controller.xml entry looks as follows:

        <request-map uri="CreateItem">
                <security auth="true" https="true"/>
    <event type="service" path="" invoke="createItem" />
                <response name="success" type="request-redirect-noparam" value="ListItems"/>
                <response name="error" type="request-redirect" value="CreateItemForm"/>
        </request-map>

The createItem service should contain at least one mandatory field.  When submitting a form that calls the service with this field absent, RequestHandler generates a serialization exception with the message 'ModelNotification: Object is not serializable'.  This appears to be generated by the callRedirect() method of the RequestHandler class, which would suggest that ModelNotification passes the 'instanceof Serializable' test, even though it actually isn't.

Looking at the ModelNotification.java, making it Serializable is a trivial task, though I'm not sure whether this is needed or whether it should just not be added to the request attributes in the first place.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.