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 "James M Snell (JIRA)" <ji...@apache.org> on 2006/07/14 23:51:14 UTC
[jira] Created: (WSCOMMONS-60) Improper serialization of DTD nodes
Improper serialization of DTD nodes
-----------------------------------
Key: WSCOMMONS-60
URL: http://issues.apache.org/jira/browse/WSCOMMONS-60
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Environment: All
Reporter: James M Snell
Use StAXOMBuilder to parse the Atom feed http://www.xn--8ws00zhy3a.com/feed, which includes the DTD :
<!DOCTYPE feed [
<!ENTITY xhtml "http://www.w3.org/1999/xhtml">
<!ENTITY id "tag:xn--8ws00zhy3a.com,">
]>
Attempt to reserialize the feed and the DTD comes out as:
<!ENTITY xhtml "http://www.w3.org/1999/xhtml">
<!ENTITY id "tag:xn--8ws00zhy3a.com,">
Which is invalid.
Within the Builder, the createDTD method calls parser.getText() to get the content of the DTD. However, parser.getText returns the internal value. So this is a garbage in / garbage out scenario. Axiom is doing the right thing with what it has been given, unfortunately, what it has been given is wrong.
Is this an Axiom bug or a StAX impl bug?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Commented: (WSCOMMONS-60) Improper serialization of DTD
nodes
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSCOMMONS-60?page=comments#action_12421235 ]
Davanum Srinivas commented on WSCOMMONS-60:
-------------------------------------------
Small testcase please?
thanks,
dims
> Improper serialization of DTD nodes
> -----------------------------------
>
> Key: WSCOMMONS-60
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-60
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: James M Snell
>
> Use StAXOMBuilder to parse the Atom feed http://www.xn--8ws00zhy3a.com/feed, which includes the DTD :
> <!DOCTYPE feed [
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> ]>
> Attempt to reserialize the feed and the DTD comes out as:
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> Which is invalid.
> Within the Builder, the createDTD method calls parser.getText() to get the content of the DTD. However, parser.getText returns the internal value. So this is a garbage in / garbage out scenario. Axiom is doing the right thing with what it has been given, unfortunately, what it has been given is wrong.
> Is this an Axiom bug or a StAX impl bug?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Commented: (WSCOMMONS-60) Improper serialization of DTD
nodes
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSCOMMONS-60?page=comments#action_12421242 ]
James M Snell commented on WSCOMMONS-60:
----------------------------------------
This is a problem with the underlying Stax implementation. The reference impl works fine. The woodstox impl doesn't. I haven't tried the Sun impl yet.
> Improper serialization of DTD nodes
> -----------------------------------
>
> Key: WSCOMMONS-60
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-60
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: James M Snell
>
> Use StAXOMBuilder to parse the Atom feed http://www.xn--8ws00zhy3a.com/feed, which includes the DTD :
> <!DOCTYPE feed [
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> ]>
> Attempt to reserialize the feed and the DTD comes out as:
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> Which is invalid.
> Within the Builder, the createDTD method calls parser.getText() to get the content of the DTD. However, parser.getText returns the internal value. So this is a garbage in / garbage out scenario. Axiom is doing the right thing with what it has been given, unfortunately, what it has been given is wrong.
> Is this an Axiom bug or a StAX impl bug?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Resolved: (WSCOMMONS-60) Improper serialization of DTD nodes
Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSCOMMONS-60?page=all ]
Eran Chinthaka resolved WSCOMMONS-60.
-------------------------------------
Resolution: Fixed
According to the last comment, it seems this is not a bug in Axiom but with the underlying StAX implementation. Resolving the issue in Axiom.
> Improper serialization of DTD nodes
> -----------------------------------
>
> Key: WSCOMMONS-60
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-60
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: James M Snell
>
> Use StAXOMBuilder to parse the Atom feed http://www.xn--8ws00zhy3a.com/feed, which includes the DTD :
> <!DOCTYPE feed [
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> ]>
> Attempt to reserialize the feed and the DTD comes out as:
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> Which is invalid.
> Within the Builder, the createDTD method calls parser.getText() to get the content of the DTD. However, parser.getText returns the internal value. So this is a garbage in / garbage out scenario. Axiom is doing the right thing with what it has been given, unfortunately, what it has been given is wrong.
> Is this an Axiom bug or a StAX impl bug?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org