question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DateTimeZone should load it's provider in an AccessController.doPrivileged block

See original GitHub issue

In elasticsearch we run into a testing issue where due to security manager restrictions the default providers could not be loaded. https://github.com/elastic/elasticsearch/issues/14524 The problem here is really that we can’t grant the jar it’s needed permissions since it doesn’t use a AccessController.doPrivileged block to load the privider in https://github.com/JodaOrg/joda-time/blob/master/src/main/java/org/joda/time/DateTimeZone.java#L483 I am not sure if there are other places where stuff like this is loaded but there might be

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jodastephencommented, May 27, 2016

Done

0reactions
jasontedorcommented, May 27, 2016

Thanks @jodastephen!

Read more comments on GitHub >

github_iconTop Results From Across the Web

AccessController (Java Platform SE 8 ) - Oracle Help Center
When making access control decisions, the checkPermission method stops checking if it reaches a caller that was marked as "privileged" via a doPrivileged...
Read more >
[CI failure] DateHistogramTests, "The datetime zone id 'CET' is ...
Looking at DateTimeZone#forID, it seems like Joda couldn't look up the zone from the internal Provider class that Joda loads at startup and ......
Read more >
java - When should AccessController.doPrivileged() be used?
Agree with Suraj's answer, but thought I'd add a specific example where I've required the use of a privileged block.
Read more >
SEC51-J. Minimize privileged code
This compliant solution moves the call to System.loadLibrary() outside the doPrivileged() block. Doing so allows unprivileged code to perform preliminary ...
Read more >
Diff - platform/libcore - Google Git
Use them. // We have to be able to fetch its value, even if it is private - AccessController.doPrivileged(new PriviAction<Object>(f)); + f.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found