Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-360

'content/download' route should throw 404 if params are invalid

    XMLWordPrintable

Details

    Description

      If one of the URL params is invalid (so string instead of int) we would receive a 500 exception. It would be a good practice to throw 404 in every case, like in the case of previewing content in the Back Office or similar when one param doesn't validate.

      Steps to reproduce:

      1. Go to any of the following URLs:
        /content/download/foo/bar
        /content/download/123aaa/bar

      Result:
      500 exception is thrown.

      Expected result:
      404 exception is thrown.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bartlomiej.wajda@ibexa.co Bartłomiej Wajda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: