You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Thibaut Martin (JIRA)" <ji...@apache.org> on 2007/03/01 19:20:50 UTC

[jira] Created: (CONFIGURATION-255) DatabaseConfiguration doesn't support List properties (again)

DatabaseConfiguration doesn't support List properties (again)
-------------------------------------------------------------

                 Key: CONFIGURATION-255
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.3
         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle 9i
            Reporter: Thibaut Martin
            Priority: Minor


The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (CONFIGURATION-255) DatabaseConfiguration doesn't support List properties (again)

Posted by "Thibaut Martin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONFIGURATION-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477238 ] 

Thibaut Martin commented on CONFIGURATION-255:
----------------------------------------------

Hello,

Here is my example:

        DatabaseConfiguration configuration = new DatabaseConfiguration
(dataSource, "CONF", "KEY", "VALUE");

        LOG.debug (configuration.isDelimiterParsingDisabled ());       =>
false
        LOG.debug (configuration.getListDelimiter ());                 => ,

        String value = configuration.getString (key);
        LOG.debug (value);                                             =>
a,b,c

        List<String> list = configuration.getList (key);
        LOG.debug (list.size ());                                      => 1
        for (String element: list) {
            LOG.debug (element);                                       =>
a,b,c
        }

  Thibaut



> DatabaseConfiguration doesn't support List properties (again)
> -------------------------------------------------------------
>
>                 Key: CONFIGURATION-255
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle 9i
>            Reporter: Thibaut Martin
>            Priority: Minor
>
> The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (CONFIGURATION-255) DatabaseConfiguration doesn't support List properties (again)

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

Oliver Heger updated CONFIGURATION-255:
---------------------------------------

    Fix Version/s: 1.4
         Assignee: Oliver Heger

Okay, I see the problem now. Will have a look.

> DatabaseConfiguration doesn't support List properties (again)
> -------------------------------------------------------------
>
>                 Key: CONFIGURATION-255
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle 9i
>            Reporter: Thibaut Martin
>         Assigned To: Oliver Heger
>            Priority: Minor
>             Fix For: 1.4
>
>
> The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (CONFIGURATION-255) DatabaseConfiguration doesn't support List properties (again)

Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONFIGURATION-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477088 ] 

Oliver Heger commented on CONFIGURATION-255:
--------------------------------------------

Do you have a concrete example where the getList() method is failing? There is a unit test case that fetches a list, and this test is obviously working.

> DatabaseConfiguration doesn't support List properties (again)
> -------------------------------------------------------------
>
>                 Key: CONFIGURATION-255
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle 9i
>            Reporter: Thibaut Martin
>            Priority: Minor
>
> The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Resolved: (CONFIGURATION-255) DatabaseConfiguration doesn't support List properties (again)

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

Oliver Heger resolved CONFIGURATION-255.
----------------------------------------

    Resolution: Fixed

The problem should be fixed now. I made two changes:
- getProperty() now checks for list delimiters in the values obtained from the database.
- addProperty() temporarily disables delimiter parsing, so that only a single INSERT is performed for a string property whose value contains the delimiter character.

Tests for this behavior have also been added.

Please double-check. Thanks.

> DatabaseConfiguration doesn't support List properties (again)
> -------------------------------------------------------------
>
>                 Key: CONFIGURATION-255
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle 9i
>            Reporter: Thibaut Martin
>         Assigned To: Oliver Heger
>            Priority: Minor
>             Fix For: 1.4
>
>
> The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (CONFIGURATION-255) DatabaseConfiguration doesn't support list delimiters in property values

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

Oliver Heger updated CONFIGURATION-255:
---------------------------------------

    Description: The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration, even if the value of the queried property contains the list delimiter character.  (was: The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration.)
        Summary: DatabaseConfiguration doesn't support list delimiters in property values  (was: DatabaseConfiguration doesn't support List properties (again))

Updated summary and description to better explain the problem.

> DatabaseConfiguration doesn't support list delimiters in property values
> ------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-255
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-255
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Sun Java(TM) System Application Server Platform Edition 9.0, Oracle 9i
>            Reporter: Thibaut Martin
>         Assigned To: Oliver Heger
>            Priority: Minor
>             Fix For: 1.4
>
>
> The getList() and getStringArray() methods always return a one element list/array, when used with DatabaseConfiguration, even if the value of the queried property contains the list delimiter character.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org