Skip to content
Commit 4ca1d4f3 authored by abirembaut's avatar abirembaut Committed by GitHub
Browse files

fix(404): avoid wrong redirection for 404 on resources (#719)

* when the 404 in on a resource (css, js...) and not a page the
redirection to the 404 page should not be attempted. As a result, the
method sendError should only be used for pages. Otherwise we should use
setStatus(404)

* remove duplicate 404 handling

* avoid issue when calling sendError and the response has already been
committed

Covers [RUNTIME-355](https://bonitasoft.atlassian.net/browse/RUNTIME-355)
parent d6ef7d4e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment