[jira] [Updated] (CAMEL-13374) XMLTokenExpressionIterator Default Exchange charset overrides original xml encoding from InputStream

2021-03-23 Thread Claus Ibsen (Jira)


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

Claus Ibsen updated CAMEL-13374:

Fix Version/s: (was: 3.x)
   3.10.0

> XMLTokenExpressionIterator Default Exchange charset overrides original xml 
> encoding from InputStream
> 
>
> Key: CAMEL-13374
> URL: https://issues.apache.org/jira/browse/CAMEL-13374
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.0, 2.22.0
>Reporter: Sergey Smith
>Assignee: Claus Ibsen
>Priority: Minor
> Fix For: 3.10.0
>
>
> Default Exchange charset overrides original xml encoding from InputStream
> at
> org.apache.camel.support.XMLTokenExpressionIterator.doEvaluate(Exchange 
> exchange, boolean closeStream)
> _String charset = IOHelper.getCharsetName(exchange);_
> must be replaced with
> _String charset = IOHelper.getCharsetName(exchange, *false*);_
> then at 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, group, new *InputStreamReader*(in, charset));_
> _and_ 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, 1, new *InputStreamReader*(in, charset));_
> lines use 
> org.apache.commons.io.input.XmlStreamReader instead of just InputStreamReader
> it correctly determinants encoding from xml header when it present.
>  
> Examle document at InputStream body:
> __
> __
> Current _charset_ result: is UTF-8 (*default* from 
> _IOHelper.getCharsetName(exchange)_)
> Expected result: _ISO-8859-5_
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (CAMEL-13374) XMLTokenExpressionIterator Default Exchange charset overrides original xml encoding from InputStream

2019-08-06 Thread Claus Ibsen (JIRA)


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

Claus Ibsen updated CAMEL-13374:

Priority: Minor  (was: Major)

> XMLTokenExpressionIterator Default Exchange charset overrides original xml 
> encoding from InputStream
> 
>
> Key: CAMEL-13374
> URL: https://issues.apache.org/jira/browse/CAMEL-13374
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.0, 2.22.0
>Reporter: Sergey Smith
>Priority: Minor
> Fix For: 3.x
>
>
> Default Exchange charset overrides original xml encoding from InputStream
> at
> org.apache.camel.support.XMLTokenExpressionIterator.doEvaluate(Exchange 
> exchange, boolean closeStream)
> _String charset = IOHelper.getCharsetName(exchange);_
> must be replaced with
> _String charset = IOHelper.getCharsetName(exchange, *false*);_
> then at 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, group, new *InputStreamReader*(in, charset));_
> _and_ 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, 1, new *InputStreamReader*(in, charset));_
> lines use 
> org.apache.commons.io.input.XmlStreamReader instead of just InputStreamReader
> it correctly determinants encoding from xml header when it present.
>  
> Examle document at InputStream body:
> __
> __
> Current _charset_ result: is UTF-8 (*default* from 
> _IOHelper.getCharsetName(exchange)_)
> Expected result: _ISO-8859-5_
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Updated] (CAMEL-13374) XMLTokenExpressionIterator Default Exchange charset overrides original xml encoding from InputStream

2019-08-06 Thread Claus Ibsen (JIRA)


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

Claus Ibsen updated CAMEL-13374:

Fix Version/s: (was: 2.25.0)
   (was: 3.0.0)
   3.x

> XMLTokenExpressionIterator Default Exchange charset overrides original xml 
> encoding from InputStream
> 
>
> Key: CAMEL-13374
> URL: https://issues.apache.org/jira/browse/CAMEL-13374
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.0, 2.22.0
>Reporter: Sergey Smith
>Priority: Major
> Fix For: 3.x
>
>
> Default Exchange charset overrides original xml encoding from InputStream
> at
> org.apache.camel.support.XMLTokenExpressionIterator.doEvaluate(Exchange 
> exchange, boolean closeStream)
> _String charset = IOHelper.getCharsetName(exchange);_
> must be replaced with
> _String charset = IOHelper.getCharsetName(exchange, *false*);_
> then at 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, group, new *InputStreamReader*(in, charset));_
> _and_ 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, 1, new *InputStreamReader*(in, charset));_
> lines use 
> org.apache.commons.io.input.XmlStreamReader instead of just InputStreamReader
> it correctly determinants encoding from xml header when it present.
>  
> Examle document at InputStream body:
> __
> __
> Current _charset_ result: is UTF-8 (*default* from 
> _IOHelper.getCharsetName(exchange)_)
> Expected result: _ISO-8859-5_
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Updated] (CAMEL-13374) XMLTokenExpressionIterator Default Exchange charset overrides original xml encoding from InputStream

2019-06-03 Thread Claus Ibsen (JIRA)


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

Claus Ibsen updated CAMEL-13374:

Fix Version/s: (was: 2.22.5)
   (was: 2.23.3)
   (was: 2.24.0)
   2.25.0

> XMLTokenExpressionIterator Default Exchange charset overrides original xml 
> encoding from InputStream
> 
>
> Key: CAMEL-13374
> URL: https://issues.apache.org/jira/browse/CAMEL-13374
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.0, 2.22.0
>Reporter: Sergey Smith
>Priority: Major
> Fix For: 3.0.0, 2.25.0
>
>
> Default Exchange charset overrides original xml encoding from InputStream
> at
> org.apache.camel.support.XMLTokenExpressionIterator.doEvaluate(Exchange 
> exchange, boolean closeStream)
> _String charset = IOHelper.getCharsetName(exchange);_
> must be replaced with
> _String charset = IOHelper.getCharsetName(exchange, *false*);_
> then at 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, group, new *InputStreamReader*(in, charset));_
> _and_ 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, 1, new *InputStreamReader*(in, charset));_
> lines use 
> org.apache.commons.io.input.XmlStreamReader instead of just InputStreamReader
> it correctly determinants encoding from xml header when it present.
>  
> Examle document at InputStream body:
> __
> __
> Current _charset_ result: is UTF-8 (*default* from 
> _IOHelper.getCharsetName(exchange)_)
> Expected result: _ISO-8859-5_
>  



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


[jira] [Updated] (CAMEL-13374) XMLTokenExpressionIterator Default Exchange charset overrides original xml encoding from InputStream

2019-04-19 Thread Andrea Cosentino (JIRA)


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

Andrea Cosentino updated CAMEL-13374:
-
Fix Version/s: (was: 2.22.4)
   (was: 2.23.2)
   2.22.5
   2.23.3

> XMLTokenExpressionIterator Default Exchange charset overrides original xml 
> encoding from InputStream
> 
>
> Key: CAMEL-13374
> URL: https://issues.apache.org/jira/browse/CAMEL-13374
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.0, 2.22.0
>Reporter: Sergey Smith
>Priority: Major
> Fix For: 3.0.0, 2.24.0, 2.23.3, 2.22.5
>
>
> Default Exchange charset overrides original xml encoding from InputStream
> at
> org.apache.camel.support.XMLTokenExpressionIterator.doEvaluate(Exchange 
> exchange, boolean closeStream)
> _String charset = IOHelper.getCharsetName(exchange);_
> must be replaced with
> _String charset = IOHelper.getCharsetName(exchange, *false*);_
> then at 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, group, new *InputStreamReader*(in, charset));_
> _and_ 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, 1, new *InputStreamReader*(in, charset));_
> lines use 
> org.apache.commons.io.input.XmlStreamReader instead of just InputStreamReader
> it correctly determinants encoding from xml header when it present.
>  
> Examle document at InputStream body:
> __
> __
> Current _charset_ result: is UTF-8 (*default* from 
> _IOHelper.getCharsetName(exchange)_)
> Expected result: _ISO-8859-5_
>  



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


[jira] [Updated] (CAMEL-13374) XMLTokenExpressionIterator Default Exchange charset overrides original xml encoding from InputStream

2019-03-29 Thread Claus Ibsen (JIRA)


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

Claus Ibsen updated CAMEL-13374:

Fix Version/s: 2.22.4
   2.24.0
   2.23.2
   3.0.0

> XMLTokenExpressionIterator Default Exchange charset overrides original xml 
> encoding from InputStream
> 
>
> Key: CAMEL-13374
> URL: https://issues.apache.org/jira/browse/CAMEL-13374
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 2.18.0, 2.22.0
>Reporter: Sergey Smith
>Priority: Major
> Fix For: 3.0.0, 2.23.2, 2.24.0, 2.22.4
>
>
> Default Exchange charset overrides original xml encoding from InputStream
> at
> org.apache.camel.support.XMLTokenExpressionIterator.doEvaluate(Exchange 
> exchange, boolean closeStream)
> _String charset = IOHelper.getCharsetName(exchange);_
> must be replaced with
> _String charset = IOHelper.getCharsetName(exchange, *false*);_
> then at 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, group, new *InputStreamReader*(in, charset));_
> _and_ 
> _// woodstox's getLocation().etCharOffset() does not return the offset 
> correctly for InputStream, so use Reader instead._
> _this(path, nsmap, mode, 1, new *InputStreamReader*(in, charset));_
> lines use 
> org.apache.commons.io.input.XmlStreamReader instead of just InputStreamReader
> it correctly determinants encoding from xml header when it present.
>  
> Examle document at InputStream body:
> __
> __
> Current _charset_ result: is UTF-8 (*default* from 
> _IOHelper.getCharsetName(exchange)_)
> Expected result: _ISO-8859-5_
>  



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