Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
I have Jenkins set up with Project-based Matrix Authorization Strategy and have several custom build views.
If a user attempts to switch to a view that has 1 or more projects that they do not have access to, Chrome brings up an error page with Error 330 (net::ERR_CONTENT_DECODING_FAILED: Unknown Error. Firefox brings up an error page saying "Content Encoding Error".
Expected behavior would be to show no error and only show projects that the user has access to.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
core/src/main/java/hudson/security/AccessDeniedHandlerImpl.java
core/src/main/resources/lib/layout/layout.jelly
http://jenkins-ci.org/commit/jenkins/af59db06f0eba2674fc8338d3ba18335541eae32
Log:
[FIXED JENKINS-15437]
The exception handler ended up adding almost all the headers again,
resulting in a lot of duplicate headers.
Most critically, stapler was adding "Content-Encoding" header twice,
breaking browsers.
(cherry picked from commit d3575548bbd39acdbc0f73533f9078d59828b428)
Conflicts:
changelog.html
core/pom.xml