openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laird Nelson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1534) JDBCConfigurationImpl.clone() butchers passwords
Date Thu, 25 Feb 2010 17:30:27 GMT

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

Laird Nelson updated OPENJPA-1534:
----------------------------------

    Component/s: jdbc

> JDBCConfigurationImpl.clone() butchers passwords
> ------------------------------------------------
>
>                 Key: OPENJPA-1534
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1534
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.0-beta
>            Reporter: Laird Nelson
>
> Cloning a JDBCConfigurationImpl instance results in getConnectionPassword() returning
a bogus password.
> To test, do:
>   final JDBCConfigurationImpl c = new JDBCConfigurationImpl();
>   c.setConnectionPassword("abc");
>   final JDBCConfigurationImpl c2 = (JDBCConfigurationImpl)c.clone();
>   assert c2 != null;
>   assert c2.getConnectionPassword().equals(c.getConnectionPassword()); // this fails

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message