[jira] [Commented] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Sigmund Lundgren (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16655617#comment-16655617
 ] 

Sigmund Lundgren commented on GROOVY-8850:
--

great, yes java other consumers / systems of the xml being produced

> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Paul King (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16655211#comment-16655211
 ] 

Paul King commented on GROOVY-8850:
---

I added code tags - let me know if it looks okay. By legacy code, you mean 
non-Groovy?

> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Paul King (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16655032#comment-16655032
 ] 

Paul King edited comment on GROOVY-8850 at 10/18/18 1:14 PM:
-

The output differs with 2.5.3 we get:
{code}
 http://www.dnb.com/GSRL/Vers7/Rls24; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
{code}
Earlier versions just {{}}

Should be valid even with namespace added but we have legacy code that fails 
hard..

Code snippet:
{code}
def xml = markupBuilder.bind { builder ->
 mkp.xmlDeclaration()
 mkp.declareNamespace('': 'http://www.dnb.com/GSRL/Vers7/Rls24',
 'xsi': 'http://www.w3.org/2001/XMLSchema-instance')
 GSRL {
   GSRLMSGSRQV1 {
 SUBJUPDTRNRQ {
   addTrnUID(builder)
   SUBJUPDRQ {
 topics.each{ topic -> mkp.yieldUnescaped topic }
  }
}
  }
}
return XmlUtil.serialize(xml.toString())
{code}



was (Author: sigmundl):
the output differs with 2.5.3 we get 
 http://www.dnb.com/GSRL/Vers7/Rls24; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
 Earlier versions just 

Should be valid even with namespace added but we have legacy code that fails 
hard..

{{Code snippet:}}
{{ def xml = markupBuilder.bind { builder ->}}
{{ mkp.xmlDeclaration()}}
{{ mkp.declareNamespace('': 'http://www.dnb.com/GSRL/Vers7/Rls24',}}
{{ 'xsi': 'http://www.w3.org/2001/XMLSchema-instance')}}{{GSRL {}}
{{ GSRLMSGSRQV1 {}}
{{ SUBJUPDTRNRQ {}}
{{ addTrnUID(builder)}}
{{ SUBJUPDRQ {}}
{{ topics.each}}{{{ topic -> mkp.yieldUnescaped topic }}}{{}}}
{{ }}}
{{ }}}
{{ }}}
{{ }}}{{return XmlUtil.serialize(xml.toString())}}

> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Sigmund Lundgren (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16655032#comment-16655032
 ] 

Sigmund Lundgren commented on GROOVY-8850:
--

the output differs with 2.5.3 we get 
 http://www.dnb.com/GSRL/Vers7/Rls24; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
 Earlier versions just 

Should be valid even with namespace added but we have legacy code that fails 
hard..

{{Code snippet:}}
{{ def xml = markupBuilder.bind { builder ->}}
{{ mkp.xmlDeclaration()}}
{{ mkp.declareNamespace('': 'http://www.dnb.com/GSRL/Vers7/Rls24',}}
{{ 'xsi': 'http://www.w3.org/2001/XMLSchema-instance')}}{{GSRL {}}
{{ GSRLMSGSRQV1 {}}
{{ SUBJUPDTRNRQ {}}
{{ addTrnUID(builder)}}
{{ SUBJUPDRQ {}}
{{ topics.each}}{{{ topic -> mkp.yieldUnescaped topic }}}{{}}}
{{ }}}
{{ }}}
{{ }}}
{{ }}}{{return XmlUtil.serialize(xml.toString())}}

> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Paul King (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16655020#comment-16655020
 ] 

Paul King commented on GROOVY-8850:
---

Do you have a fragment of code which illustrates the behavior difference? I.e.  
shows the different behavior when run on two different Groovy versions.

Also, it seems that while not needed, the extra namespace annotation should not 
make any difference for a namespace-aware XML parser?

> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8850:
--
Description: 
weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds namespaces 
to an element, did not happen in earlier versions and messes up parsing later… 
Element SUBJUPDRQ should not have namespace
{code}

http://www.dnb.com/GSRL/Vers7/Rls24; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
  

  GSRL7BNRSE_20181018110156
  http://www.dnb.com/GSRL/Vers7/Rls24; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
...
{code}


  was:
weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds namespaces 
to an element, did not happen in earlier versions and messes up parsing later… 
Element SUBJUPDRQ should not have namespace
{code}

http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
  

  GSRL7BNRSE_20181018110156
  http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
...
{code}



> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8850:
--
Description: 
weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds namespaces 
to an element, did not happen in earlier versions and messes up parsing later… 
Element SUBJUPDRQ should not have namespace
{code}

http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
  

  GSRL7BNRSE_20181018110156
  http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
...
{code}


  was:
weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds namespaces 
to an element, did not happen in earlier versions and messes up parsing later… 
Element SUBJUPDRQ should not have namespace
{code}
http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>}}


GSRL7BNRSE_20181018110156
http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
{code}



> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
> 
> http://www.dnb.com/GSRL/Vers7/Rls24” 
> xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
>   
> 
>   GSRL7BNRSE_20181018110156
>   http://www.dnb.com/GSRL/Vers7/Rls24” 
> xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GROOVY-8850) StreamingMarkupBuilder adds namespace on elements not expected

2018-10-18 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8850:
--
Description: 
weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds namespaces 
to an element, did not happen in earlier versions and messes up parsing later… 
Element SUBJUPDRQ should not have namespace
{code}
http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>}}


GSRL7BNRSE_20181018110156
http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
{code}


  was:
weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds namespaces 
to an element, did not happen in earlier versions and messes up parsing later… 
Element SUBJUPDRQ should not have namespace

{{http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>}}
{{ }}
{{ }}
{{ GSRL7BNRSE_20181018110156}}
{{ http://www.dnb.com/GSRL/Vers7/Rls24” 
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>}}


> StreamingMarkupBuilder adds namespace on elements not expected
> --
>
> Key: GROOVY-8850
> URL: https://issues.apache.org/jira/browse/GROOVY-8850
> Project: Groovy
>  Issue Type: Bug
>  Components: groovy-jdk
>Affects Versions: 2.5.3
>Reporter: Sigmund Lundgren
>Priority: Major
>
> weird groovy markupbuilder behavior when upgrading to 2.5.3, it adds 
> namespaces to an element, did not happen in earlier versions and messes up 
> parsing later… Element SUBJUPDRQ should not have namespace
> {code}
>  xmlns=“http://www.dnb.com/GSRL/Vers7/Rls24” 
> xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>}}
> 
> 
> GSRL7BNRSE_20181018110156
> http://www.dnb.com/GSRL/Vers7/Rls24” 
> xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)