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

        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ate Douma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ]
        Ate Douma made changes -
        Field Original Value New Value
        Fix Version/s 2.1.4 [ 12313683 ]
        Vitaly Baranovsky created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development