Description
Open Essentials UI.
Navigate to Tools -> Gallery Manager.
Add an image variant with name "small".
Save.
Add an image variant with name "small".
Save.
Expected behaviour: feedback message that name "small" is already in use.
Actual behaviour:
You will get an error message:
An error occurred:
Failed to create image variant: small
And a stacktrace in the log/console:
[INFO] [talledLocalContainer] 10.07.2014 13:58:49 ERROR http-bio-8080-exec-3 [GalleryUtils.createImagesetVariant:222] Error creating variant
[INFO] [talledLocalContainer] javax.jcr.ItemExistsException: This node already exists: /hippo:namespaces/myhippoproject/imageset/hipposysedit:nodetype/hipposysedit:nodetype/small
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1293)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:111)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:37)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:1814)
[INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1774)
[INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.NodeDecorator.addNode(NodeDecorator.java:84)
[INFO] [talledLocalContainer] at org.hippoecm.repository.util.DefaultCopyHandler.startNode(DefaultCopyHandler.java:83)
[INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copy(JcrUtils.java:607)
[INFO] [talledLocalContainer] at org.hippoecm.repository.util.JcrUtils.copy(JcrUtils.java:587)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.dashboard.utils.GalleryUtils.createImagesetVariant(GalleryUtils.java:180)
[INFO] [talledLocalContainer] at org.onehippo.cms7.essentials.plugins.gallery.GalleryPluginResource.addVariant(GalleryPluginResource.java:250)