Commons Digester
  1. Commons Digester
  2. DIGESTER-124

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Labels:
      None
    • 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

      Description

      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.

      1. tryDigesterConfigLimit.tgz
        4 kB
        Ken Tanaka
      2. TryParser.java
        1 kB
        Simon Kitching

        Activity

        Simon Kitching made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Invalid [ 6 ]
        Simon Kitching made changes -
        Attachment TryParser.java [ 12383696 ]
        Ken Tanaka made changes -
        Field Original Value New Value
        Attachment tryDigesterConfigLimit.tgz [ 12383057 ]
        Ken Tanaka created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Ken Tanaka
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development