Let me outline the scenario a little better. We're trying to do a protocol translation as follows:
1. User connects via SFTP to a new listener on the API Gateway (With SFTP PUT/LIST/STAT enabled)
2. User CDs to the relevant directory of the policy
3. User PUTs a new file to upload
4. Uploaded file is routed via HTTP to a backend system
We are seeing failures on the client side at step 3 due to the SFTP client trying to issue the LIST / STAT commands. The client error was noted above (note using the SSH2 route assertion as the client for testing only, the SFTP client from command line gets the same issue) - "SSH routing error: SSH2 Route Assertion error: Error getting directory listing: 4: Error parsing file info for: /path/of/policy"
How do I resolve the gateway not returning a valid LIST/STAT response when the gateway is acting as an SFTP server, with a HTTP backend?
It is worth noting that message processing is successful for the PUT command. Only the LIST/STAT commands fail, which results in the "Error parsing file info" type message