-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-20393][WEBU UI][1.6] Strengthen Spark to prevent XSS vulnerabilities #19528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
d9a45aa
630854a
ffe3e98
cafe18d
cb1609b
76ad8c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,9 @@ | |
| */ | ||
|
|
||
| package org.apache.spark.ui.jobs | ||
|
|
||
| import javax.servlet.http.HttpServletRequest | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, I'm not sure if this back-port is correct. This file's change doesn't look like it does anything and I don't see this change in the original: https://github.com/apache/spark/pull/17686/files
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will look into this...
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, will remove. |
||
| import org.apache.spark.scheduler.SchedulingMode | ||
| import org.apache.spark.ui.{SparkUI, SparkUITab} | ||
| import org.apache.spark.ui.{SparkUI, SparkUITab, UIUtils} | ||
|
|
||
| /** Web UI showing progress status of all jobs in the given SparkContext. */ | ||
| private[ui] class JobsTab(parent: SparkUI) extends SparkUITab(parent, "jobs") { | ||
|
|
@@ -33,4 +33,5 @@ private[ui] class JobsTab(parent: SparkUI) extends SparkUITab(parent, "jobs") { | |
|
|
||
| attachPage(new AllJobsPage(this)) | ||
| attachPage(new JobPage(this)) | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,7 +173,7 @@ def __init__(self, weights, intercept, numFeatures, numClasses): | |
| self._dataWithBiasSize = None | ||
| self._weightsMatrix = None | ||
| else: | ||
| self._dataWithBiasSize = self._coeff.size / (self._numClasses - 1) | ||
| self._dataWithBiasSize = self._coeff.size // (self._numClasses - 1) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nor this?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to apply this to get past a python unit test failure. My assumption is that the NewSparkPullRequestBuilder is on a different version of numpy than when the Spark 1.6 branch was last built. The current python unit test failure looks like it has to do with a novel version of SciPy.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already fixed in the 2.0 branch, btw. Just was never applied to 1.6. [SPARK-20862] |
||
| self._weightsMatrix = self._coeff.toArray().reshape(self._numClasses - 1, | ||
| self._dataWithBiasSize) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed?