sjsxp
  1. sjsxp
  2. SJSXP-5

Incorrect reporting of attributes on START_ELEMENT event.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      5

      Description

      With a particular XML document, there seems to be an issue with the reporting of
      attributes on the START_ELEMENT event.

      Attached is:

      • Sgml.java: the application reproducing the issue.
      • sgml.xml: the XML file where the issue occurs.
      • report.dtd: the DTD for sgml.xml

        Activity

        Hide
        wcordewiner added a comment -

        Created an attachment (id=2)
        Zip file containing Sgml.java, sgml.xml and report.dtd (see issue description).

        Show
        wcordewiner added a comment - Created an attachment (id=2) Zip file containing Sgml.java, sgml.xml and report.dtd (see issue description).
        Hide
        wcordewiner added a comment -

        Some extra clarification:

        Taking into account the DTD declaration, each element with name "para" is
        expected to have a attribute "security". If the attribute isn't declared in the
        XML file, the attribute "security" should be reported with value "u".

        When running the reproducable Sgml.xml, I get as output:

        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 0
        para - nr of attributes: 1
        ----- Attribute #0
        ----- Prefix:
        ----- LocalName: security
        ----- Namespace: null
        ----- Value: c
        Element count: 16
        Done

        Show
        wcordewiner added a comment - Some extra clarification: Taking into account the DTD declaration, each element with name "para" is expected to have a attribute "security". If the attribute isn't declared in the XML file, the attribute "security" should be reported with value "u". When running the reproducable Sgml.xml, I get as output: para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 0 para - nr of attributes: 1 ----- Attribute #0 ----- Prefix: ----- LocalName: security ----- Namespace: null ----- Value: c Element count: 16 Done
        Hide
        Santiago Pericas-Geertsen added a comment -

        I've tried this with the latest SJSXP, and I can't reproduce the problem. Added a new unit test under tests/
        IssueTracker5. Please download the latest and check again.

        Show
        Santiago Pericas-Geertsen added a comment - I've tried this with the latest SJSXP, and I can't reproduce the problem. Added a new unit test under tests/ IssueTracker5. Please download the latest and check again.

          People

          • Assignee:
            sjsxp-issues
            Reporter:
            wcordewiner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: