Jetspeed 2
  1. Jetspeed 2
  2. JS2-887

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

    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?

        Activity

        Hide
        Ate Douma added a comment -

        I don't know if this issue is real and/or still valid for the 2.1.4 branch. If so, it should be fixed before the 2.1.4 release otherwise this issue can be closed.

        Show
        Ate Douma added a comment - I don't know if this issue is real and/or still valid for the 2.1.4 branch. If so, it should be fixed before the 2.1.4 release otherwise this issue can be closed.
        Hide
        Ate Douma added a comment -

        I've tested this and can confirm this bug and committed a fix to resolve it to both the 2.1.3-postrelease and 2.1.4 branch.
        Fix completely prohibits the creation of default entity preferences in the preferences tables, only the fragment preferences are modified now.

        Show
        Ate Douma added a comment - I've tested this and can confirm this bug and committed a fix to resolve it to both the 2.1.3-postrelease and 2.1.4 branch. Fix completely prohibits the creation of default entity preferences in the preferences tables, only the fragment preferences are modified now.

          People

          • Assignee:
            Ate Douma
            Reporter:
            Vitaly Baranovsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development