You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "James Grahn (JIRA)" <ji...@apache.org> on 2011/07/21 00:29:58 UTC

[jira] [Created] (AXIOM-373) Generated namespace prefixes not properly used by some OMFactories

Generated namespace prefixes not properly used by some OMFactories
------------------------------------------------------------------

                 Key: AXIOM-373
                 URL: https://issues.apache.org/jira/browse/AXIOM-373
             Project: Axiom
          Issue Type: Bug
          Components: DOOM
    Affects Versions: 1.2.10
            Reporter: James Grahn


Given this code:
OMDOMFactory factory = new OMDOMFactory();
OMElement element = factory.createOMElement("name", "ns", null);

I expected this output:
<generatedNamespace:name xmlns:generatedNamespace="ns"/>

This was the actual output:
<name xmlns:generatedNamespace="ns" xmlns="ns"/>

While the generated element is within the expected namespace, the output's use of a default namespace where none is necessary is a problem, particularly if you wish to use prefixed elements as frequently as possible.   In fact, the generated prefix may never be used as long as the default is available.

This problem can be ameliorated in two lines of counter-intuitive code:

OMNamespace ns = element.findNamespace("ns", null);
element.setNamespace(ns);

After running those additional lines of code, the output will match the expectation, but that code is hard to justify.

This bug was observed in: OMDOMFactory, DOMSOAPFactory, SOAP11Factory (dom), SOAP12Factory (dom).
This bug does not occur in: OMLinkedListImplFactory, SOAP11Factory (llom), SOAP12Factory (llom).

--
This message is automatically generated by JIRA.
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


[jira] [Commented] (AXIOM-373) Generated namespace prefixes not properly used by some OMFactories

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIOM-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13069078#comment-13069078 ] 

Hudson commented on AXIOM-373:
------------------------------

Integrated in Axis2 #858 (See [https://builds.apache.org/job/Axis2/858/])
    Fixed a couple of instances where SAAJ depends on incorrect behavior of DOOM, in particular AXIOM-373.

veithen : 
Files : 
* /axis/axis2/java/core/trunk/modules/saaj/src/org/apache/axis2/saaj/SOAPFactoryImpl.java
* /axis/axis2/java/core/trunk/modules/saaj/src/org/apache/axis2/saaj/SOAPBodyImpl.java


> Generated namespace prefixes not properly used by some OMFactories
> ------------------------------------------------------------------
>
>                 Key: AXIOM-373
>                 URL: https://issues.apache.org/jira/browse/AXIOM-373
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM
>    Affects Versions: 1.2.10
>            Reporter: James Grahn
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
>
>
> Given this code:
> OMDOMFactory factory = new OMDOMFactory();
> OMElement element = factory.createOMElement("name", "ns", null);
> I expected this output:
> <generatedNamespace:name xmlns:generatedNamespace="ns"/>
> This was the actual output:
> <name xmlns:generatedNamespace="ns" xmlns="ns"/>
> While the generated element is within the expected namespace, the output's use of a default namespace where none is necessary is a problem, particularly if you wish to use prefixed elements as frequently as possible.   In fact, the generated prefix may never be used as long as the default is available.
> This problem can be ameliorated in two lines of counter-intuitive code:
> OMNamespace ns = element.findNamespace("ns", null);
> element.setNamespace(ns);
> After running those additional lines of code, the output will match the expectation, but that code is hard to justify.
> This bug was observed in: OMDOMFactory, DOMSOAPFactory, SOAP11Factory (dom), SOAP12Factory (dom).
> This bug does not occur in: OMLinkedListImplFactory, SOAP11Factory (llom), SOAP12Factory (llom).

--
This message is automatically generated by JIRA.
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


[jira] [Updated] (AXIOM-373) Generated namespace prefixes not properly used by some OMFactories

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIOM-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated AXIOM-373:
----------------------------------

    Fix Version/s: 1.2.13
         Assignee: Andreas Veithen
           Labels:   (was: autogenerated namespaces)

> Generated namespace prefixes not properly used by some OMFactories
> ------------------------------------------------------------------
>
>                 Key: AXIOM-373
>                 URL: https://issues.apache.org/jira/browse/AXIOM-373
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM
>    Affects Versions: 1.2.10
>            Reporter: James Grahn
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
>
>
> Given this code:
> OMDOMFactory factory = new OMDOMFactory();
> OMElement element = factory.createOMElement("name", "ns", null);
> I expected this output:
> <generatedNamespace:name xmlns:generatedNamespace="ns"/>
> This was the actual output:
> <name xmlns:generatedNamespace="ns" xmlns="ns"/>
> While the generated element is within the expected namespace, the output's use of a default namespace where none is necessary is a problem, particularly if you wish to use prefixed elements as frequently as possible.   In fact, the generated prefix may never be used as long as the default is available.
> This problem can be ameliorated in two lines of counter-intuitive code:
> OMNamespace ns = element.findNamespace("ns", null);
> element.setNamespace(ns);
> After running those additional lines of code, the output will match the expectation, but that code is hard to justify.
> This bug was observed in: OMDOMFactory, DOMSOAPFactory, SOAP11Factory (dom), SOAP12Factory (dom).
> This bug does not occur in: OMLinkedListImplFactory, SOAP11Factory (llom), SOAP12Factory (llom).

--
This message is automatically generated by JIRA.
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


[jira] [Commented] (AXIOM-373) Generated namespace prefixes not properly used by some OMFactories

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIOM-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068969#comment-13068969 ] 

Hudson commented on AXIOM-373:
------------------------------

Integrated in ws-axiom-trunk #446 (See [https://builds.apache.org/job/ws-axiom-trunk/446/])
    AXIOM-373: Synchronized some code between the LLOM and DOOM implementations in order to fix some issues with generated prefixes.

veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/OMImplementationTest.java
* /webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java


> Generated namespace prefixes not properly used by some OMFactories
> ------------------------------------------------------------------
>
>                 Key: AXIOM-373
>                 URL: https://issues.apache.org/jira/browse/AXIOM-373
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM
>    Affects Versions: 1.2.10
>            Reporter: James Grahn
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
>
>
> Given this code:
> OMDOMFactory factory = new OMDOMFactory();
> OMElement element = factory.createOMElement("name", "ns", null);
> I expected this output:
> <generatedNamespace:name xmlns:generatedNamespace="ns"/>
> This was the actual output:
> <name xmlns:generatedNamespace="ns" xmlns="ns"/>
> While the generated element is within the expected namespace, the output's use of a default namespace where none is necessary is a problem, particularly if you wish to use prefixed elements as frequently as possible.   In fact, the generated prefix may never be used as long as the default is available.
> This problem can be ameliorated in two lines of counter-intuitive code:
> OMNamespace ns = element.findNamespace("ns", null);
> element.setNamespace(ns);
> After running those additional lines of code, the output will match the expectation, but that code is hard to justify.
> This bug was observed in: OMDOMFactory, DOMSOAPFactory, SOAP11Factory (dom), SOAP12Factory (dom).
> This bug does not occur in: OMLinkedListImplFactory, SOAP11Factory (llom), SOAP12Factory (llom).

--
This message is automatically generated by JIRA.
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


[jira] [Resolved] (AXIOM-373) Generated namespace prefixes not properly used by some OMFactories

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIOM-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIOM-373.
-----------------------------------

    Resolution: Fixed

> Generated namespace prefixes not properly used by some OMFactories
> ------------------------------------------------------------------
>
>                 Key: AXIOM-373
>                 URL: https://issues.apache.org/jira/browse/AXIOM-373
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM
>    Affects Versions: 1.2.10
>            Reporter: James Grahn
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
>
>
> Given this code:
> OMDOMFactory factory = new OMDOMFactory();
> OMElement element = factory.createOMElement("name", "ns", null);
> I expected this output:
> <generatedNamespace:name xmlns:generatedNamespace="ns"/>
> This was the actual output:
> <name xmlns:generatedNamespace="ns" xmlns="ns"/>
> While the generated element is within the expected namespace, the output's use of a default namespace where none is necessary is a problem, particularly if you wish to use prefixed elements as frequently as possible.   In fact, the generated prefix may never be used as long as the default is available.
> This problem can be ameliorated in two lines of counter-intuitive code:
> OMNamespace ns = element.findNamespace("ns", null);
> element.setNamespace(ns);
> After running those additional lines of code, the output will match the expectation, but that code is hard to justify.
> This bug was observed in: OMDOMFactory, DOMSOAPFactory, SOAP11Factory (dom), SOAP12Factory (dom).
> This bug does not occur in: OMLinkedListImplFactory, SOAP11Factory (llom), SOAP12Factory (llom).

--
This message is automatically generated by JIRA.
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