You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2008/05/02 13:01:55 UTC

[jira] Updated: (SYNAPSE-260) Setting transport.vfs.ContentType to "text/xml" causes BaseTransportException

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

Asankha C. Perera updated SYNAPSE-260:
--------------------------------------

    Fix Version/s:     (was: 1.2)
                   FUTURE

The Axis2's BaseUtils class defaults the encoding as UTF-8, if you do not specify the charset with the content type. Since there is a workaround, can I put this for consideration for the next release?

> Setting transport.vfs.ContentType to "text/xml" causes BaseTransportException
> -----------------------------------------------------------------------------
>
>                 Key: SYNAPSE-260
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-260
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: NIGHTLY
>            Reporter: Andreas Veithen
>            Priority: Minor
>             Fix For: FUTURE
>
>
> When the VFS transport (listener) is used with transport.vfs.ContentType set to "text/xml", the following exception is triggered when a file is received:
> org.apache.synapse.transport.base.BaseTransportException: Charset encoding of transport differs from that of the payload
> 	at org.apache.synapse.transport.base.BaseUtils.handleException(BaseUtils.java:331)
> 	at org.apache.synapse.transport.base.BaseUtils.setSOAPEnvelope(BaseUtils.java:228)
> 	at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:412)
> 	at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:229)
> 	at org.apache.synapse.transport.vfs.VFSTransportListener.onPoll(VFSTransportListener.java:135)
> 	at org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:77)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> 	at java.lang.Thread.run(Thread.java:613)
> Specifying the charset in the content type (e.g. "text/xml; charset=ISO-8859-1") avoids the problem, but the VFS transport should be able to receive XML without a priori knowledge of the encoding.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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