- Notifications
You must be signed in to change notification settings - Fork 99
Description
Describe the bug
basic-ftp fails with "530 Access denied" when send command "OPTS UTF8 ON" without TLS and correct credentials. This happens always, the server report fail, but with FileZilla has no problem connecting with the same credentials and not TLS.
Console output
With client.ftp.verbose = true
[2] Connected to XXXXXXXXXXX:21 (No encryption)
[2] < 220 Service ready for new user
[2]
[2] > OPTS UTF8 ON
[2] < 530 Access denied
[2]
[2] Login security: No encryption
[2] > USER XXXXXXX
[2] > QUIT
Which version of Node.js are you using?
v18.20.8
Which version of basic-ftp are you using?
5.0.5
Additional context
Is it possible to make a configuration options to send command optionals?
Because the server is very very old and use another encode.
await client.access({
host: "XXXXXX",
user: "XXXXXX",
password: "XXXXX",
secure: true,
enableCommand: {
utf8On: false, // default: true
}
})
if (optsUtf8On) {
await this.sendIgnoringError("OPTS UTF8 ON");
}