Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-887

Jetspeed writes information to database when storing preferences in edit_defaults custom portlet mode.

    XMLWordPrintableJSON

Details

    Description

      Why Jetspeed adds records in database when storing preferences in edit_defaults mode?

      For example, I've changed preference 'entities' in portlet entity with id 'P-111c7f0db23-10032' through edit_defaults custom portlet mode. Yes, psml page was changed. But 3 records was inserted to PREFS_NODE and 2 records was inserted to PREFS_PROPERTY_VALUE:
      to PREFS_NODE:
      NODE_ID PARENT_NODE_ID NODE_NAME NODE_TYPE FULL_PATH CREATION_DATE MODIFIED_DATE
      ----------- -------------- ---------------------------------------------------------------------------------------------------- --------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------- -----------------------
      299112 299090 entities 1 /portlet_entity/P-111c7f0db23-10032/preferences/entities 2008-06-05 13:40:02.830 2008-06-05 13:40:02.830
      299114 299112 size 1 /portlet_entity/P-111c7f0db23-10032/preferences/entities/size 2008-06-05 13:40:02.837 2008-06-05 13:40:02.837
      299113 299112 values 1 /portlet_entity/P-111c7f0db23-10032/preferences/entities/values 2008-06-05 13:40:02.833 2008-06-05 13:40:02.833

      to PREFS_PROPERTY_VALUE (2 entries except one!!!):
      PROPERTY_VALUE_ID NODE_ID PROPERTY_NAME PROPERTY_VALUE CREATION_DATE MODIFIED_DATE
      ----------------- ----------- ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------- -----------------------
      365458 299113 0 ;news;news_comment; 2008-06-05 13:40:02.847 2008-06-05 13:40:02.847
      365574 299113 0 ;news;news_comment; 2008-06-05 13:40:23.737 2008-06-05 13:40:23.737

      As you can see, both records added to PREFS_PROPERTY_VALUE are the same... It's error!
      Why Jetspeed adds this entries to database?
      When rendering pages Jetspeed uses preferences from psml, and ignores this database stored preferences.

      Is it error?

      Attachments

        Activity

          People

            ate Ate Douma
            barvetal Vitaly Baranovsky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: