Skip to content

AWS SFTP: EOF while reading packet with version 0.32.0 #750

@pimenas

Description

@pimenas

Hello,

After upgrading to 0.32.0 we get the following exception when trying to upload to AWS SFTP service:

EOF while reading packet
net.schmizz.sshj.sftp.SFTPException: EOF while reading packet
	at net.schmizz.sshj.sftp.PacketReader.readIntoBuffer(PacketReader.java:55)
	at net.schmizz.sshj.sftp.PacketReader.getPacketLength(PacketReader.java:60)
	at net.schmizz.sshj.sftp.PacketReader.readPacket(PacketReader.java:76)
	at net.schmizz.sshj.sft
p.PacketReader.run(PacketReader.java:88)

With other sftp servers e.g. OpenSSH this doesn't happen. With 0.31.0 no error happens as well.

Attached a debug log of when this issue is reproduced
test.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions