-
-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response: 500 MLST command not understood [Axway Server] #1635
Comments
Correct.
I hope not. But it sure looks like it at first glance. Here's the what the RFC's say: ( see here ) If the server supports MLST he must advertise that. This then means he supports both, repeat, BOTH MLST and MLSD. The server can only advertise MLST, or not. An advertisement of MLSD is not defined in the RFC.Non-Standard servers, unfortunately, advertise all sorts of wrong things. Like for example, they advertise MLSD. Per RFC, this doesn't even exist as a valid advertisement. But, in our experience this means that the server supports MLSD and MLST. This server of yours, it advertises "MLSD" (<-bug #1) and probably wants to say, it supports MLSD but not MLST(<-bug #2). #1: MLSD is not a RFC allowed FEAT extension advertisement at all So FluentFTP then sets its flag, and MLST is used. What to do now? Correct FluentFTP's gracious acceptance of (many) servers reporting MLSD and really meaning MLST and MLSD**? Or handle this (one) server, which is also doing something incorrect, by not using MLST? Note that both are in the wrong. If we change FluentFTP's code to be RFC strictly compliant, both of the miscreants will suffer. The capability should be called MLST in the code and not MLSD. Global rename needed. |
I think we should introduce a new capability called MLST in addition to MLSD. Rename or not, I think here the better solution would be:
Is this a workable solution? FTP server appears to be Axway MFT as per the logs. I have never heard of this server before, and we do not have any FTP server detection logic for this either. |
I have no inkling how many clients out there rely on MLSD and MLST being allows if only MLSD is advertised, which is the current implementation.
Wow, where does this appear in the log, I am blind. Edit: Yeah, Google is our friend, ok.
Well, making MLST and MLSD separate capabilites would make it easier to differentiate. So much is clear. It still leaves the interpretation of only MLSD up to grabs: Either fix this issue and hurt some other users or vice versa. I don't know the numbers and I don't know the facts. |
The behaviour when "only MLSD" is present: Either we recognize the AxWay Server (which I would prefer, maybe), or we make it configurable by the user. |
I would also prefer this. I am just a bit unhappy that the server does not specify its name in the welcome message. But this would be the best way because it would "automatically" work for all new users without having to configure or setup anything. My proposed solution would be:
// return true if we can use MLST commands
CanUseMLST(){
if (MLSDIsExclusive){
return FtpCapability has MLST;
}else{
return FtpCapability has MLSD or FtpCapability has MLST;
}
}
// return true if we can use MLSD commands
CanUseMLSD(){
if (MLSDIsExclusive){
return FtpCapability has MLSD;
}else{
return FtpCapability has MLSD or FtpCapability has MLST;
}
} |
Full Ack.
Hmmm.
ipaddress "FTP server" n.n-date(yyymmdd) "ready." How safe would a grep for this be? Risky |
Its quite specific. It should work. |
@FanDjango any updates on this? |
I don't think anyone has made any progress on this. |
@anandgmenon Perhaps some incentive for @robinrodricks might be in order to develop special code for a quirky server such as the one you are exhibiting. Patreon? Sponsorship? I dunno, but the custom server mechanism actually also provides for you yourself to (perhaps with some small code changes by us) to cater for this problem. |
FTP Server OS: Unix
FTP Server Type: Axway
Client Computer OS: Windows
FluentFTP Version: 49.0.2
Framework: .NET 6
Hey I'm back with another issue/question. So one of our users faced an issue with the
GetObjectInfo()
method. It seems to be returningResponse: 500 'MLST /CER/INBOX/TEST_CLM.096FB412.20240820161946524': command not understood. See detailed logs below. My understanding from the code is FluentFTP checks if MLST is supported on the server or else fallback to get folder listiting to get the file metadata. Do we have a bug in this logic ?
Logs :
The text was updated successfully, but these errors were encountered: