Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
Operability
-
Low Hanging Fruit
-
All
-
None
-
Description
This code in ThreadAwareSecurityManager causes issues for embedded cassandra launched from a one-jar or uno-jar.
switch (codesource.getLocation().getProtocol()) { case "file": // All JARs and class files reside on the file system - we can safely // assume that these classes are "good". return true; }
Attaching patch to support protocol of 'jar' as well. AFAICT this won't introduce any added risk for UDF's discussed in CASSANDRA-9402 since a jar (or one/uno jar) must also be on the filesystem.
New code would be (in 2 places):
switch (codesource.getLocation().getProtocol()) { case "jar": case "file": // All JARs and class files reside on the file system - we can safely // assume that these classes are "good". return true; }
Attachments
Attachments
Issue Links
- links to