GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/21644
[SPARK-24660][SHS] Show correct error pages when downloading logs
## What changes were proposed in this pull request?
SHS is showing bad errors when trying to download logs is not successful.
This may happen because the requested application doesn't exist or the user
doesn't have permissions for it, for instance.
The PR fixes the response when errors occur, so that they are displayed
properly.
## How was this patch tested?
manual tests
**Before the patch:**
1. Unauthorized user

2. Non-existing application

**After the patch**
1. Unauthorized user

2. Non-existing application

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-24660
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21644.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21644
----
commit 8b26a5359e9d759668d6608ebf13952d4fa088c7
Author: Marco Gaido <marcogaido91@...>
Date: 2018-06-26T14:01:28Z
[SPARK-24660][SHS] Show correct error pages when downloading logs
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]