You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Anli Shundi (Created) (JIRA)" <ji...@apache.org> on 2011/11/22 16:40:40 UTC

[jira] [Created] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
-------------------------------------------------------------------------------------

                 Key: SANTUARIO-289
                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
             Project: Santuario
          Issue Type: Bug
          Components: Java
    Affects Versions: Java 1.4.4
            Reporter: Anli Shundi
            Assignee: Colm O hEigeartaigh
             Fix For: Java 1.4.5, Java 1.5


The current code expect, that each XML namespace is also stored as attribute - this is not true for elements created by createElementNS.

For an example, see patch, which processes the same XML two times - one time loaded from a file and one time dynamically created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

Posted by "Anli Shundi (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANTUARIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anli Shundi updated SANTUARIO-289:
----------------------------------

    Description: The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.  (was: The current code expect, that each XML namespace is also stored as attribute - this is not true for elements created by createElementNS.

For an example, see patch, which processes the same XML two times - one time loaded from a file and one time dynamically created.)
    
> CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
> -------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-289
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.4
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>             Fix For: Java 1.4.5, Java 1.5
>
>
> The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

Posted by "Colm O hEigeartaigh (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SANTUARIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155801#comment-13155801 ] 

Colm O hEigeartaigh commented on SANTUARIO-289:
-----------------------------------------------

Hi Anil,

Where is the attached test-case you mentioned?

Colm.
                
> CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
> -------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-289
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.4
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>             Fix For: Java 1.4.5, Java 1.5
>
>
> The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

Posted by "Anli Shundi (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANTUARIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anli Shundi updated SANTUARIO-289:
----------------------------------

    Attachment: Canonicalizer20010315ExclusiveTest.java.patch

several tests showing that c14n doesn't work well with dynamically created DOM when elements and especially attributes have a namespace but not a declaration or even a prefix for it.

I'll include a partial fix next week
                
> CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
> -------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-289
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.4
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>             Fix For: Java 1.4.5, Java 1.5
>
>         Attachments: Canonicalizer20010315ExclusiveTest.java.patch
>
>
> The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

Posted by "Anli Shundi (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANTUARIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anli Shundi resolved SANTUARIO-289.
-----------------------------------

    Resolution: Won't Fix

The easy workaround or proposed solution would be for the DOM to be normalized.  document.normalizeDocument()  
                
> CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
> -------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-289
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.4
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>         Attachments: Canonicalizer20010315ExclusiveTest.java.patch
>
>
> The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

Posted by "Paul Richardson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SANTUARIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168544#comment-13168544 ] 

Paul Richardson commented on SANTUARIO-289:
-------------------------------------------

I think I'm falling foul of this issue too so am eagerly looking forward to the patch.
                
> CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
> -------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-289
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.4
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>             Fix For: Java 1.4.5, Java 1.5
>
>         Attachments: Canonicalizer20010315ExclusiveTest.java.patch
>
>
> The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SANTUARIO-289) CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)

Posted by "Colm O hEigeartaigh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANTUARIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated SANTUARIO-289:
------------------------------------------

    Fix Version/s:     (was: Java 1.5)
                       (was: Java 1.4.5)


Removing fix-for version until a patch is provided.

Colm.
                
> CLONE - Canonicalizer can't handle dynamical created DOM correctly (also attributes!)
> -------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-289
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-289
>             Project: Santuario
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: Java 1.4.4
>            Reporter: Anli Shundi
>            Assignee: Colm O hEigeartaigh
>         Attachments: Canonicalizer20010315ExclusiveTest.java.patch
>
>
> The fix for SANTUARIO-263 doesn't work for namespaced attributes.  See attached failing test.  Note that it's legal in DOM 3 to declare an attribute in a namespace and without a prefix.  Serialization has to figure out the prefix or make up one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira