You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Laird Nelson (JIRA)" <ji...@apache.org> on 2010/02/24 21:17:27 UTC

[jira] Created: (OPENJPA-1534) JDBCConfigurationImpl.clone() butchers passwords

JDBCConfigurationImpl.clone() butchers passwords
------------------------------------------------

                 Key: OPENJPA-1534
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1534
             Project: OpenJPA
          Issue Type: Bug
    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.


[jira] Updated: (OPENJPA-1534) JDBCConfigurationImpl.clone() butchers passwords

Posted by "Laird Nelson (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Assigned: (OPENJPA-1534) JDBCConfigurationImpl.clone() butchers passwords

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis reassigned OPENJPA-1534:
------------------------------------

    Assignee: Rick Curtis

> 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
>            Assignee: Rick Curtis
>
> 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.


[jira] Closed: (OPENJPA-1534) JDBCConfigurationImpl.clone() butchers passwords

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis closed OPENJPA-1534.
--------------------------------

    Resolution: Not A Problem

Closing this JIRA as this appears to be working as intended. Please re-open if we're missing some use case.

> 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
>            Assignee: Rick Curtis
>
> 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.


[jira] Commented: (OPENJPA-1534) JDBCConfigurationImpl.clone() butchers passwords

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890045#action_12890045 ] 

Rick Curtis commented on OPENJPA-1534:
--------------------------------------

It appears from an OpenJPA point of view we are working properly. Can you tell me why you are trying to clone the configuration? 

This behavior was added by OPENJPA-1332.


> 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
>            Assignee: Rick Curtis
>
> 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.