[ https://issues.apache.org/jira/browse/SPARK-12186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Or updated SPARK-12186: ------------------------------ Target Version/s: 1.6.1, 2.0.0 (was: 1.6.0) > stage web URI will redirect to the wrong location if it is the first URI from > the application to be requested from the history server > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: SPARK-12186 > URL: https://issues.apache.org/jira/browse/SPARK-12186 > Project: Spark > Issue Type: Bug > Components: Web UI > Affects Versions: 1.5.1 > Reporter: Rohit Agarwal > Assignee: Rohit Agarwal > Priority: Minor > Fix For: 1.6.1, 2.0.0 > > > In the history server when we open an application link for the first time, it > loads the app and registers the app UI and sends a redirect to the URI that > was requested. > The code to send the redirect is: > {{res.sendRedirect(res.encodeRedirectURL(req.getRequestURI()))}} > However {{req.getRequestURI()}} is not the complete URI that was requested, > it doesn't contain the query string. > Stage URIs are of the following form: > http://localhost:18080/history/application_1449188824095_0001/stages/stage/?id=0&attempt=0 > When such a URI is *the first URI from the application to be requested*, it > redirects to a URI like: > http://localhost:18080/history/application_1449188824095_0001/stages/stage/ > which errors with > {code} > HTTP ERROR 400 > Problem accessing /history/application_1449188824095_0001/stages/stage/. > Reason: > requirement failed: Missing id parameter > Powered by Jetty:// > {code} > This is not a frequent occurrence because you usually navigate to the stage > URI after you have navigated to some other URI belonging to the application > and then this will not happen, only when the stage URI is the first URI from > the application to be requested from the history server will you see this > issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org