AEM VerionHistory node under /content

Avatar

Avatar
Validate 1
Level 2
suhass86991778
Level 2

Likes

8 likes

Total Posts

32 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
suhass86991778
Level 2

Likes

8 likes

Total Posts

32 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
suhass86991778
Level 2

05-06-2018

On 6.3.0, version history node is getting created at /content/versionhistory path. My application does not have any custom code which does version purging and does not fetch any value from the nodes under /content/versionhistory.

The structure is like this,

-content

--versionhistory [cq:page]

---author-1@example.com [cq:page]

-------child nodes [same as the site structure] [cq:page]

---author-2@example.com [cq:page]

-------child nodes [same as the site structure] [cq:page]

etc..

Versions are also present under /jcr:system/jcr:versionStorage path.

The nodes under /content/versionhistory are getting recreated, does this have something to do with audit logs?. Ex: I deleted /content/versionhistory node. Now, made changes to few pages [modified some components], and I see this /content/versionhistory node got generated again with the entire site structure under it as the child pages.

This is causing issues as are simple redirect rules and vanity urls set for some pages. When these redirects/vanity url's are removed from the actual page, some pages are not editable[blank page, nothing specific in log files] because these redirect/vanity path values are present as a duplicate under /content/versionhistory. Authors are getting blocked frequently.

This is a weird behavior, I dont have this /content/versionhistory path on my local instance, it is happening on higher environments. Can anyone suggest why this node /content/versionhistory is present and how its getting created and a way to get rid of it.

Thanks in advance for any suggestions.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

06-06-2018

Thanks Jorg, for pointing out in right direction.

I am able to reproduce, how this node is getting created.

Whenever author do page compare with any older version, that older version is created as page inside versionhistory node and shows as a page.

I created a breadcrumb to show page location when we do compare, I can see the page location and version and can see same in version history node.

Screen Shot 2018-06-06 at 11.30.16 PM.png

more info

Page Diff

Thanks

Arun

Answers (7)

Answers (7)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

06-06-2018

Hi,

I've seen this node in my local instance and I deleted and try to reproduce how It was created but no luck.

Question is how to get rid of this? Simple just create an JCR Event Listner for versionhsitory node created and delete version history node as soon as node created.

observationManager.addEventListener(this, Event.NODE_ADDED , "/content/versionhistory", true, null,

  new String[]{"cq:Page"} , true);

You can find more detail about above method at ObservationManager (Content Repository for Java Technology API 1.0)

Thanks

Arun

Avatar

Avatar
Ignite 1
Level 1
radhag85825056
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 1
View profile

Avatar
Ignite 1
Level 1
radhag85825056
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
Boost 1
View profile
radhag85825056
Level 1

28-08-2019

I am using 6.3 and 6.4 and in both the versions, "versionhistory" folder gets created under /tmp folder.


Also, when I am comparing a page using "Compare to Current", this feature is not working. Is this something to do with versionhistory folder location where it's getting created?

Avatar

Avatar
Validate 1
Level 2
suhass86991778
Level 2

Likes

8 likes

Total Posts

32 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
suhass86991778
Level 2

Likes

8 likes

Total Posts

32 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
suhass86991778
Level 2

28-01-2019

I created a scheduler which runs at a set interval and purges the nodes under /content/versionhistory.

Versionhistory nodes get created under /content and not /tmp. Which version of AEM are you referring to?

Avatar

Avatar
Boost 1
Level 1
indrasish_b
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
indrasish_b
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
indrasish_b
Level 1

24-01-2019

Hi,

I want to know if anybody was able to solve this issue ? Version history node should get created inside tmp/versionhistory not content/versionhistory. If anyone was able to solve the issue please reply.

Avatar

Avatar
Validate 1
Level 2
suhass86991778
Level 2

Likes

8 likes

Total Posts

32 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
suhass86991778
Level 2

Likes

8 likes

Total Posts

32 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
suhass86991778
Level 2

06-06-2018

Thanks for helping me out on this!

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

06-06-2018

Hello,

/content/versionhistory is created by AEM when you compare a version of the content using "Compare to Current" option in Timeline. 

Regards,

Vishu

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

06-06-2018

It has something to do with diff-ing versions on content ... don't know any details though.

Jörg