You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Humera Khan (Jira)" <ji...@apache.org> on 2020/01/25 05:56:00 UTC
[jira] [Commented] (OFBIZ-11171) Same content uploaded twice, if
refresh the page after uploading the content
[ https://issues.apache.org/jira/browse/OFBIZ-11171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17023418#comment-17023418 ]
Humera Khan commented on OFBIZ-11171:
-------------------------------------
Earlier 'view' response type is used on uploadPartyContent request that cause the issue. We need to use request-redirect response type along with the required redirect-parameter instead of view response type, i.e. We need to request-redirect on viewProfile along with partyId as redirect-parameter.
Please review the attached patch
> Same content uploaded twice, if refresh the page after uploading the content
> ----------------------------------------------------------------------------
>
> Key: OFBIZ-11171
> URL: https://issues.apache.org/jira/browse/OFBIZ-11171
> Project: OFBiz
> Issue Type: Sub-task
> Components: party
> Affects Versions: Trunk
> Reporter: Humera Khan
> Assignee: Humera Khan
> Priority: Major
>
> * Go to [partymgr|https://demo-trunk.ofbiz.apache.org/partymgr/control/main]
> * Search any party(e.g. DemoCustomer)
> * Go to the [party profile|https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=DemoCustomer] page
> * Go to Party Content section on the page and upload a file
> * Select a purpose(Logo Image Url) and click on the Upload button
> * After uploading success message will be displayed as Party data object created successfully.
> * Then refresh the page, uploaded content will upload again.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)