| Craig Russell (JIRA) 2007-10-09, 7:11 pm |
|
[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]
Craig Russell updated JDO-544:
------------------------------
Attachment: jdo-544.patch
Please review this patch. It adds a security call to the DateFormat.getDateTimeInstance call.
Two things should be different with this patch:
1. If security is enabled, and the proper permissions are set for JDOImplHelper, everything should work as before.
2. If security is enabled, and permissions are not set for JDOImplHelper, the date formatter should be a simple "short format" formatter.
[vbcol=seagreen]
> NullPointerException in JDOImplHelper if running with security manager enabled
> ------------------------------------------------------------------------------
>
> Key: JDO-544
> URL: https://issues.apache.org/jira/browse/JDO-544
> Project: JDO
> Issue Type: Bug
> Components: api2
> Reporter: Erik Bengtson
> Assignee: Craig Russell
> Priority: Minor
> Attachments: jdo-544.patch
>
>
> --- Craig says:
> Hi Erik,
> Actually, this is a bug in JDOImplHelper. It is missing a
> doPrivileged around calling getDateTimeInstance.
> The permissions you mention should be assigned to the JDO jar, if
> needed at all. We need to look at the implementation here and decide
> if getDateTimeInstance is really needed or if there is some other way
> to get this functionality.
> Can you please file a JIRA?
> Thanks,
> Craig
> On Oct 8, 2007, at 1:25 PM, Erik Bengtson wrote:
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|