You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by vanzin <gi...@git.apache.org> on 2017/01/26 18:01:05 UTC

[GitHub] spark pull request #16711: [SPARK-19220][UI] Make redirection to HTTPS apply...

GitHub user vanzin opened a pull request:

    https://github.com/apache/spark/pull/16711

    [SPARK-19220][UI] Make redirection to HTTPS apply to all URIs. (branch-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 d3dcb63b9709a34337327be9b7d3705698716077)


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vanzin/spark SPARK-19220_2.1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/16711.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 #16711
    
----
commit b3959edcf79d21323ec9e107302a401730795cff
Author: Marcelo Vanzin <va...@cloudera.com>
Date:   2017-01-26T08:24:44Z

    [SPARK-19220][UI] Make redirection to HTTPS apply to all URIs.
    
    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 <va...@cloudera.com>
    
    Closes #16582 from vanzin/SPARK-19220.
    
    (cherry picked from commit d3dcb63b9709a34337327be9b7d3705698716077)

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    **[Test build #72031 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/72031/testReport)** for PR 16711 at commit [`b3959ed`](https://github.com/apache/spark/commit/b3959edcf79d21323ec9e107302a401730795cff).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72031/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    Merging to 2.1 (and 2.0 if no conflicts).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    **[Test build #72031 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/72031/testReport)** for PR 16711 at commit [`b3959ed`](https://github.com/apache/spark/commit/b3959edcf79d21323ec9e107302a401730795cff).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    Didn't merge to 2.0.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72049/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #16711: [SPARK-19220][UI] Make redirection to HTTPS apply...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin closed the pull request at:

    https://github.com/apache/spark/pull/16711


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    **[Test build #72049 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/72049/testReport)** for PR 16711 at commit [`b3959ed`](https://github.com/apache/spark/commit/b3959edcf79d21323ec9e107302a401730795cff).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    **[Test build #72049 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/72049/testReport)** for PR 16711 at commit [`b3959ed`](https://github.com/apache/spark/commit/b3959edcf79d21323ec9e107302a401730795cff).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    retest this please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #16711: [SPARK-19220][UI] Make redirection to HTTPS apply to all...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/16711
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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