You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Matcher.java:857)
at scala.util.matching.Regex$Replacement$class.replace(Regex.scala:804)
at scala.util.matching.Regex$MatchIterator$$anon$1.replace(Regex.scala:782)
at scala.util.matching.Regex$$anonfun$replaceAllIn$1.apply(Regex.scala:473)
at scala.util.matching.Regex$$anonfun$replaceAllIn$1.apply(Regex.scala:473)
at scala.collection.Iterator$class.foreach(Iterator.scala:891)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
at scala.util.matching.Regex.replaceAllIn(Regex.scala:473)
at helper.Helper.ReplaceInlineExpressions(Helper.scala:389)
at core.DataPull$$anonfun$main$1.apply$mcV$sp(DataPull.scala:163)
at scala.util.control.Breaks.breakable(Breaks.scala:38)
at core.DataPull$.main(DataPull.scala:154)
at core.DataPull.main(DataPull.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:853)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:928)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:937)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
DataPull line 54:
breakable {
while (json.has("jsoninputfile")) {
valjsonMap= jsonObjectPropertiesToMap(json.getJSONObject("jsoninputfile"))
if (listOfS3Path.contains(jsonMap("s3path"))) {
thrownewException("New json is pointing to same json.")
}
listOfS3Path += jsonMap("s3path")
setAWSCredentials(sparkSession, jsonMap)
json =newJSONObject(
helper.ReplaceInlineExpressions(
helper.InputFileJsonToString(
sparkSession = sparkSession,
jsonObject = json,
inputFileObjectKey ="jsoninputfile"
).getOrElse(""), sparkSession
)
)
}
}
The text was updated successfully, but these errors were encountered:
Describe the bug
I noticed that a password containing a dollar sign
$
would break the injection.Expected behavior
Any character should be allowed.
To Reproduce
In the input file:
MY_SERCRET = 'abc$123'
Errorlog
DataPull
line 54:The text was updated successfully, but these errors were encountered: