You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by sarutak <gi...@git.apache.org> on 2014/10/24 12:11:58 UTC

[GitHub] spark pull request: [SPARK-4075] [Deploy] Jar url validation is no...

GitHub user sarutak opened a pull request:

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

    [SPARK-4075] [Deploy] Jar url validation is not enough for Jar file

    In deploy.ClientArguments.isValidJarUrl, the url is checked as follows.
    
        def isValidJarUrl(s: String): Boolean = s.matches("(.+):(.+)jar")
    
    So, it allows like 'hdfs:file.jar' (no authority).


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

    $ git pull https://github.com/sarutak/spark uri-syntax-check-improvement

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

    https://github.com/apache/spark/pull/2925.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 #2925
    
----
commit cf06173423300f1a63dc9b7e84d7efd70c0153d0
Author: Kousuke Saruta <sa...@oss.nttdata.co.jp>
Date:   2014-10-24T09:59:38Z

    Improved URI syntax checking

----


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

Posted by JoshRosen <gi...@git.apache.org>.
Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/2925#issuecomment-63248857
  
    It appears that this commit caused a serious regression in master and the current 1.1.1. release candidate: https://issues.apache.org/jira/browse/SPARK-4434


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

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

    https://github.com/apache/spark/pull/2925#issuecomment-60368972
  
      [Test build #22134 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/22134/consoleFull) for   PR 2925 at commit [`cf06173`](https://github.com/apache/spark/commit/cf06173423300f1a63dc9b7e84d7efd70c0153d0).
     * This patch merges cleanly.


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

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

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


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

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

    https://github.com/apache/spark/pull/2925#issuecomment-60374884
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/22134/
    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: [SPARK-4075] [Deploy] Jar url validation is no...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2925#issuecomment-63359576
  
    Here I'll do it myself. Thanks for the PR


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2925#discussion_r19361318
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/ClientSuite.scala ---
    @@ -29,6 +29,12 @@ class ClientSuite extends FunSuite with Matchers {
         ClientArguments.isValidJarUrl("hdfs://someHost:1234/foo") should be (false)
         ClientArguments.isValidJarUrl("/missing/a/protocol/jarfile.jar") should be (false)
         ClientArguments.isValidJarUrl("not-even-a-path.jar") should be (false)
    +
    +    // No authority
    +    ClientArguments.isValidJarUrl("hdfs:someHost:1234/jarfile.jar") should be (false)
    +
    +    // Invalid syntax
    +    ClientArguments.isValidJarUrl("hdfs:")should be (false)
    --- End diff --
    
    space before should, but I'll fix this when I merge


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

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

    https://github.com/apache/spark/pull/2925#issuecomment-60374877
  
      [Test build #22134 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/22134/consoleFull) for   PR 2925 at commit [`cf06173`](https://github.com/apache/spark/commit/cf06173423300f1a63dc9b7e84d7efd70c0153d0).
     * 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 pull request: [SPARK-4075] [Deploy] Jar url validation is no...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2925#issuecomment-60442039
  
    Yeah LGTM I'm merging this thanks.


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/2925#issuecomment-60371056
  
    +1 that's much more flexible and likely to catch syntax errors early.


---
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: [SPARK-4075] [Deploy] Jar url validation is no...

Posted by sarutak <gi...@git.apache.org>.
Github user sarutak commented on the pull request:

    https://github.com/apache/spark/pull/2925#issuecomment-63249284
  
    Ah, O.K. I'll revert this for master and 1.1.


---
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