History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOTCMS-3916
Type: Bug Bug
Status: Released Released
Resolution: Released
Priority: Major Major
Assignee: Testing User
Reporter: Paolo Sidoli
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotCMS

Get an IllegalStateException when doing a redirect from a widget

Created: February 12, 2010 4:18 AM   Updated: Tuesday 8:37 AM
Component/s: a. Unknown
Affects Version/s: None
Fix Version/s: 1.9

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0 minutes
Time Spent - 1 day, 7 hours
Time Spent: 1 day, 7 hours
Time Spent - 1 day, 7 hours


 Description  « Hide
Happens when the redirect is done from a ViewTool or directly from Velocity. Happens both when ViewTool is application and request scope. It seems to happen because response.isCommitted() returns true.

 All   Comments   Work Log   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
Maria Bouza - February 12, 2010 11:50 AM
Hi Paolo,

These bugs need to be reported to the dotCMS project, not dotCMS Plugins.

thanks
Maria

Jason Tesser - March 25, 2010 8:45 AM
So the final solution here is to add an optional field to the widget. Meaning when a widget is created it will get this field like it gets the Widget Code etc... which the page services will execute.

A few things
1. We need a startup task to update the field for all current widgets.
2. In the PageServices try to use a set to $_dummy so that it doesn't spit out any output.

This should be easy in Page Services as we already hit the multitree for content. We just need to know which content is a widget and if it is then execute.

Test the solution with a widget that has a condition to redirect.

Jason Tesser - March 29, 2010 4:16 PM
cal the field Pre-Execute

Jason Tesser - April 08, 2010 3:27 PM
David is right I think this needs to work in edit mode.