You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Lucian Holland (JIRA)" <xe...@xml.apache.org> on 2005/01/26 13:12:17 UTC
[jira] Created: (XERCESJ-1039) Target namespaces containing a space cause spurious errors
Target namespaces containing a space cause spurious errors
----------------------------------------------------------
Key: XERCESJ-1039
URL: http://issues.apache.org/jira/browse/XERCESJ-1039
Project: Xerces2-J
Type: Bug
Components: XML Schema Structures
Versions: 2.6.2
Environment: java 1.4 running on linux
Reporter: Lucian Holland
Priority: Minor
In a schema which has a space in the target namespace, references to other components in the schema fail. I believe that this is because the targetNamespace is escaped by the schema loader, but the corresponding prefix binding does not get escaped. As a result the parser thinks that the prefix refers to a different namespace to that of the current schema! The attached schema demonstrates this. Note that it works if you bind a prefix to a pre-escaped version of the namespace. Obviously namespaces containing unescaped spaces are not a great idea, but it would be helpful if Xerces was consistent in its behaviour and failed in a slightly more explicit fashion on this.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Commented: (XERCESJ-1039) Target namespaces containing a space cause spurious errors
Posted by "Lucian Holland (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1039?page=comments#action_58672 ]
Lucian Holland commented on XERCESJ-1039:
-----------------------------------------
Sorry - didn't get round to verifying this until now. All works fine now - thanks for the quick turnaround!
> Target namespaces containing a space cause spurious errors
> ----------------------------------------------------------
>
> Key: XERCESJ-1039
> URL: http://issues.apache.org/jira/browse/XERCESJ-1039
> Project: Xerces2-J
> Type: Bug
> Components: XML Schema Structures
> Versions: 2.6.2
> Environment: java 1.4 running on linux
> Reporter: Lucian Holland
> Assignee: Michael Glavassevich
> Priority: Minor
> Attachments: acme.xsd
>
> In a schema which has a space in the target namespace, references to other components in the schema fail. I believe that this is because the targetNamespace is escaped by the schema loader, but the corresponding prefix binding does not get escaped. As a result the parser thinks that the prefix refers to a different namespace to that of the current schema! The attached schema demonstrates this. Note that it works if you bind a prefix to a pre-escaped version of the namespace. Obviously namespaces containing unescaped spaces are not a great idea, but it would be helpful if Xerces was consistent in its behaviour and failed in a slightly more explicit fashion on this.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Assigned: (XERCESJ-1039) Target namespaces containing a space cause spurious errors
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1039?page=history ]
Michael Glavassevich reassigned XERCESJ-1039:
---------------------------------------------
Assign To: Michael Glavassevich
> Target namespaces containing a space cause spurious errors
> ----------------------------------------------------------
>
> Key: XERCESJ-1039
> URL: http://issues.apache.org/jira/browse/XERCESJ-1039
> Project: Xerces2-J
> Type: Bug
> Components: XML Schema Structures
> Versions: 2.6.2
> Environment: java 1.4 running on linux
> Reporter: Lucian Holland
> Assignee: Michael Glavassevich
> Priority: Minor
> Attachments: acme.xsd
>
> In a schema which has a space in the target namespace, references to other components in the schema fail. I believe that this is because the targetNamespace is escaped by the schema loader, but the corresponding prefix binding does not get escaped. As a result the parser thinks that the prefix refers to a different namespace to that of the current schema! The attached schema demonstrates this. Note that it works if you bind a prefix to a pre-escaped version of the namespace. Obviously namespaces containing unescaped spaces are not a great idea, but it would be helpful if Xerces was consistent in its behaviour and failed in a slightly more explicit fashion on this.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Resolved: (XERCESJ-1039) Target namespaces containing a space cause spurious errors
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1039?page=history ]
Michael Glavassevich resolved XERCESJ-1039:
-------------------------------------------
Resolution: Fixed
To validate an anyURI we apply the escaping rules from XLink to make it a URI that we then validate with Xerces' URI class. We were returning the escaped value instead of the original as the actual value. This was affecting all anyURIs containing characters excluded by RFC 2396. Thanks for catching this. A fix is now in CVS.
> Target namespaces containing a space cause spurious errors
> ----------------------------------------------------------
>
> Key: XERCESJ-1039
> URL: http://issues.apache.org/jira/browse/XERCESJ-1039
> Project: Xerces2-J
> Type: Bug
> Components: XML Schema Structures
> Versions: 2.6.2
> Environment: java 1.4 running on linux
> Reporter: Lucian Holland
> Assignee: Michael Glavassevich
> Priority: Minor
> Attachments: acme.xsd
>
> In a schema which has a space in the target namespace, references to other components in the schema fail. I believe that this is because the targetNamespace is escaped by the schema loader, but the corresponding prefix binding does not get escaped. As a result the parser thinks that the prefix refers to a different namespace to that of the current schema! The attached schema demonstrates this. Note that it works if you bind a prefix to a pre-escaped version of the namespace. Obviously namespaces containing unescaped spaces are not a great idea, but it would be helpful if Xerces was consistent in its behaviour and failed in a slightly more explicit fashion on this.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Closed: (XERCESJ-1039) Target namespaces containing a space cause spurious errors
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1039?page=history ]
Michael Glavassevich closed XERCESJ-1039:
-----------------------------------------
> Target namespaces containing a space cause spurious errors
> ----------------------------------------------------------
>
> Key: XERCESJ-1039
> URL: http://issues.apache.org/jira/browse/XERCESJ-1039
> Project: Xerces2-J
> Type: Bug
> Components: XML Schema Structures
> Versions: 2.6.2
> Environment: java 1.4 running on linux
> Reporter: Lucian Holland
> Assignee: Michael Glavassevich
> Priority: Minor
> Attachments: acme.xsd
>
> In a schema which has a space in the target namespace, references to other components in the schema fail. I believe that this is because the targetNamespace is escaped by the schema loader, but the corresponding prefix binding does not get escaped. As a result the parser thinks that the prefix refers to a different namespace to that of the current schema! The attached schema demonstrates this. Note that it works if you bind a prefix to a pre-escaped version of the namespace. Obviously namespaces containing unescaped spaces are not a great idea, but it would be helpful if Xerces was consistent in its behaviour and failed in a slightly more explicit fashion on this.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
[jira] Updated: (XERCESJ-1039) Target namespaces containing a space cause spurious errors
Posted by "Lucian Holland (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1039?page=history ]
Lucian Holland updated XERCESJ-1039:
------------------------------------
Attachment: acme.xsd
Schema that shows the problem.
> Target namespaces containing a space cause spurious errors
> ----------------------------------------------------------
>
> Key: XERCESJ-1039
> URL: http://issues.apache.org/jira/browse/XERCESJ-1039
> Project: Xerces2-J
> Type: Bug
> Components: XML Schema Structures
> Versions: 2.6.2
> Environment: java 1.4 running on linux
> Reporter: Lucian Holland
> Priority: Minor
> Attachments: acme.xsd
>
> In a schema which has a space in the target namespace, references to other components in the schema fail. I believe that this is because the targetNamespace is escaped by the schema loader, but the corresponding prefix binding does not get escaped. As a result the parser thinks that the prefix refers to a different namespace to that of the current schema! The attached schema demonstrates this. Note that it works if you bind a prefix to a pre-escaped version of the namespace. Obviously namespaces containing unescaped spaces are not a great idea, but it would be helpful if Xerces was consistent in its behaviour and failed in a slightly more explicit fashion on this.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org