You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by "Nicolas FROMENT (JIRA)" <ji...@apache.org> on 2007/01/19 08:31:29 UTC
[jira] Created: (FTPSERVER-61) Mina Port : Exception when storing a
file with special caracter
Mina Port : Exception when storing a file with special caracter
---------------------------------------------------------------
Key: FTPSERVER-61
URL: https://issues.apache.org/jira/browse/FTPSERVER-61
Project: FtpServer
Issue Type: Bug
Environment: Server on Linux RedHat, jre 1.4.2_10. Client FTPclient jakarta commons net
Reporter: Nicolas FROMENT
Attachments: ça.txt
When trying to store a file named "ça.txt" on a ftpserver running with a MinaListener I got an the following stack trace :
org.apache.mina.filter.codec.ProtocolDecoderException: java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: E7 61 2E 74 78 74 0D 0A)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:168)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
at org.apache.mina.common.ByteBuffer.getString(ByteBuffer.java:1036)
at org.apache.ftpserver.listener.mina.FtpRequestDecoder.decode(FtpRequestDecoder.java:38)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:157)
... 8 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
New to Maven
Posted by "Diego Novati - I.T.Mobile" <di...@itmobile.it>.
Hi all,
I'm new to Maven and I need more information to build successfully the source code.
I've just downloaded the code from the following URL
http://svn.apache.org/repos/asf/incubator/ftpserver/
and I'd like to know how to build the jars and start the server.
I tried with
mvn package
but I get test failures.
Could you give me some tips ?
Thanks
Diego
[jira] Closed: (FTPSERVER-61) Mina Port : Exception when storing a
file with special caracter
Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FTPSERVER-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niklas Gustavsson closed FTPSERVER-61.
--------------------------------------
Resolution: Cannot Reproduce
Assignee: Niklas Gustavsson
commons-net by default uses ISO-8859-1 as the control charset. FtpServer uses UTF-8. For some characters (like åäöç) the charsets don't match. To work around this you need to specify the encoding in commons-net with:
FTPClient client = new FTPClient();
client.setControlEncoding("UTF-8");
This needs to be done before the client is connected. To ensure that this will continue working I've added a new unit test:
/ftpserver-core/src/test/org/apache/ftpserver/clienttests/I18NTest.java
> Mina Port : Exception when storing a file with special caracter
> ---------------------------------------------------------------
>
> Key: FTPSERVER-61
> URL: https://issues.apache.org/jira/browse/FTPSERVER-61
> Project: FtpServer
> Issue Type: Bug
> Environment: Server on Linux RedHat, jre 1.4.2_10. Client FTPclient jakarta commons net
> Reporter: Nicolas FROMENT
> Assigned To: Niklas Gustavsson
> Attachments: TestFtpMina.java, ça.txt
>
>
> When trying to store a file named "ça.txt" on a ftpserver running with a MinaListener I got an the following stack trace :
> org.apache.mina.filter.codec.ProtocolDecoderException: java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: E7 61 2E 74 78 74 0D 0A)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:168)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
> at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
> at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.nio.charset.MalformedInputException: Input length = 1
> at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
> at org.apache.mina.common.ByteBuffer.getString(ByteBuffer.java:1036)
> at org.apache.ftpserver.listener.mina.FtpRequestDecoder.decode(FtpRequestDecoder.java:38)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:157)
> ... 8 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (FTPSERVER-61) Mina Port : Exception when storing a
file with special caracter
Posted by "Nicolas FROMENT (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FTPSERVER-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas FROMENT updated FTPSERVER-61:
-------------------------------------
Attachment: ça.txt
> Mina Port : Exception when storing a file with special caracter
> ---------------------------------------------------------------
>
> Key: FTPSERVER-61
> URL: https://issues.apache.org/jira/browse/FTPSERVER-61
> Project: FtpServer
> Issue Type: Bug
> Environment: Server on Linux RedHat, jre 1.4.2_10. Client FTPclient jakarta commons net
> Reporter: Nicolas FROMENT
> Attachments: ça.txt
>
>
> When trying to store a file named "ça.txt" on a ftpserver running with a MinaListener I got an the following stack trace :
> org.apache.mina.filter.codec.ProtocolDecoderException: java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: E7 61 2E 74 78 74 0D 0A)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:168)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
> at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
> at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.nio.charset.MalformedInputException: Input length = 1
> at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
> at org.apache.mina.common.ByteBuffer.getString(ByteBuffer.java:1036)
> at org.apache.ftpserver.listener.mina.FtpRequestDecoder.decode(FtpRequestDecoder.java:38)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:157)
> ... 8 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (FTPSERVER-61) Mina Port : Exception when storing a
file with special caracter
Posted by "Nicolas FROMENT (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FTPSERVER-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas FROMENT updated FTPSERVER-61:
-------------------------------------
Attachment: TestFtpMina.java
> Mina Port : Exception when storing a file with special caracter
> ---------------------------------------------------------------
>
> Key: FTPSERVER-61
> URL: https://issues.apache.org/jira/browse/FTPSERVER-61
> Project: FtpServer
> Issue Type: Bug
> Environment: Server on Linux RedHat, jre 1.4.2_10. Client FTPclient jakarta commons net
> Reporter: Nicolas FROMENT
> Attachments: TestFtpMina.java, ça.txt
>
>
> When trying to store a file named "ça.txt" on a ftpserver running with a MinaListener I got an the following stack trace :
> org.apache.mina.filter.codec.ProtocolDecoderException: java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: E7 61 2E 74 78 74 0D 0A)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:168)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
> at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
> at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.nio.charset.MalformedInputException: Input length = 1
> at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
> at org.apache.mina.common.ByteBuffer.getString(ByteBuffer.java:1036)
> at org.apache.ftpserver.listener.mina.FtpRequestDecoder.decode(FtpRequestDecoder.java:38)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:157)
> ... 8 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira