orlandos-nl / Citadel

SSH Client & Server in Swift
MIT License
224 stars 36 forks source link

SFTP server with Exec #45

Closed jdmcd closed 10 months ago

jdmcd commented 12 months ago

Adding an exec handler to an SFTP server causes this crash:

NIOCore/NIOAny.swift:200: Fatal error: tried to decode as type SSHChannelData but found IOData with contents ioData(IOData { ByteBuffer { readerIndex: 0, writerIndex: 9, readableBytes: 9, capacity: 9, storageCapacity: 32, slice: _ByteBufferSlice { 9..<18 }, storage: 0x00006000002058c0 (32 bytes) } })
2023-10-01 15:55:39.527637-0400 citadel-backend[53048:39683831] NIOCore/NIOAny.swift:200: Fatal error: tried to decode as type SSHChannelData but found IOData with contents ioData(IOData { ByteBuffer { readerIndex: 0, writerIndex: 9, readableBytes: 9, capacity: 9, storageCapacity: 32, slice: _ByteBufferSlice { 9..<18 }, storage: 0x00006000002058c0 (32 bytes) } })

CC @Joannis