[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    [jira] [Resolved] (AXIOM-410) Exception when called setPrefix method of ElementImpl in axiom-dom
From:       "Andreas Veithen (Resolved) (JIRA)" <jira () apache ! org>
Date:       2012-01-22 18:14:39
Message-ID: 1605379328.64786.1327256079890.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/AXIOM-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Andreas Veithen resolved AXIOM-410.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.13
    
> Exception when called setPrefix method of ElementImpl in axiom-dom
> ------------------------------------------------------------------
> 
> Key: AXIOM-410
> URL: https://issues.apache.org/jira/browse/AXIOM-410
> Project: Axiom
> Issue Type: Bug
> Components: DOOM
> Affects Versions: 1.2.12
> Environment: Ubuntu, jdk1.6.0_23
> Reporter: Amila Jayasekara
> Assignee: Andreas Veithen
> Labels: rampart, security
> Fix For: 1.2.13
> 
> Attachments: setprefix.diff
> 
> 
> In axiom-dom NodeImpl's [1] "setPrefix" method is implemented as follows,
> public void setPrefix(String prefix) throws DOMException {
> throw new DOMException(DOMException.NAMESPACE_ERR, DOMMessageFormatter
> .formatMessage(DOMMessageFormatter.DOM_DOMAIN,
> DOMException.NAMESPACE_ERR,
> null));
> }
> According to current trunk the "setPrefix" method is not overridden at
> any child class. But this method is called from opensaml framework
> when document builder is set to axiom-dom one. Above method is called for Element \
> (ElementImpl). Thus it throws DOMException.  I am not sure why we should throw an \
> Exception for Element. I override method with an empty body and according to my \
> tests it works fine. (I have attached the patch). Please review the patch and \
> apply.  Thanks
> AmilaJ

--
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

        

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic