Error in request overview screen when no party is given
-------------------------------------------------------

                 Key: OFBIZ-2119
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2119
             Project: OFBiz
          Issue Type: Bug
          Components: order
    Affects Versions: SVN trunk
         Environment: any
            Reporter: Karim Rahimpur
            Priority: Minor
         Attachments: RequestForms.xml.patch

An error comes up on the overview screen of a request that has no requesting 
party.

Example:
1. Create a new request and do not fill in Requesting Party 
[https://demo.hotwaxmedia.com/ordermgr/control/request]
2. Try to get the overview, assuming the newly created request's id is 10000 
e.g. 
[https://demo.hotwaxmedia.com/ordermgr/control/ViewRequest?custRequestId=10000]
3. The error message shows up:
{panel}
* Request 10000 Information
:ERROR MESSAGE:
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://common/widget/CommonScreens.xml#GlobalDecorator]: 
java.lang.IllegalArgumentException: Error in form [requestInfo] calling service 
with name [getPartyNameForDate]: org.ofbiz.service.ServiceValidationException: 
The following required parameter is missing: [getPartyNameForDate.partyId] 
(Error in form [requestInfo] calling service with name [getPartyNameForDate]: 
org.ofbiz.service.ServiceValidationException: The following required parameter 
is missing: [getPartyNameForDate.partyId])
{panel}

Problem:
RequestForms.xml calls the service _getPartyNameForDate_ which expects a 
partyId as an input parameter. But there is no partyId associated to the 
request so the error shows up.

Solution:
Use __NA__ as default partyId. As per the attached patch.

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

Reply via email to