jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Modello
  • MODELLO-176

Strict mode does not detect problems when data fields are encoded as XML attributes

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.2
  • Component/s: modello-plugin-xpp3
  • Labels:
    None
  • Complexity:
    Intermediate

Description

For fields with xml.attribute="true" the generated parser does not throw a validation error when a required attribute is missing nor when an unknown attribute is present. Run "mvn test" on the attached demo project for an illustration.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    modello-strict-attributes.zip
    07/Feb/09 10:31 AM
    2 kB
    Benjamin Bentmann
    1. XML File
      modello-strict-attributes\pom.xml 2 kB
    2. File
      modello-strict-attributes\src\main\mdo\test.mdo 0.9 kB
    3. Java Source File
      modello-strict-attributes\src\test\java\ParserTest.java 1 kB
    4. XML File
      modello-strict-attributes\src\test\resources\bad-1.xml 0.1 kB
    5. XML File
      modello-strict-attributes\src\test\resources\bad-2.xml 0.1 kB
    Download Zip
    Show
    Zip Archive
    modello-strict-attributes.zip
    07/Feb/09 10:31 AM
    2 kB
    Benjamin Bentmann

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MODELLO-227 Strict mode does not detect problems when data fields are encoded as XML attributes

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Bug - A problem which impairs or prevents the functions of the product. MODELLO-44 Modello XPP3 Reader does not honor <required>true</required> in model.

  • Major - Major loss of function.
  • Reopened - This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.
relates to

Bug - A problem which impairs or prevents the functions of the product. MODELLO-225 "required" field descriptor not honoured

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Herve Boutemy added a comment - 02/Jan/10 10:22 AM

I just made strict parsing fail for invalid attributes in r1326

for required attributes, the problem is wider than attributes: I just had a look and discovered that nothing was done with required fields in any plugin, either elements or attributes, then opened MODELLO-225 to track this issue

Show
Herve Boutemy added a comment - 02/Jan/10 10:22 AM I just made strict parsing fail for invalid attributes in r1326 for required attributes, the problem is wider than attributes: I just had a look and discovered that nothing was done with required fields in any plugin, either elements or attributes, then opened MODELLO-225 to track this issue
Hide
Permalink
Herve Boutemy added a comment - 09/Jan/10 5:00 PM

added strictXmlAttributes model default value (true by default) in r1351 to be able to disable strict XML attributes checking

Show
Herve Boutemy added a comment - 09/Jan/10 5:00 PM added strictXmlAttributes model default value (true by default) in r1351 to be able to disable strict XML attributes checking

People

  • Assignee:
    Herve Boutemy
    Reporter:
    Benjamin Bentmann
Vote (0)
Watch (1)

Dates

  • Created:
    07/Feb/09 10:31 AM
    Updated:
    09/Jan/10 5:00 PM
    Resolved:
    02/Jan/10 10:22 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.