You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/04/21 20:57:22 UTC

[jira] Created: (WSCOMMONS-326) Axiom Is Not Preserving an Attribute's Type

Axiom Is Not Preserving an Attribute's Type
-------------------------------------------

                 Key: WSCOMMONS-326
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-326
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


Background:
An Attribute has a prefix, local name, prefix, value and type.
The type should be one of the following: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION"
(see http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/Attributes.html#getType(int))
The default is "CDATA" (not null):

Proposed Solution:
Add getType and setType on the OMAttribute interface.  The default should be "CDATA".
Implement getType/setType on the OMAttributeImpl classes.
Implement OMStAXWrapper.getAttributeType(...) correctly....currently there is a TODO and the method returns null.

Impact:
This bug was found in a conversion between StAX and SAX in side of JAXB.  The missing implementation in OMStAXWrapper resulted in a NPE in the SAX startElement code.




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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Assigned: (WSCOMMONS-326) Axiom Is Not Preserving an Attribute's Type

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

Rich Scheuerle reassigned WSCOMMONS-326:
----------------------------------------

    Assignee: Roy A. Wood Jr.  (was: Rich Scheuerle)

> Axiom Is Not Preserving an Attribute's Type
> -------------------------------------------
>
>                 Key: WSCOMMONS-326
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-326
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>
> Background:
> An Attribute has a prefix, local name, prefix, value and type.
> The type should be one of the following: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION"
> (see http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/Attributes.html#getType(int))
> The default is "CDATA" (not null):
> Proposed Solution:
> Add getType and setType on the OMAttribute interface.  The default should be "CDATA".
> Implement getType/setType on the OMAttributeImpl classes.
> Implement OMStAXWrapper.getAttributeType(...) correctly....currently there is a TODO and the method returns null.
> Impact:
> This bug was found in a conversion between StAX and SAX in side of JAXB.  The missing implementation in OMStAXWrapper resulted in a NPE in the SAX startElement code.

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


[jira] Commented: (WSCOMMONS-326) Axiom Is Not Preserving an Attribute's Type

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636126#action_12636126 ] 

Raymond Feng commented on WSCOMMONS-326:
----------------------------------------

Hi,

The fix was committed on 04/23/2008 in trunk. But it is not picked by the AXIOM 1.2.7 release. Any idea?

https://svn.apache.org/repos/asf/webservices/commons/tags/axiom/1.2.7/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMStAXWrapper.java

> Axiom Is Not Preserving an Attribute's Type
> -------------------------------------------
>
>                 Key: WSCOMMONS-326
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-326
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>
> Background:
> An Attribute has a prefix, local name, prefix, value and type.
> The type should be one of the following: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION"
> (see http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/Attributes.html#getType(int))
> The default is "CDATA" (not null):
> Proposed Solution:
> Add getType and setType on the OMAttribute interface.  The default should be "CDATA".
> Implement getType/setType on the OMAttributeImpl classes.
> Implement OMStAXWrapper.getAttributeType(...) correctly....currently there is a TODO and the method returns null.
> Impact:
> This bug was found in a conversion between StAX and SAX in side of JAXB.  The missing implementation in OMStAXWrapper resulted in a NPE in the SAX startElement code.

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


[jira] Commented: (WSCOMMONS-326) Axiom Is Not Preserving an Attribute's Type

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591788#action_12591788 ] 

Roy A. Wood Jr. commented on WSCOMMONS-326:
-------------------------------------------

Provided the following changes:

1. Added a test case for OMAttribute which checks for default value
2. Added setters/getters for 'type' on OMAttribute interface and all implementations
3. Implemented getAttributeType where necessary

> Axiom Is Not Preserving an Attribute's Type
> -------------------------------------------
>
>                 Key: WSCOMMONS-326
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-326
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>
> Background:
> An Attribute has a prefix, local name, prefix, value and type.
> The type should be one of the following: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION"
> (see http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/Attributes.html#getType(int))
> The default is "CDATA" (not null):
> Proposed Solution:
> Add getType and setType on the OMAttribute interface.  The default should be "CDATA".
> Implement getType/setType on the OMAttributeImpl classes.
> Implement OMStAXWrapper.getAttributeType(...) correctly....currently there is a TODO and the method returns null.
> Impact:
> This bug was found in a conversion between StAX and SAX in side of JAXB.  The missing implementation in OMStAXWrapper resulted in a NPE in the SAX startElement code.

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


[jira] Resolved: (WSCOMMONS-326) Axiom Is Not Preserving an Attribute's Type

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

Rich Scheuerle resolved WSCOMMONS-326.
--------------------------------------

    Resolution: Fixed

651062

> Axiom Is Not Preserving an Attribute's Type
> -------------------------------------------
>
>                 Key: WSCOMMONS-326
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-326
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>
> Background:
> An Attribute has a prefix, local name, prefix, value and type.
> The type should be one of the following: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION"
> (see http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/Attributes.html#getType(int))
> The default is "CDATA" (not null):
> Proposed Solution:
> Add getType and setType on the OMAttribute interface.  The default should be "CDATA".
> Implement getType/setType on the OMAttributeImpl classes.
> Implement OMStAXWrapper.getAttributeType(...) correctly....currently there is a TODO and the method returns null.
> Impact:
> This bug was found in a conversion between StAX and SAX in side of JAXB.  The missing implementation in OMStAXWrapper resulted in a NPE in the SAX startElement code.

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