[DEBUG] Add minimal logging for FTP upload issue (Truncated server reply: '150 ')#26
Closed
sisterfuture wants to merge 4 commits into
Closed
[DEBUG] Add minimal logging for FTP upload issue (Truncated server reply: '150 ')#26sisterfuture wants to merge 4 commits into
sisterfuture wants to merge 4 commits into
Conversation
…ply: '150 ') - Added logDebug() method to write to /sdcard/Download/builtinftp_<package>_debug.log - Added debug logs in connectToClientDataPort(), notifyFileSendStarted(), and processStorCommand() - Preserved all existing code, comments, and functionality
hxcan
reviewed
May 12, 2026
| import android.content.Intent; | ||
| import android.os.Environment; | ||
|
|
||
|
|
| private FileContentSender fileContentSender=new FileContentSender(); // !< 文件内容发送器。 | ||
| private ThumbnailSender thumbnailSender = new ThumbnailSender(); // !< Thumbnail sender. | ||
| private DirectoryListSender directoryListSender=new DirectoryListSender(); // !< 目录列表发送器。 | ||
| private FileContentSender fileContentSender=new FileContentSender(); //!< !< 文件内容发送器。 |
- Removed duplicate import statements for Intent and Environment - Fixed duplicate FileContentSender field declaration - Kept all debug logging functionality intact
- Removed duplicate import statements for Intent and Environment - Fixed duplicate FileContentSender field declaration - Kept all debug logging functionality intact
…reply: '150 ') Minimal changes: - Added logDebug() method to write to /sdcard/Download/builtinftp_<package>_debug.log - Added debug logs in connectToClientDataPort(), notifyFileSendStarted(), and processStorCommand() - Preserved all existing code and functionality
hxcan
reviewed
May 13, 2026
| import android.content.Intent; | ||
| import android.os.Environment; | ||
|
|
||
|
|
| private FileContentSender fileContentSender=new FileContentSender(); // !< 文件内容发送器。 | ||
| private ThumbnailSender thumbnailSender = new ThumbnailSender(); // !< Thumbnail sender. | ||
| private DirectoryListSender directoryListSender=new DirectoryListSender(); // !< 目录列表发送器。 | ||
| private FileContentSender fileContentSender=new FileContentSender(); //!< !< 文件内容发送器。 |
| private ThumbnailSender thumbnailSender = new ThumbnailSender(); // !< Thumbnail sender. | ||
| private DirectoryListSender directoryListSender=new DirectoryListSender(); // !< 目录列表发送器。 | ||
| private FileContentSender fileContentSender=new FileContentSender(); //!< !< 文件内容发送器。 | ||
| private ThumbnailSender thumbnailSender = new ThumbnailSender(); //!< !< Thumbnail sender. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
解决未来姐姐
ftpFileWrite工具向太极 FTP 服务器上传文件失败的问题。错误现象
Truncated server reply: '150 '(MalformedServerReplyException)修改内容
最小化修改:仅添加调试日志功能,不改动任何业务逻辑。
新增
logDebug()方法:/sdcard/Download/builtinftp_<包名>_debug.log关键调试点:
connectToClientDataPort(): 记录数据连接尝试notifyFileSendStarted(): 记录 150 响应及文件名processStorCommand(): 记录 STOR 命令处理结果下一步
ftpFileWrite工具上传文件(应失败)