Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

a

Avatar

Avatar
Validate 10
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
AdobeID24
Level 4

07-04-2021

a

View Entire Topic

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
kunal23
MVP

07-04-2021

The new versionHistory JSP can be found here - /libs/cq/gui/components/coral/common/admin/timeline/events/version/version.jsp

 

The preview button invokes com.day.cq.wcm.core.impl.servlets.VersionPreviewServlet in AEM. 

 

1673 TIMER_START{ResourceResolution}
   1882 TIMER_END{208,ResourceResolution} URI=/mnt/overlay/wcm/core/content/sites/versionhistory/_jcr_content.txt resolves to Resource=MergedResource [path=/mnt/overlay/wcm/core/content/sites/versionhistory/jcr:content, resources=[/libs/wcm/core/content/sites/versionhistory/jcr:content]]
   1886 LOG Resource Path Info: SlingRequestPathInfo: path='/mnt/overlay/wcm/core/content/sites/versionhistory/jcr:content', selectorString='null', extension='txt', suffix='null'
   1886 TIMER_START{ServletResolution}
   1888 TIMER_START{resolveServlet(/mnt/overlay/wcm/core/content/sites/versionhistory/jcr:content)}
   1899 TIMER_END{10,resolveServlet(/mnt/overlay/wcm/core/content/sites/versionhistory/jcr:content)} Using servlet com.day.cq.wcm.core.impl.servlets.VersionPreviewServlet
   1901 TIMER_END{14,ServletResolution} URI=/mnt/overlay/wcm/core/content/sites/versionhistory/_jcr_content.txt handled by Servlet=com.day.cq.wcm.core.impl.servlets.VersionPreviewServlet

The servlet is bound to resource type - cq/gui/components/common/admin/versionhistory 

If you have to invoke it via code then you need to make a POST call to following resource - /libs/wcm/core/content/sites/versionhistory/jcr:content 

Pass versionid in request body. 

The servlet will return you the temp path in AEM in response to preview the version.