[MAGNOLIA-306] Deactivation Metadata does not get persisted Created: 09/Mar/05  Updated: 25/Apr/05  Resolved: 09/Mar/05

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.01
Fix Version/s: 2.1 Final

Type: Bug Priority: Major
Reporter: Michael Aemisegger Assignee: Sameer Charles
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

R2.02, any


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If a node gets deactivated the metadata gets updated in the workspace but this metadata is not saved permanently to the repository. After a restart of tomcat deactivated nodes turn green again in the admin GUI.

Suggested fix (worked for me):

In Syndicator.updateDeActivationDetails() add

page.save();

analogous to updateActivationDetails().



 Comments   
Comment by Sameer Charles [ 09/Mar/05 ]

fixed on svn
http://svn.magnolia.info/svn/magnolia/trunk/src/main/info/magnolia/cms/exchange/simple/Syndicator.java

Comment by Andreas Weder [ 25/Apr/05 ]

The following patch also fixes this bug in the 2.02 branch:

Index: C:/Projects/Magnolia_2_02_Branch/src/main/info/magnolia/cms/exchange/simple/Syndicator.java
===================================================================
— C:/Projects/Magnolia_2_02_Branch/src/main/info/magnolia/cms/exchange/simple/Syndicator.java (revision 547)
+++ C:/Projects/Magnolia_2_02_Branch/src/main/info/magnolia/cms/exchange/simple/Syndicator.java (working copy)
@@ -395,7 +395,8 @@
HierarchyManager hm = SessionAccessControl.getHierarchyManager(this.request,this.context);
Content page = hm.getPage(this.path);
updateMetaData(page,Syndicator.DE_ACTIVATE);

  • this.updateTree(page,Syndicator.DE_ACTIVATE);
    + this.updateTree(page,Syndicator.DE_ACTIVATE);
    + page.save();
    }
Generated at Mon Feb 12 03:16:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.