Apache JDO Project - [jira] Updated: (JDO-544) NullPointerException in JDOImplHelper if

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > October 2007 > [jira] Updated: (JDO-544) NullPointerException in JDOImplHelper if





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Updated: (JDO-544) NullPointerException in JDOImplHelper if
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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com