core icon indicating copy to clipboard operation
core copied to clipboard

Push publishing a "design" template creates an "advanced" template

Open hmboonstra opened this issue 12 years ago • 1 comments

I have a similar problem as described in issue #1740. The difference is that it does not happing during the copying of a Designer Template, but during Push Publishing to another server, or if I download a bundle tar.gz containing a Designer Template and upload it on another server. The icon remains the same (that of a Template Designer), but if I edit the Template on the other server, I get the Advanced Template editor instead. This happens in version 2.5.3 of DotCMS.

Stacktrace of related exception:

WARN action.EditTemplateAction: com.dotmarketing.exception.DotDataException: identifier is null
com.dotmarketing.exception.DotDataException: identifier is null
    at com.dotmarketing.portlets.folders.business.FolderFactoryImpl.find(FolderFactoryImpl.java:110)
    at com.dotmarketing.portlets.folders.business.FolderAPIImpl.find(FolderAPIImpl.java:482)
    at com.dotmarketing.portlets.templates.action.EditTemplateAction._editWebAsset(EditTemplateAction.java:528)
    at com.dotmarketing.portlets.templates.action.EditTemplateAction.processAction(EditTemplateAction.java:127)

hmboonstra avatar Mar 07 '14 10:03 hmboonstra

This is probably not a bug, but a feature. The template was using a theme which was not pushed to the remote server, but uploaded via webdav. This resulted in a theme directory with the same name, but a different identifier. Therefore the Designer Template could no longer find its theme and fell back to the Advanced Template editor. I suppose this is acceptable behavior and close this bug.

hmboonstra avatar Mar 12 '14 16:03 hmboonstra