Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-3991

pathnotfoundexception stacktraces end in error code 500 and not 404

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.9.1, 4.10.0, 4.8.14
    • None
    • None
    • None
    • 4.9.1
    • Oui

      Steps to reproduce bug:
      Try and load a link to a pdf that doesn't exist, for example: 
      https://demo.ametys.org/nightly-odf/plugins/odf-web/odf/_content/XXXXXXXXXXX.pdf

       

      Bug:

      The error code is 500 and not 404.

      Caused by: javax.jcr.PathNotFoundException: XX/XX/XXXXXXXXXXXXXXX
      at org.apache.jackrabbit.core.NodeImpl$8#perform:2167
      at org.apache.jackrabbit.core.NodeImpl$8#perform:2161
      at org.apache.jackrabbit.core.session.SessionState#perform:216
      at org.apache.jackrabbit.core.ItemImpl#perform:91
      at org.apache.jackrabbit.core.NodeImpl#getNode:2161
      at org.ametys.plugins.repository.collection.AmetysObjectCollection#getChild:127
      ... 101 more

       

          [ODF-3991] pathnotfoundexception stacktraces end in error code 500 and not 404

          Raphaël Franchet made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Magali Franchet made changes -
          Assignee New: Raphaël Franchet [ raphael ]
          Magali Franchet made changes -
          Status Original: Code review OK [ 10206 ] New: Ready to merge [ 10208 ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 4.8.14 [ 19724 ]
          Fix Version/s Original: 4.8.13 [ 19636 ]
          Raphaël Franchet made changes -
          Status Original: Available for review [ 10005 ] New: Code review OK [ 10206 ]
          Raphaël Franchet made changes -
          Assignee Original: Raphaël Franchet [ raphael ]
          Raphaël Franchet made changes -
          Status Original: Open [ 1 ] New: Available for review [ 10005 ]
          Raphaël Franchet made changes -
          Revue fonctionnelle renseignée New: Oui [ 10610 ]
          Raphaël Franchet made changes -
          Assignee New: Raphaël Franchet [ raphael ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 4.8.13 [ 19636 ]
          Fix Version/s Original: 4.8.9 [ 19449 ]

            raphael Raphaël Franchet
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: