Uploaded image for project: '[Read Only] - Hippo Essentials'
  1. [Read Only] - Hippo Essentials
  2. ESSENTIALS-290

Error / ItemExistsException when trying to add image variant with name already in use

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 1.01.04
    • GA, 1.01.05
    • None
    • None
    • 2
    • GA

    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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            nvankampenhout Niels van Kampenhout
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: