[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability

2016-10-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15563379#comment-15563379
 ] 

ASF subversion and git services commented on OPENJPA-2672:
--

Commit 1764177 from [~fyrewyld] in branch 'openjpa/branches/2.2.x'
[ https://svn.apache.org/r1764177 ]

OPENJPA-2672: ConfigurationImpl.loadGlobals() has 
java.util.ConcurrentModificationException vulnerability

> ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException 
> vulnerability
> ---
>
> Key: OPENJPA-2672
> URL: https://issues.apache.org/jira/browse/OPENJPA-2672
> Project: OpenJPA
>  Issue Type: Bug
>  Components: lib
>Affects Versions: 2.2.3
>Reporter: Jody Grassel
>Assignee: Jody Grassel
> Attachments: OPENJPA_22X-2672.patch
>
>
> The following block in the loadGlobals() method:
> // let system properties override other globals
> try {
> fromProperties(new HashMap(
> AccessController.doPrivileged(
> J2DoPrivHelper.getPropertiesAction(;
> retrieves a Properties object from System.getProperties(), which is passed to 
> HashMap's ctor.  The ctor interacts with an enumerator associated with the 
> Properties object to populate the new HashMap instance.  However, if another 
> thread mutates the JVM's System Properties, it can result in a 
> ConcurrentModificationException as observed below:
> Caused by: java.util.ConcurrentModificationException
> at java.util.Hashtable$Enumerator.next(Hashtable.java:1256)
> at java.util.HashMap.putAllForCreate(HashMap.java:566)
> at java.util.HashMap.(HashMap.java:310)
> at 
> org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability

2016-10-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15563008#comment-15563008
 ] 

ASF subversion and git services commented on OPENJPA-2672:
--

Commit 1764159 from [~fyrewyld] in branch 'openjpa/branches/2.2.x'
[ https://svn.apache.org/r1764159 ]

OPENJPA-2672: ConfigurationImpl.loadGlobals() has 
java.util.ConcurrentModificationException vulnerability

> ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException 
> vulnerability
> ---
>
> Key: OPENJPA-2672
> URL: https://issues.apache.org/jira/browse/OPENJPA-2672
> Project: OpenJPA
>  Issue Type: Bug
>  Components: lib
>Affects Versions: 2.2.3
>Reporter: Jody Grassel
>Assignee: Jody Grassel
> Attachments: OPENJPA_22X-2672.patch
>
>
> The following block in the loadGlobals() method:
> // let system properties override other globals
> try {
> fromProperties(new HashMap(
> AccessController.doPrivileged(
> J2DoPrivHelper.getPropertiesAction(;
> retrieves a Properties object from System.getProperties(), which is passed to 
> HashMap's ctor.  The ctor interacts with an enumerator associated with the 
> Properties object to populate the new HashMap instance.  However, if another 
> thread mutates the JVM's System Properties, it can result in a 
> ConcurrentModificationException as observed below:
> Caused by: java.util.ConcurrentModificationException
> at java.util.Hashtable$Enumerator.next(Hashtable.java:1256)
> at java.util.HashMap.putAllForCreate(HashMap.java:566)
> at java.util.HashMap.(HashMap.java:310)
> at 
> org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability

2016-10-10 Thread Jody Grassel (JIRA)

 [ 
https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jody Grassel updated OPENJPA-2672:
--
Attachment: OPENJPA_22X-2672.patch

> ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException 
> vulnerability
> ---
>
> Key: OPENJPA-2672
> URL: https://issues.apache.org/jira/browse/OPENJPA-2672
> Project: OpenJPA
>  Issue Type: Bug
>  Components: lib
>Affects Versions: 2.2.3
>Reporter: Jody Grassel
>Assignee: Jody Grassel
> Attachments: OPENJPA_22X-2672.patch
>
>
> The following block in the loadGlobals() method:
> // let system properties override other globals
> try {
> fromProperties(new HashMap(
> AccessController.doPrivileged(
> J2DoPrivHelper.getPropertiesAction(;
> retrieves a Properties object from System.getProperties(), which is passed to 
> HashMap's ctor.  The ctor interacts with an enumerator associated with the 
> Properties object to populate the new HashMap instance.  However, if another 
> thread mutates the JVM's System Properties, it can result in a 
> ConcurrentModificationException as observed below:
> Caused by: java.util.ConcurrentModificationException
> at java.util.Hashtable$Enumerator.next(Hashtable.java:1256)
> at java.util.HashMap.putAllForCreate(HashMap.java:566)
> at java.util.HashMap.(HashMap.java:310)
> at 
> org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability

2016-10-10 Thread Jody Grassel (JIRA)
Jody Grassel created OPENJPA-2672:
-

 Summary: ConfigurationImpl.loadGlobals() has 
java.util.ConcurrentModificationException vulnerability
 Key: OPENJPA-2672
 URL: https://issues.apache.org/jira/browse/OPENJPA-2672
 Project: OpenJPA
  Issue Type: Bug
  Components: lib
Affects Versions: 2.2.3
Reporter: Jody Grassel
Assignee: Jody Grassel


The following block in the loadGlobals() method:

// let system properties override other globals
try {
fromProperties(new HashMap(
AccessController.doPrivileged(
J2DoPrivHelper.getPropertiesAction(;

retrieves a Properties object from System.getProperties(), which is passed to 
HashMap's ctor.  The ctor interacts with an enumerator associated with the 
Properties object to populate the new HashMap instance.  However, if another 
thread mutates the JVM's System Properties, it can result in a 
ConcurrentModificationException as observed below:

Caused by: java.util.ConcurrentModificationException
at java.util.Hashtable$Enumerator.next(Hashtable.java:1256)
at java.util.HashMap.putAllForCreate(HashMap.java:566)
at java.util.HashMap.(HashMap.java:310)
at 
org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Work started] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability

2016-10-10 Thread Jody Grassel (JIRA)

 [ 
https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on OPENJPA-2672 started by Jody Grassel.
-
> ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException 
> vulnerability
> ---
>
> Key: OPENJPA-2672
> URL: https://issues.apache.org/jira/browse/OPENJPA-2672
> Project: OpenJPA
>  Issue Type: Bug
>  Components: lib
>Affects Versions: 2.2.3
>Reporter: Jody Grassel
>Assignee: Jody Grassel
>
> The following block in the loadGlobals() method:
> // let system properties override other globals
> try {
> fromProperties(new HashMap(
> AccessController.doPrivileged(
> J2DoPrivHelper.getPropertiesAction(;
> retrieves a Properties object from System.getProperties(), which is passed to 
> HashMap's ctor.  The ctor interacts with an enumerator associated with the 
> Properties object to populate the new HashMap instance.  However, if another 
> thread mutates the JVM's System Properties, it can result in a 
> ConcurrentModificationException as observed below:
> Caused by: java.util.ConcurrentModificationException
> at java.util.Hashtable$Enumerator.next(Hashtable.java:1256)
> at java.util.HashMap.putAllForCreate(HashMap.java:566)
> at java.util.HashMap.(HashMap.java:310)
> at 
> org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (OPENJPA-2671) Wrong type mapping for double in HSQLDB

2016-10-10 Thread Andreas Borg (JIRA)
Andreas Borg created OPENJPA-2671:
-

 Summary: Wrong type mapping for double in HSQLDB
 Key: OPENJPA-2671
 URL: https://issues.apache.org/jira/browse/OPENJPA-2671
 Project: OpenJPA
  Issue Type: Bug
  Components: jdbc
Affects Versions: 2.4.1
Reporter: Andreas Borg


Currently, Java type {{double}} is mapped to {{NUMERIC}} for HSQLDB:

{code:title=HSQLDictionary.java, line 82|borderStyle=solid}
   doubleTypeName = "NUMERIC";
{code}

(see 
https://fisheye6.atlassian.com/browse/~tag=2.4.1/openjpa/tags/2.4.1/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java?hb=true).

This seems wrong to me, as HSQLDB's {{NUMERIC}} is not a binary floating point 
type, but represents exact decimal numbers and maps to Java type {{BigDecimal}} 
(see HSQL documentation: 
http://hsqldb.org/doc/2.0/guide/sqlgeneral-chapt.html#sgc_numeric_types). The 
corresponding HSQL type for {{double}} is, according to this manual, {{REAL}}, 
{{FLOAT}} or {{DOUBLE}} (all being equivalent).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)