Uploaded image for project: 'Content Dependencies'
  1. Content Dependencies
  2. MGNLCDEP-11

Allow direct deletion of nodes from the JCR website browser

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.2
    • 1.0.1
    • None
    • Magnolia EE 4.4.1

    Description

      An issue was reported today on the user-list by Simone Miterangelis (Tinext). He tried to delete a node data from the JCR browser and got the following exception.

      java.io.IOException: Problem in accessing repository {} - see log for details.
      	at info.magnolia.module.dependencies.servlets.DependenciesServlet.doPost(DependenciesServlet.java:91)
      	at info.magnolia.module.dependencies.servlets.DependenciesServlet.doGet(DependenciesServlet.java:67)
      	[...]
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.jcr.PathNotFoundException: demo-project/untitled
      	at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2706)
      	at info.magnolia.cms.core.DefaultContent.<init>(DefaultContent.java:121)
      	at info.magnolia.cms.core.DefaultHierarchyManager.getContent(DefaultHierarchyManager.java:239)
      	at info.magnolia.module.dependencies.servlets.DependenciesServlet.getUsedInPages(DependenciesServlet.java:111)
      	at info.magnolia.module.dependencies.servlets.DependenciesServlet.doPost(DependenciesServlet.java:84)
      	... 74 more  
      

      Here we have two problems:
      1) dependencies check should not come into play when working on the JCR browser, that is direct deletion should be allowed.
      2) we're trying to get a content by passing the path to a node data, which causes the PathNotFoundException

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD