[MAGNOLIA-7251] Determine activated state from last activated version if set Created: 30/Jan/18  Updated: 29/Sep/20  Resolved: 20/Feb/18

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 5.5.10, 5.6.3

Type: Task Priority: Neutral
Reporter: Evzen Fochr Assignee: Evzen Fochr
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes MAGNOLIA-7889 Using publication incl. subnodes in a... Closed
dependency
is depended upon by MGNLACTIVATION-175 multiple publishing leaves page in "m... Closed
is depended upon by PUBLISHING-34 multiple publishing leaves page in "m... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Sprint: Kromeriz 132, Kromeriz 133, Kromeriz 134, Kromeriz 135
Story Points: 0

 Description   

We need to determine correct node state when using versioning and workflow.
There are 3 situations:

  1. Time of modification is before version was created. Correct node state activated
  2. Time of modification is after version was created but before activation was done. Correct node state is modified
  3. Time of modification is after activation was done. Correct node state is modified

https://wiki.magnolia-cms.com/display/~efochr/MAGNOLIA-7251+Determine+activated+state+from+last+activated+version+if+set



 Comments   
Comment by Milan Divilek [ 08/Feb/18 ]

Reopen:

2018-02-08 09:19:30,907 INFO  integrationtests.docker.IntegrationTestEnvironment: Caused by: java.lang.NullPointerException
2018-02-08 09:19:30,908 INFO  integrationtests.docker.IntegrationTestEnvironment:       at info.magnolia.jcr.util.NodeTypes$Activatable.getActivationStatus(NodeTypes.java:180) ~[magnolia-core-5.6.2-SNAPSHOT.jar:?]
Comment by Evzen Fochr [ 08/Feb/18 ]

NPE was caused by importing xml file with property lastActivatedVersion set to not empty value. Added NPE check for version existence.

Comment by Evzen Fochr [ 12/Feb/18 ]

We will probably need new mgnlProperty lastActivatedVersionCreated to improve performance impact caused by getting versions from VersionManager.

Generated at Mon Feb 12 04:22:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.