You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Dmitry Repchevsky (JIRA)" <ji...@apache.org> on 2012/07/13 14:34:34 UTC

[jira] [Created] (XMLSCHEMA-25) XmlSchemaSerializer everloop

Dmitry Repchevsky created XMLSCHEMA-25:
------------------------------------------

             Summary: XmlSchemaSerializer everloop
                 Key: XMLSCHEMA-25
                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-25
             Project: XmlSchema
          Issue Type: Bug
    Affects Versions: XmlSchema 2.0.1, 2.0.2
         Environment: Win7 Pro 64 *SUN* JDK 7.05
            Reporter: Dmitry Repchevsky
             Fix For: 2.0.2


NamespaceContext.getNamespaceURI() never returns NULL (as it should).
On the other hand in several places in XmlSchemaSerializer there is a comparison:

while (ctx != null && ctx.getNamespaceURI(xsdPrefix) != null) {
  xsdPrefix = "xsd" + ++count;
}

This loop goes forever...


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


[jira] [Resolved] (XMLSCHEMA-25) XmlSchemaSerializer everloop

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

Daniel Kulp resolved XMLSCHEMA-25.
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.2)
                   2.0.3
         Assignee: Daniel Kulp


Patch applied.  Thanks
                
> XmlSchemaSerializer everloop
> ----------------------------
>
>                 Key: XMLSCHEMA-25
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-25
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 2.0.1, 2.0.2
>         Environment: Win7 Pro 64 *SUN* JDK 7.05
>            Reporter: Dmitry Repchevsky
>            Assignee: Daniel Kulp
>              Labels: patch
>             Fix For: 2.0.3
>
>         Attachments: XMLSerializerTest.java, XmlSchemaSerializer.java.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> NamespaceContext.getNamespaceURI() never returns NULL (as it should).
> On the other hand in several places in XmlSchemaSerializer there is a comparison:
> while (ctx != null && ctx.getNamespaceURI(xsdPrefix) != null) {
>   xsdPrefix = "xsd" + ++count;
> }
> This loop goes forever...

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


[jira] [Commented] (XMLSCHEMA-25) XmlSchemaSerializer everloop

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/XMLSCHEMA-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414717#comment-13414717 ] 

Andreas Veithen commented on XMLSCHEMA-25:
------------------------------------------

Do you have a test case for this?
                
> XmlSchemaSerializer everloop
> ----------------------------
>
>                 Key: XMLSCHEMA-25
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-25
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 2.0.1, 2.0.2
>         Environment: Win7 Pro 64 *SUN* JDK 7.05
>            Reporter: Dmitry Repchevsky
>              Labels: patch
>             Fix For: 2.0.2
>
>         Attachments: XmlSchemaSerializer.java.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> NamespaceContext.getNamespaceURI() never returns NULL (as it should).
> On the other hand in several places in XmlSchemaSerializer there is a comparison:
> while (ctx != null && ctx.getNamespaceURI(xsdPrefix) != null) {
>   xsdPrefix = "xsd" + ++count;
> }
> This loop goes forever...

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


[jira] [Updated] (XMLSCHEMA-25) XmlSchemaSerializer everloop

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

Dmitry Repchevsky updated XMLSCHEMA-25:
---------------------------------------

    Attachment: XmlSchemaSerializer.java.patch
    
> XmlSchemaSerializer everloop
> ----------------------------
>
>                 Key: XMLSCHEMA-25
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-25
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 2.0.1, 2.0.2
>         Environment: Win7 Pro 64 *SUN* JDK 7.05
>            Reporter: Dmitry Repchevsky
>              Labels: patch
>             Fix For: 2.0.2
>
>         Attachments: XmlSchemaSerializer.java.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> NamespaceContext.getNamespaceURI() never returns NULL (as it should).
> On the other hand in several places in XmlSchemaSerializer there is a comparison:
> while (ctx != null && ctx.getNamespaceURI(xsdPrefix) != null) {
>   xsdPrefix = "xsd" + ++count;
> }
> This loop goes forever...

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


[jira] [Commented] (XMLSCHEMA-25) XmlSchemaSerializer everloop

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

Hudson commented on XMLSCHEMA-25:
---------------------------------

Integrated in xmlschema-trunk-jdk15 #27 (See [https://builds.apache.org/job/xmlschema-trunk-jdk15/27/])
    [XMLSCHEMA-25] Fix for potential never ending loop
Patch from Dmitry Repchevsky applied (Revision 1365187)

     Result = SUCCESS
dkulp : 
Files : 
* /webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java
* /webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/XMLSerializerTest.java

                
> XmlSchemaSerializer everloop
> ----------------------------
>
>                 Key: XMLSCHEMA-25
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-25
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 2.0.1, 2.0.2
>         Environment: Win7 Pro 64 *SUN* JDK 7.05
>            Reporter: Dmitry Repchevsky
>            Assignee: Daniel Kulp
>              Labels: patch
>             Fix For: 2.0.3
>
>         Attachments: XMLSerializerTest.java, XmlSchemaSerializer.java.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> NamespaceContext.getNamespaceURI() never returns NULL (as it should).
> On the other hand in several places in XmlSchemaSerializer there is a comparison:
> while (ctx != null && ctx.getNamespaceURI(xsdPrefix) != null) {
>   xsdPrefix = "xsd" + ++count;
> }
> This loop goes forever...

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


[jira] [Updated] (XMLSCHEMA-25) XmlSchemaSerializer everloop

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

Dmitry Repchevsky updated XMLSCHEMA-25:
---------------------------------------

    Attachment: XMLSerializerTest.java

Note the usage of NodeNamespaceContext.
NamespaceMap returns null if no prefix found while according NamespaceContext it should return Constants.NULL_NS_URI
                
> XmlSchemaSerializer everloop
> ----------------------------
>
>                 Key: XMLSCHEMA-25
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-25
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 2.0.1, 2.0.2
>         Environment: Win7 Pro 64 *SUN* JDK 7.05
>            Reporter: Dmitry Repchevsky
>              Labels: patch
>             Fix For: 2.0.2
>
>         Attachments: XMLSerializerTest.java, XmlSchemaSerializer.java.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> NamespaceContext.getNamespaceURI() never returns NULL (as it should).
> On the other hand in several places in XmlSchemaSerializer there is a comparison:
> while (ctx != null && ctx.getNamespaceURI(xsdPrefix) != null) {
>   xsdPrefix = "xsd" + ++count;
> }
> This loop goes forever...

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