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 "Grant McDonald (JIRA)" <xe...@xml.apache.org> on 2006/11/17 12:16:37 UTC

[jira] Created: (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
-----------------------------------------------------------------------------------------------------------------------------

                 Key: XERCESJ-1212
                 URL: http://issues.apache.org/jira/browse/XERCESJ-1212
             Project: Xerces2-J
          Issue Type: Bug
          Components: JAXP (javax.xml.validation)
    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
            Reporter: Grant McDonald


The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown.  Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Assigned: (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1212?page=all ]

Michael Glavassevich reassigned XERCESJ-1212:
---------------------------------------------

    Assignee: Michael Glavassevich

> DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1212
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1212
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
>         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
>            Reporter: Grant McDonald
>         Assigned To: Michael Glavassevich
>         Attachments: XERCESJ-1212.patch
>
>
> The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown.  Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

Posted by "Grant McDonald (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1212?page=all ]

Grant McDonald updated XERCESJ-1212:
------------------------------------

    Attachment: XERCESJ-1212.patch

Patch provided and tested to work correctly.

> DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1212
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1212
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
>         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
>            Reporter: Grant McDonald
>         Attachments: XERCESJ-1212.patch
>
>
> The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown.  Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1212?page=all ]

Michael Glavassevich updated XERCESJ-1212:
------------------------------------------

    Fix Version/s: 2.9.0

> DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1212
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1212
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
>         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
>            Reporter: Grant McDonald
>         Assigned To: Michael Glavassevich
>             Fix For: 2.9.0
>
>         Attachments: XERCESJ-1212.patch
>
>
> The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown.  Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1212?page=all ]

Michael Glavassevich resolved XERCESJ-1212.
-------------------------------------------

    Resolution: Fixed

Grant, thanks for the patch.  I've committed it to SVN.

> DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1212
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1212
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
>         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
>            Reporter: Grant McDonald
>         Assigned To: Michael Glavassevich
>         Attachments: XERCESJ-1212.patch
>
>
> The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown.  Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org