valtech / aem-easy-content-upgrade

AEM Easy Content Upgrade simplifies content migrations in AEM projects
Other
61 stars 26 forks source link

Not possible to copy a resource with "jcr:versionHistory" property. #105

Closed seanpoder closed 4 years ago

seanpoder commented 5 years ago

It is not possible to copy a resource containing system properties as "jcr:versionHistory" using "doCopyResourceToRelativePath(String relativePath)".

NOTE: This might be happening for other properties as well.

Screenshot 2019-05-13 at 17 16 22
gruberrolandvaltech commented 5 years ago

Provide new methods to copy and move pages via page manager. We have a similar issue with doMoveResourceToRelativePath() for pages.

org.apache.sling.api.resource.PersistenceException: Unable to delete resource at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.delete(JcrResourceProvider.java:500) at org.apache.sling.resourceresolver.impl.providers.stateful.AuthenticatedResourceProvider.delete(AuthenticatedResourceProvider.java:193) at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.delete(ResourceResolverControl.java:402) at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.move(ResourceResolverControl.java:628) at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.move(ResourceResolverImpl.java:1102)

gruberrolandvaltech commented 5 years ago

Alternative: detect if resource is a page and use page manager automatically. This might be time consuming.

gruberrolandvaltech commented 4 years ago

Done in https://github.com/valtech/aem-easy-content-upgrade/pull/119

roxana-muresan commented 4 years ago

Fixed and ready to be released in 3.1.0