Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20496

Making a request for a deleted attachment with the wrong rid causes NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 15.0-rc-1
    • 12.10.10, 14.9
    • Old Core
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      • attach a file on any document and then delete it ( not actually relevant )
      • make a request for it from the recycle bin using a non-existent rid parameter in the query string (ex: /xwiki/bin/downloadrev/Sandbox/TestPage1/yourfile.jpg?rev=1.1&rid=144 )

      Expected result:

      • receive a 404 or relevant file not found message

      Actual result:

      • a NullPointerException is displayed

      Attachments

        1. after.png
          194 kB
          Vincent Massol
        2. image-2022-12-21-10-51-18-481.png
          185 kB
          Paul Pantiru

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              ppantiru Paul Pantiru
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: