You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i have a integration test with a custom sftp testcontainer. In this integration test i can connect to the container and the first test runs threw without any issues. But all other test fail with the exception code 4. When i debug the connection is still established i can use pwd() but the commands cd() and ls() are not working. After investigating I saw that this method causes the issue:
private byte[] _realpath(String path) throws SftpException, IOException, Exception {
sendREALPATH(Util.str2byte(path, fEncoding));
Header header = new Header();
header = header(buf, header);
int length = header.length;
int type = header.type;
fill(buf, length);
if (type != SSH_FXP_STATUS && type != SSH_FXP_NAME) {
throw new SftpException(SSH_FX_FAILURE, "");
}
int i;
if (type == SSH_FXP_STATUS) {
i = buf.getInt();
throwStatusError(buf, i);
}
i = buf.getInt(); // count
byte[] str = null;
while (i-- > 0) {
str = buf.getString(); // absolute path;
if (server_version <= 3) {
byte[] lname = buf.getString(); // long filename
}
SftpATTRS attr = SftpATTRS.getATTR(buf); // dummy attribute
}
return str;
}
did anyone find a solution to this problem except of restarting the container?
The text was updated successfully, but these errors were encountered:
Unfortunately I cannot understand what issue you are having based upon your description, as I do not have any idea what you mean by "exception code 4".
Can you provide more details as to what Exception you are seeing (by providing the full Exception message and stack trace)?
And can you also confirm this happens with our most recent release?
Hello,
i have a integration test with a custom sftp testcontainer. In this integration test i can connect to the container and the first test runs threw without any issues. But all other test fail with the exception code 4. When i debug the connection is still established i can use pwd() but the commands cd() and ls() are not working. After investigating I saw that this method causes the issue:
did anyone find a solution to this problem except of restarting the container?
The text was updated successfully, but these errors were encountered: