[ https://issues.apache.org/jira/browse/FTPSERVER-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719978#action_12719978 ]
Niklas Gustavsson commented on FTPSERVER-316: --------------------------------------------- >From the stacktrace, it looks like the client sent some non UTF-8 characters >which the server could not handle. Now, we have fixed this problem in the >about-to-be-released 1.0.2. In the current versions, when receving incorrectly >encoded characters, the server would kill the session. In 1.0.2, we will >instead send an error message to the client and allow the session to continue. >Could you possibly try upgrading to 1.0.2 as soon as it is released? > FTP-1.0.0 some exceptions were cast ,when trying to upload file via the > public network. > ---------------------------------------------------------------------------------------- > > Key: FTPSERVER-316 > URL: https://issues.apache.org/jira/browse/FTPSERVER-316 > Project: FtpServer > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Environment: linux > Reporter: Yajun Dong > > client log/ flush fxp : > [02:23:52] [右] STOR > [52wy][Dragon_Ball_Kai][008][x264_aac][Chs_Cht_Jpn][720P][1BB41708].mkv > [02:23:52] [右] 150 File status okay; about to open data connection. > [02:23:59] (轻度中止) > [02:23:59] [右] ABOR > [02:24:00] (强行中止) > [02:24:00] [右] 551 > /longzhugai/[52wy][Dragon_Ball_Kai][008][x264_aac][Chs_Cht_Jpn][720P][1BB41708].mkv: > Error on output file. > [02:24:00] [右] 传送失败! > [02:24:00] [右] 连接丢失: 61.153.153.3 > =========================== > ftp server log: > [ INFO] 2009-06-15 02:25:33,893 [ikustih] [220.189.250.117] IOException > during data transfer > java.io.EOFException: Unexpected end of ZLIB input stream > at > java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223) > at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) > at java.io.BufferedInputStream.read(BufferedInputStream.java:317) > at java.io.FilterInputStream.read(FilterInputStream.java:90) > at > org.apache.ftpserver.impl.IODataConnection.transfer(IODataConnection.java:254) > > at > org.apache.ftpserver.impl.IODataConnection.transferFromClient(IODataConnection.java:137) > > at org.apache.ftpserver.command.impl.STOR.execute(STOR.java:163) > at > org.apache.ftpserver.impl.DefaultFtpHandler.messageReceived(DefaultFtpHandler.java:169) > > at > org.apache.ftpserver.listener.nio.FtpHandlerAdapter.messageReceived(FtpHandlerAdapter.java:65) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:722) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > > at > org.apache.ftpserver.listener.nio.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:114) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > > at > org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:59) > at > org.apache.mina.filter.logging.MdcInjectionFilter.filter(MdcInjectionFilter.java:137) > > at > org.apache.mina.filter.util.CommonEventFilter.messageReceived(CommonEventFilter.java:70) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > > at > org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:392) > > at > org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:228) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > > at > org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:59) > at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64) > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:552) > > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:544) > > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:488) > > at java.lang.Thread.run(Thread.java:619) > [ WARN] 2009-06-15 02:25:34,256 [ikustih] [220.189.250.117] SENT: 150 File > status okay; about to open data connection. > [ERROR] 2009-06-15 02:25:34,257 [ikustih] [220.189.250.117] EXCEPTION : > org.apache.mina.filter.codec.ProtocolDecoderException: > java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: FF F2 FF > 41 42 4F 52 0D 0A) > at > org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:234) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > > at > org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:59) > at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64) > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:552) > > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:544) > > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:488) > > at java.lang.Thread.run(Thread.java:619) > Caused by: java.nio.charset.MalformedInputException: Input length = 1 > at java.nio.charset.CoderResult.throwException(CoderResult.java:260) > at > org.apache.mina.core.buffer.AbstractIoBuffer.getString(AbstractIoBuffer.java:1130) > > at > org.apache.mina.filter.codec.textline.TextLineDecoder.decodeAuto(TextLineDecoder.java:207) > > at > org.apache.mina.filter.codec.textline.TextLineDecoder.decode(TextLineDecoder.java:138) > > at > org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:224) > > ... 9 more > [ERROR] 2009-06-15 02:25:34,257 [ikustih] [220.189.250.117] Exception caught, > closing session > org.apache.mina.filter.codec.ProtocolDecoderException: > java.nio.charset.MalformedInputException: Input length = 1 (Hexdump: FF F2 FF > 41 42 4F 52 0D 0A) > at > org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:234) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > > at > org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:59) > at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64) > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:552) > > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:544) > > at > org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:488) > > at java.lang.Thread.run(Thread.java:619) > Caused by: java.nio.charset.MalformedInputException: Input length = 1 > at java.nio.charset.CoderResult.throwException(CoderResult.java:260) > at > org.apache.mina.core.buffer.AbstractIoBuffer.getString(AbstractIoBuffer.java:1130) > > at > org.apache.mina.filter.codec.textline.TextLineDecoder.decodeAuto(TextLineDecoder.java:207) > > at > org.apache.mina.filter.codec.textline.TextLineDecoder.decode(TextLineDecoder.java:138) > > at > org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:224) > > ... 9 more > [ WARN] 2009-06-15 02:25:34,258 [ikustih] [220.189.250.117] SENT: 551 > /longzhugai/[52wy][Dragon_Ball_Kai][008][x264_aac][Chs_Cht_Jpn > ][720P][1BB41708].mkv: Error on output file. > [ INFO] 2009-06-15 02:25:34,258 [ikustih] [220.189.250.117] RECEIVED: ABOR > [ WARN] 2009-06-15 02:25:34,259 [ikustih] [220.189.250.117] CLOSED -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.