You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ken Tanaka (JIRA)" <ji...@apache.org> on 2008/05/30 00:23:45 UTC

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

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


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
 <toplevel>
     <stringset
     attr1="1]"
     attr2="2]"
     attr3="3]"
     attr4="4]"
     attr5="5]"
     attr6="6]"
     attr7="7]seven"
     attr8="8]!"
     attr9="9]"
     attr10="ten]"
     />
 </toplevel>

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] Commented: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

Posted by "Simon Kitching (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603591#action_12603591 ] 

Simon Kitching commented on DIGESTER-124:
-----------------------------------------

This appears to be a bug in the xml parser bundled with Java, and not a Digester issue.
Attached is a file that just uses raw SAX apis to dump the attribute data, and the same issue appears.

I've had a brief look at the xml spec, and can't see anything that forbids ] inside an attribute. As far as I can see, only "<" and "&" are prohibited.
  http://www.w3.org/TR/2006/REC-xml11-20060816/

So I suggest filing this bug with Sun.

Regards, Simon


> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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] Issue Comment Edited: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

Posted by "Ken Tanaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606492#action_12606492 ] 

kentanaka edited comment on DIGESTER-124 at 6/19/08 12:08 PM:
---------------------------------------------------------------

Simon,

I reported this as a bug to Sun on Monday, I don't know how long it takes for them to check the report out. They (IncidentDaemon@sun.com) said:

Your report has been assigned an internal review ID of 1274504, which is NOT visible on the Sun Developer Network (SDN).

I included the SAX parser test code you sent on to me. Hopefully they will work on this soon.


-Ken


      was (Author: kentanaka):
    Simon,

I reported this as a bug to Sun on Monday, I don't know how long it takes for them to check the report out. They ([1]IncidentDaemon@sun.com) said:

Your report has been assigned an internal review ID of 1274504, which is NOT visible on the Sun Developer Network (SDN).

I included the SAX parser test code you sent on to me. Hopefully they will work on this soon.


-Ken

Simon Kitching (JIRA) wrote:
    [ [2]https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605363#action_12605363 ] 

Simon Kitching commented on DIGESTER-124:
-----------------------------------------

That was a suggestion for you, Ken. It's your discovery :-)

Feel free to attach the example I wrote. 

If you can't be bothered, then I might get around to filing this myself. Eventually. But it is no easier for me to raise a bug with Sun than it is for you.



  
xml attribute values containing "]" character incorrect after 7th occurrence
----------------------------------------------------------------------------

                Key: DIGESTER-124
                URL: [3]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
 <toplevel>
     <stringset
     attr1="1]"
     attr2="2]"
     attr3="3]"
     attr4="4]"
     attr5="5]"
     attr6="6]"
     attr7="7]seven"
     attr8="8]!"
     attr9="9]"
     attr10="ten]"
     />
 </toplevel>
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.
    

  

-- 
= Enterprise Data Services Division ===============
= [4]Ken.Tanaka@noaa.gov =============================
----------------------------------------------------------------------------------------
[1] mailto:IncidentDaemon@sun.com
[2] https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605363#action_12605363
[3] https://issues.apache.org/jira/browse/DIGESTER-124
[4] mailto:Ken.Tanaka@noaa.gov

  
> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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

Posted by "Simon Kitching (JIRA)" <ji...@apache.org>.
     [ 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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] Commented: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

Posted by "Ken Tanaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606492#action_12606492 ] 

Ken Tanaka commented on DIGESTER-124:
-------------------------------------

Simon,

I reported this as a bug to Sun on Monday, I don't know how long it takes for them to check the report out. They ([1]IncidentDaemon@sun.com) said:

Your report has been assigned an internal review ID of 1274504, which is NOT visible on the Sun Developer Network (SDN).

I included the SAX parser test code you sent on to me. Hopefully they will work on this soon.


-Ken

Simon Kitching (JIRA) wrote:
    [ [2]https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605363#action_12605363 ] 

Simon Kitching commented on DIGESTER-124:
-----------------------------------------

That was a suggestion for you, Ken. It's your discovery :-)

Feel free to attach the example I wrote. 

If you can't be bothered, then I might get around to filing this myself. Eventually. But it is no easier for me to raise a bug with Sun than it is for you.



  
xml attribute values containing "]" character incorrect after 7th occurrence
----------------------------------------------------------------------------

                Key: DIGESTER-124
                URL: [3]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
 <toplevel>
     <stringset
     attr1="1]"
     attr2="2]"
     attr3="3]"
     attr4="4]"
     attr5="5]"
     attr6="6]"
     attr7="7]seven"
     attr8="8]!"
     attr9="9]"
     attr10="ten]"
     />
 </toplevel>
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.
    

  

-- 
= Enterprise Data Services Division ===============
= [4]Ken.Tanaka@noaa.gov =============================
----------------------------------------------------------------------------------------
[1] mailto:IncidentDaemon@sun.com
[2] https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605363#action_12605363
[3] https://issues.apache.org/jira/browse/DIGESTER-124
[4] mailto:Ken.Tanaka@noaa.gov


> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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] Issue Comment Edited: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

Posted by "Ken Tanaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605352#action_12605352 ] 

kentanaka edited comment on DIGESTER-124 at 6/19/08 12:09 PM:
---------------------------------------------------------------

Thanks for looking into this Simon. Should I be the one that files a bug 
with Sun? Or was that suggestion for someone else?

-Ken





      was (Author: kentanaka):
    Thanks for looking into this Simon. Should I be the one that files a bug 
with Sun? Or was that suggestion for someone else?

-Ken


-- 
= Enterprise Data Services Division ===============
= Ken.Tanaka@noaa.gov =============================


  
> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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] Commented: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

Posted by "Simon Kitching (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605363#action_12605363 ] 

Simon Kitching commented on DIGESTER-124:
-----------------------------------------

That was a suggestion for you, Ken. It's your discovery :-)

Feel free to attach the example I wrote. 

If you can't be bothered, then I might get around to filing this myself. Eventually. But it is no easier for me to raise a bug with Sun than it is for you.



> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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] Closed: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

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

Simon Kitching closed DIGESTER-124.
-----------------------------------

    Resolution: Invalid

This does appear to be a bug, but it isn't a bug with Digester and there is nothing that Digester can do to work around it.

> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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

Posted by "Ken Tanaka (JIRA)" <ji...@apache.org>.
     [ 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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] Commented: (DIGESTER-124) xml attribute values containing "]" character incorrect after 7th occurrence

Posted by "Ken Tanaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIGESTER-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605352#action_12605352 ] 

Ken Tanaka commented on DIGESTER-124:
-------------------------------------

Thanks for looking into this Simon. Should I be the one that files a bug 
with Sun? Or was that suggestion for someone else?

-Ken


-- 
= Enterprise Data Services Division ===============
= Ken.Tanaka@noaa.gov =============================



> 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
>  <toplevel>
>      <stringset
>      attr1="1]"
>      attr2="2]"
>      attr3="3]"
>      attr4="4]"
>      attr5="5]"
>      attr6="6]"
>      attr7="7]seven"
>      attr8="8]!"
>      attr9="9]"
>      attr10="ten]"
>      />
>  </toplevel>
> 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.