ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Roper (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IVY-1480) IvySettings treats system properties as if they are all strings
Date Wed, 30 Jul 2014 07:53:38 GMT
James Roper created IVY-1480:
--------------------------------

             Summary: IvySettings treats system properties as if they are all strings
                 Key: IVY-1480
                 URL: https://issues.apache.org/jira/browse/IVY-1480
             Project: Ivy
          Issue Type: Bug
            Reporter: James Roper
            Priority: Minor


System.getProperties is a global map that anything that uses it must be very careful with,
not making any assumptions about anything else that uses it.  It is possible to put non String
values into it, and in fact it seems that Properties was designed to support this, seeing
as there exists methods such as stringPropertyNames, which only returns properties whose values
are strings.

IvySettings.addAllVariables however assumes that all property values are Strings, so anything
that has put a non string value into the global system properties breaks ivy.  addAllVariables
should, just as System.getProperty does, check if a value is an instance of String, and only
handle it if it is, otherwise treat it as if it doesn't exist.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message