ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OFBIZ-9653) Issue while creating new person in the party component
Date Sun, 27 Aug 2017 11:59:01 GMT

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

Jacques Le Roux edited comment on OFBIZ-9653 at 8/27/17 11:58 AM:
------------------------------------------------------------------

Hi Suraj,

Yes that's weird. Normally request-redirect redirects also parameters, unlike request-redirect-noparam:
{code}
<xs:enumeration value="request-redirect">
    <xs:annotation>
        <xs:documentation>
            Send a redirect down to the browser telling it to go to the new request.
            Automatically redirect all current request parameters to the new request or only
redirected parameters if specified.
        </xs:documentation>
    </xs:annotation>
</xs:enumeration>
<xs:enumeration value="request-redirect-noparam">
    <xs:annotation>
        <xs:documentation>
            Send a redirect down to the browser telling it to go to the new request.
            No current request parameters are sent to the new request, nor redirected parameters
if specified.
        </xs:documentation>
    </xs:annotation>
</xs:enumeration>
{code}
Since you suggest (did not test but I guess it's OK)
-        <response name="success" type="request-redirect" value="viewprofile"/>
+        <response name="success" type="request-redirect" value="viewprofile">
+            <redirect-parameter name="partyId"/>
+        </response>
{code}
It must be that  request-redirect behaviour has changed :(



was (Author: jacques.le.roux):
Hi Suraj,

Yes that's weird. Normally request-redirect redirect also parameters, unlike request-redirect-noparam:
{code}
<xs:enumeration value="request-redirect">
    <xs:annotation>
        <xs:documentation>
            Send a redirect down to the browser telling it to go to the new request.
            Automatically redirect all current request parameters to the new request or only
redirected parameters if specified.
        </xs:documentation>
    </xs:annotation>
</xs:enumeration>
<xs:enumeration value="request-redirect-noparam">
    <xs:annotation>
        <xs:documentation>
            Send a redirect down to the browser telling it to go to the new request.
            No current request parameters are sent to the new request, nor redirected parameters
if specified.
        </xs:documentation>
    </xs:annotation>
</xs:enumeration>
{code}
Since you suggest (did not test but I guess it's OK)
-        <response name="success" type="request-redirect" value="viewprofile"/>
+        <response name="success" type="request-redirect" value="viewprofile">
+            <redirect-parameter name="partyId"/>
+        </response>
{code}
It must be that  request-redirect behaviour has changed :(


> Issue while creating new person in the party component
> ------------------------------------------------------
>
>                 Key: OFBIZ-9653
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9653
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Rubia Elza Joshep
>            Assignee: Suraj Khurana
>         Attachments: OFBIZ-9653.patch, screenshot-1.png
>
>
> Steps to regenerate:
> 1) Open link [https://demo-trunk.ofbiz.apache.org/webtools/control/main]
> 2) Go to party component.
> 2)  Click on Create new person.
> 3) Fill in the mandatory fields and click on save button.
> Actual: Redirects to the view profile page https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile
 with following description "party found with the partyId of:"



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

Mime
View raw message