Non standard error message in core ftp server? (using SFTP)

Report bugs or issues with Core FTP Server here
Locked
arielb
Posts: 4
Joined: Wed Dec 21, 2011 12:11 pm

Non standard error message in core ftp server? (using SFTP)

Post by arielb »

Hey, i've played a bit with core ftp server,
i tried to access non existing directory, and i got the following error : "bad message":

Remote working directory is /
psftp>
psftp>
psftp> ls
Listing directory /
drw-rw-rw 1 root root 0 Dec 20 11:02 .
drw-rw-rw 1 root root 0 Dec 20 11:02 ..
psftp>
psftp>
psftp> cd asdadsfg
[b]Directory /asdadsfg: bad message[/b]
psftp> cd sdsdfsdfsdlfjksdlfks
[b]Directory /sdsdfsdfsdlfjksdlfks: bad message[/b]
psftp>


if i'm using any standard sftp server, i get the standard msg:
psftp>
psftp>
psftp> cd jkgkhg
Directory /home/myself/jkgkhg: [b]no such file or directory[/b]
psftp>


is this a bug in core ftp server?

its kinda urgent, thanks!
arielb
Posts: 4
Joined: Wed Dec 21, 2011 12:11 pm

Post by arielb »

by the way, i get the same "bad message" for a folder that i denied reading from it, and exists. instead of permission denied.

whats the deal?
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

It looks like it's the utility you are using is not handling the SSH_FX_FAILURE message.
arielb
Posts: 4
Joined: Wed Dec 21, 2011 12:11 pm

its not that,

Post by arielb »

I tried using putty, and even CURL library.
i get the same error, and not the standard.

what tool are you using? i can try to use that
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Looked into this issue again, and will change the response code to:
SSH_FX_NO_SUCH_FILE

Which looks like the error you are receiving.

Fixes will be in build 414 and greater.
arielb
Posts: 4
Joined: Wed Dec 21, 2011 12:11 pm

Perfect

Post by arielb »

But it needs to be QAed, to check that the putty receives that error
and for example, when i use CURL library, i should get 78 - remote file not found

thanks!
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Build 419 should have the updates
Locked