cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajani Karuturi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-8551) Findbugs warning in LdapCreateAccountCmd.java
Date Thu, 11 Jun 2015 07:04:00 GMT
Rajani Karuturi created CLOUDSTACK-8551:
-------------------------------------------

             Summary: Findbugs warning in LdapCreateAccountCmd.java
                 Key: CLOUDSTACK-8551
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8551
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
    Affects Versions: 4.5.1, 4.4.0, 4.3.0
            Reporter: Rajani Karuturi
            Assignee: Rajani Karuturi
             Fix For: 4.6.0


LdapCreateAccountCmd.java:146, DMI_INVOKING_TOSTRING_ON_ARRAY, Priority: High

Invocation of toString on org.bouncycastle.util.encoders.Base64.encode(byte[]) in org.apache.cloudstack.api.command.LdapCreateAccountCmd.generatePassword()

The code invokes toString on an array, which will generate a fairly useless result such as
[C@16f0472. Consider using Arrays.toString to convert the array into a readable String that
gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12. 



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

Mime
View raw message