Skip to content

Conversation

@vanzin
Copy link
Contributor

@vanzin vanzin commented Jan 26, 2017

The redirect handler was installed only for the root of the server;
any other context ended up being served directly through the HTTP
port. Since every sub page (e.g. application UIs in the history
server) is a separate servlet context, this meant that everything
but the root was accessible via HTTP still.

The change adds separate names to each connector, and binds contexts
to specific connectors so that content is only served through the
HTTPS connector when it's enabled. In that case, the only thing that
binds to the HTTP connector is the redirect handler.

Tested with new unit tests and by checking a live history server.

(cherry picked from commit d3dcb63)

The redirect handler was installed only for the root of the server;
any other context ended up being served directly through the HTTP
port. Since every sub page (e.g. application UIs in the history
server) is a separate servlet context, this meant that everything
but the root was accessible via HTTP still.

The change adds separate names to each connector, and binds contexts
to specific connectors so that content is only served through the
HTTPS connector when it's enabled. In that case, the only thing that
binds to the HTTP connector is the redirect handler.

Tested with new unit tests and by checking a live history server.

Author: Marcelo Vanzin <[email protected]>

Closes apache#16582 from vanzin/SPARK-19220.

(cherry picked from commit d3dcb63)
@SparkQA
Copy link

SparkQA commented Jan 26, 2017

Test build #72031 has finished for PR 16711 at commit b3959ed.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor Author

vanzin commented Jan 26, 2017

retest this please

@SparkQA
Copy link

SparkQA commented Jan 27, 2017

Test build #72049 has finished for PR 16711 at commit b3959ed.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor Author

vanzin commented Jan 27, 2017

Merging to 2.1 (and 2.0 if no conflicts).

asfgit pushed a commit that referenced this pull request Jan 27, 2017
…h-2.1)

The redirect handler was installed only for the root of the server;
any other context ended up being served directly through the HTTP
port. Since every sub page (e.g. application UIs in the history
server) is a separate servlet context, this meant that everything
but the root was accessible via HTTP still.

The change adds separate names to each connector, and binds contexts
to specific connectors so that content is only served through the
HTTPS connector when it's enabled. In that case, the only thing that
binds to the HTTP connector is the redirect handler.

Tested with new unit tests and by checking a live history server.

(cherry picked from commit d3dcb63)

Author: Marcelo Vanzin <[email protected]>

Closes #16711 from vanzin/SPARK-19220_2.1.
@vanzin
Copy link
Contributor Author

vanzin commented Jan 27, 2017

Didn't merge to 2.0.

@vanzin vanzin closed this Jan 27, 2017
@vanzin vanzin deleted the SPARK-19220_2.1 branch January 27, 2017 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants