[jira] Updated: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

2008-06-09 Thread Simon Kitching (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Kitching updated DIGESTER-124:


Attachment: TryParser.java

Show that bad data is provided by a raw sax parser for this specific input file.

> xml attribute values containing "]" character incorrect after 7th occurrence
> 
>
> Key: DIGESTER-124
> URL: https://issues.apache.org/jira/browse/DIGESTER-124
> Project: Commons Digester
>  Issue Type: Bug
>Affects Versions: 1.8
> Environment: Red Hat Enterprise Linux Client release 5.1.
> Linux 2.6.18-53.1.19.el5 #1 SMP Tue Apr 22 03:01:10 EDT 2008 x86_64 x86_64 
> x86_64 GNU/Linux
> java jdk1.5.0_11
>Reporter: Ken Tanaka
> Attachments: tryDigesterConfigLimit.tgz, TryParser.java
>
>
> While configuring a program with regex patterns to inventory filenames to a 
> database, I discovered that after 6 attributes containing the "]" character 
> to a single element, the values are not read reliably.
> this digester_conf.xml
>  
>attr1="1]"
>  attr2="2]"
>  attr3="3]"
>  attr4="4]"
>  attr5="5]"
>  attr6="6]"
>  attr7="7]seven"
>  attr8="8]!"
>  attr9="9]"
>  attr10="ten]"
>  />
>  
> results in output (attr7 has attr8 overlaid, attr9 has attr10 overlaid):
>  String set:
>attr1 =1]
>attr2 =2]
>attr3 =3]
>attr4 =4]
>attr5 =5]
>attr6 =6]
>attr7 =8]!even
>attr8 =8]!
>attr9 =te
>attr10=ten] 
> I used maven 2 to create an executable jar file. The same executable jar run 
> on MacOS 10.4.11, java version "1.5.0_13" gives correct output. 
> This indicates to me that the error may be in some layer lower than digester, 
> but I think it will take a digester developer to isolate the component at 
> fault and file a bug report on the lower level component.

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



[jira] Updated: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

2008-05-29 Thread Ken Tanaka (JIRA)

 [ 
https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ken Tanaka updated DIGESTER-124:


Attachment: tryDigesterConfigLimit.tgz

Example code to illustrate the problem. This is a maven 2 project for linux.

The assembly-assembly.sh is a shortcut command for compiling:
mvn clean assembly:assembly

The run.pl script is a shortcut to typing the execution command:
java -jar target/tryDigesterConfigLimit-1.0-SNAPSHOT-jar-with-dependencies.jar 
src/main/config/digester_conf.xml src/main/config/log4j_conf.xml

> xml attribute values containing "]" character incorrect after 7th occurrence
> 
>
> Key: DIGESTER-124
> URL: https://issues.apache.org/jira/browse/DIGESTER-124
> Project: Commons Digester
>  Issue Type: Bug
>Affects Versions: 1.8
> Environment: Red Hat Enterprise Linux Client release 5.1.
> Linux 2.6.18-53.1.19.el5 #1 SMP Tue Apr 22 03:01:10 EDT 2008 x86_64 x86_64 
> x86_64 GNU/Linux
> java jdk1.5.0_11
>Reporter: Ken Tanaka
> Attachments: tryDigesterConfigLimit.tgz
>
>
> While configuring a program with regex patterns to inventory filenames to a 
> database, I discovered that after 6 attributes containing the "]" character 
> to a single element, the values are not read reliably.
> this digester_conf.xml
>  
>attr1="1]"
>  attr2="2]"
>  attr3="3]"
>  attr4="4]"
>  attr5="5]"
>  attr6="6]"
>  attr7="7]seven"
>  attr8="8]!"
>  attr9="9]"
>  attr10="ten]"
>  />
>  
> results in output (attr7 has attr8 overlaid, attr9 has attr10 overlaid):
>  String set:
>attr1 =1]
>attr2 =2]
>attr3 =3]
>attr4 =4]
>attr5 =5]
>attr6 =6]
>attr7 =8]!even
>attr8 =8]!
>attr9 =te
>attr10=ten] 
> I used maven 2 to create an executable jar file. The same executable jar run 
> on MacOS 10.4.11, java version "1.5.0_13" gives correct output. 
> This indicates to me that the error may be in some layer lower than digester, 
> but I think it will take a digester developer to isolate the component at 
> fault and file a bug report on the lower level component.

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