Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5954

Accessing of unexisting resource leads to PNFE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • None
    • None

    Description

      To reproduce try to access http://demo.magnolia-cms.com/demo-project/whatever/. (the tailing slash needs to be there). PNFE is logged but 404 is correctly returned.

      ERROR  info.magnolia.rendering.engine.RenderingFilter 16.10.2014 08:04:16 -- RepositoryException while reading Resource [/demo-project/whatever]
      javax.jcr.PathNotFoundException: /demo-project/whatever
      

      The source of the issue is info.magnolia.cms.filters.AggregatorFilter.collect(), line 162

      requestedData = hierarchyManager.getNodeData(handleToUse);
      

      since it returns NonExistingNodeData. Rewriting to node API should solve the issue.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD