Issue Details (XML | Word | Printable)

Key: JS1-404
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Olaf Romanski
Votes: 0
Watchers: 0
Operations

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

[PATCH] Weather portlet influences other portlets' state

Created: 30/Oct/03 04:04 PM   Updated: 02/Apr/04 06:26 PM
Return to search
Component/s: Portlets
Affects Version/s: 1.4
Fix Version/s: 1.5

Time Tracking:
Not Specified

File Attachments:
  Size
Text File patch_WeatherAction.txt 2003-10-30 04:08 PM Olaf Romanski 2 kB
Environment:
Operating System: Windows NT/2K
Platform: PC

Bugzilla Id: 24242


 Description  « Hide
To reproduce that error:
1.Customize your page so that it contains Weather portlet (or any derived) and
at least one other portlet (for more informative example, two others)
2.Click "Minimize" on any non-weather portlet
3.Click "Minimize" on second non-weather portlet
Expected result:
Minimized portlets remain minimized.
Real result:
Previously minimized portlet is displayed in normal mode again. (Alternatively
to minimizing two portlets, you may minimize one, switch to another pane, move
back to the first pane. The results will be identical.)

Here is what I have learned from my investigation:
1. The reason is, that current user's PSML is written by "Minimize" action and
then overwritten with invalid (old) content by buildNormalContext method of
WeatherAction class
2. The line of code that is causing problem:
PortletConfigState.setInstanceParameter(portlet, rundata, WEATHER_CITY_INFO,
cityInfo);

I think that the above line is excessive, and somewhat incompatible
with general JS patterns.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Olaf Romanski added a comment - 30/Oct/03 04:08 PM
Created an attachment (id=8817)
proposed patch

Mark Orciuch added a comment - 05/Nov/03 05:02 AM
Patch applied and tested.