[MGNLSTK-816] Comparing older page versions with current or previous one throws freemarker error Created: 13/Dec/11  Updated: 28/Dec/11  Resolved: 28/Dec/11

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.4.5
Fix Version/s: 1.4.6, 2.0

Type: Bug Priority: Neutral
Reporter: Vit Kroutil Assignee: Ondrej Chytil
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File JCR_test-article_no-extras.png     PNG File JCR_test-article_with-another-extras.png     PNG File JCR_test-article_with-extras.png     PNG File comparing.png     Text File error_log.txt    
Issue Links:
relation
is related to MGNLSTK-615 info.magnolia.cms.security.AccessDeni... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

It can be reproduced on clean install of 4.4.5.

  • Create new-article page under demo-project/about/subsection-articles using Article template and activate (first version)
  • Go to author's /demo-project/about/subsection-articles/new-article.html web-page and edit Article Header abstract, then activate it (second version)
  • Go to author's /demo-project/about/subsection-articles/new-article.html web-page and add new content - activate it (third version)

There is no problem if you try to compare current version with previous, but when you try to compare second version with previous or current it:

  • displays as new content even areas that didn't change (see attached screenshot)
  • creates new content node extras in JCR:/demo-project/about/subsection-articles/new-article
  • throws error you can see in attached error_log.txt file


 Comments   
Comment by Vit Kroutil [ 14/Dec/11 ]

I've probably found reason of this issue:
in step 1 I've created new page and I've activated it immediately so content node extras was not created. Thus the first version of page is without extras content node.(see attached file JCR_test-article_no-extras.png)
In step 2 I've opened this new page - it means extras content node was created. There is second version of page after activation - with extras content node. (see attached file JCR_test-article_with-extras.png)

Then when I tried to compare this two versions it threw error attached in error log file, and another extras content node was added to the test-article(see attached file JCR_test-article_with-another-extras.png).

Comment by Ondrej Chytil [ 27/Dec/11 ]

STKUtil is deprecated in 4.5 so I don't suppose port is needed. Correct me by re-opening this ticket if I'm wrong.

Comment by Ondrej Chytil [ 28/Dec/11 ]

Improvement of test and port.

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