Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-404

[PATCH] Weather portlet influences other portlets' state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4
    • 1.5
    • Portlets
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 24242

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            olaf.romanski@tpg.pl Olaf Romanski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: