You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nobuaki Sukegawa (Jira)" <ji...@apache.org> on 2023/10/09 05:23:00 UTC

[jira] [Created] (SPARK-45468) Add option to use path without hostname for redirects

Nobuaki Sukegawa created SPARK-45468:
----------------------------------------

             Summary: Add option to use path without hostname for redirects
                 Key: SPARK-45468
                 URL: https://issues.apache.org/jira/browse/SPARK-45468
             Project: Spark
          Issue Type: Improvement
          Components: Web UI
    Affects Versions: 3.5.0
            Reporter: Nobuaki Sukegawa


Currently, proxies can be made transparent for hyperlinks in Spark web UIs with spark.ui.proxyRoot or X-Forwarded-Context header. However, HTTP redirects (such as job/stage kill) currently requires explicit spark.ui.proxyRedirectUri for handling proxy. This is not ideal as proxy hostname may not be known at the time configuring Spark apps.

This can be mitigated by using path without hostname (/jobs/, not https://example.com/jobs/). Then redirects behavior would be basically the same way as other hyperlinks.

While hostname was originally required in RFC 2616 in 1999, since RFC 7231 in 2014 hostname can be formally omitted as most browsers already supported it (it is rather hard to find any browser that doesn't support it).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org