Redirect parameter causes errors by calling portlet actions multiple times

Description

None

Activity

Show:

Cynthia WilburnMarch 12, 2012 at 1:59 PM

Reopening to add 6.1.1 CE GA2. Close as Fixed.

Kiyoshi LeeJanuary 9, 2012 at 12:37 PM

PASSED Manual Testing using the following steps:

  1. Deploy kaleo-web, kaleo-designer, and kaleo-forms

  2. Go to -> Control Panel

  3. Create a Role: Developer

  4. Click Actions -> Define Permissions near Developer

    • Select Kaleo Forms under Site Content from the Add Permissions drop down

    • Flag Submit, Update, and View under Kaleo Process

    • Click Save

  5. Click Users and Organizations

  6. Create a user: user1

    • Add user1 to the liferay.com site

    • Assign the Developer role to user 1

  7. Click Dynamic Data Listsh

  8. Click Manage Data Definitions

    • Click Actions Manage Templates near To Do

    • Click Add Detail Template

      • Enter Create under Name (Required)

      • Select Create under Mode

      • Click Save

    • Click Add Detail Template

      • Enter Edit under Name (Required)

      • Select Edit under Mode

      • Click Save

    • Click Close Dialog

  9. Click Back to liferay.com

  10. Add a page: Test

  11. Add a Kaleo Forms portlet

  12. Click the Processes Tab

  13. Click Add

    • Enter test under Name (Required)

    • Click Select under Entry Definition (Required)

      • Click the link for To Do

    • Click Select under Initial Form (Required)

      • Click the link for Create

    • Click Select under Workflow

      • Click Edit next to Single Approver

      • Enter Test under Title

      • Double click the Update node

      • Double click "Assign to Asset Creator"

      • Select Role from the drop down

      • Select the Developer Role

      • Click Save Draft

      • Click Publish

      • Click the link for Test

    • Click Assign under Workflow Task Forms

      • Click the Update Node

      • Double click the Value Column next to Forms

      • Select the Edit form

      • Click Save

      • Click Close

    • Click Save

  14. Click the Summary Tab

  15. Click Submit New -> Test

    • Fill out the Form

    • Click Save

  16. Click Actions -> Assign to me under Assigned to My Roles

    • OK

  17. Click Actions -> Reject -> OK

  18. Sign in as user1

  19. Navigate to the test page

  20. Click Actions -> Assign to Me under Assigned to My Roles

  21. Click Actions -> Complete Form

    • Select Critical under Severity

    • Click Save

Reproduced on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: a55de52b32605deada15d9a93e5066e574886904e. 6.1.x Plugins GIT ID: fb661fa0271a34a302de326b1984b838d6c20280.

Error is thrown in the console and a "Portlet is temporarily not available." is displayed when the user resubmits the edited form.

Fixed on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 904a264ea24add455dae81f3d0c528b011adc421. 6.1.x Plugins GIT ID: a8f0a6a5ecab51ebe50729e4a29b04c1b4747e59.

User is able to resubmit an edited form without error.

Marcellus TavaresJanuary 9, 2012 at 6:55 AM

This bug was caused by because when we have a form with enctype and the UploadRequest is not used for retrieving post parameters, the value of that parameter is always null.

This was causing the redirect to be empty leading the javax.portlet.action to be maintained in the URL. When the redirect had the currentURL as value, the action present at the URL was being executed.

The solution was to send the correct redirect parameter value through the URL.

Fixed

Details

Assignee

Reporter

Git Pull Request

Bug Type

Regression Bug

Components

Affects versions

Priority

Zendesk Support

Created January 9, 2012 at 5:25 AM
Updated June 24, 2023 at 3:38 PM
Resolved March 12, 2012 at 2:35 PM
Loading...