commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Naylor (JIRA)" <>
Subject [jira] Commented: (CONFIGURATION-400) PropertiesConfiguration: Can't disable attribute splitting
Date Tue, 20 Oct 2009 19:40:59 GMT


Lee Naylor commented on CONFIGURATION-400:

I'm having the same issue as the one I cloned this issue from. The only difference is I'm
using PropertiesConfiguration. I'm trying to pass in a sql query which has ',' separating
the different columns i'm selecting.

my property is (all on the same line) ...
db.query = select c.ldc_cnsmr_acnt_num, (select c_p.acnt_validator from cb_cust_prev_validator
c_p where c_p.customer_oid = c.oid AND c_p.acnt_validator != c.ldc_cnsmr_acnt_num AND c_p.effect_date
= (select max(effect_date) from cb_cust_prev_validator c_p2 where c_p2.customer_oid = c_p.customer_oid)),
c.full_name, 'P', 'ACOV', c.addr_validator, c.addr_validator, c.addr_validator from cb_customer
c where c.ldc_cnsmr_acnt_num = '##account_id##'

I've tried ...

When i call isDelimiterParsingDisabled() or getListDelimiter() it shows that the attributes
have been updated, but when i call getString("db.query") it always returns just "select c.ldc_cnsmr_acnt_num"

> PropertiesConfiguration: Can't disable attribute splitting 
> -----------------------------------------------------------
>                 Key: CONFIGURATION-400
>                 URL:
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Format
>    Affects Versions: 1.6
>            Reporter: Lee Naylor
>            Assignee: Oliver Heger
> My XML configuration has the following attribute:
> <some-element some-attribute="&#x0A;&#x0D;" />
> But XML Configuration is trying to split this string and trims it after splitting. I
don't need this behaviour, but setting setDelimiterParsingDisabled() just changing delimeter
to "|" and not disables attribute trimming.
> Need either to disable trimming/splitting if setDelimiterParsingDisabled() is set to
TRUE (incompatible change), or add something like setParseAttributesAsIs() that will prevent
attributes to be trimmed and splitted

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

View raw message