directory path wrongly extracted from url (problems on chrooted accounts)
|Reported by:||blm||Owned by:|
|Keywords:||chroot, path, directory||Cc:|
|Component version:||Operating system type:||Windows|
|Operating system version:|
when we currently paste such ftp path
into filezilla it's extracted in the way:
the last part is not corrected
it should be just "directory"
without leading slash
why it make different?
on most ftp systems, root directory == user directory (and it make no difference)
when - for security reasons - account is chrooted, then slash from beginning point outside user directory and the path can't be found
on our system (with chroot)
/data (it's user "home" directory)
will fail, but when you login (your current directory is set to /data) and try
(relative path) everything will work fine.
so the whole bug is about removing 1st slash from directory path.
(only 1st, because path like (s)ftp://user:password@host//data/directory should work - in this case your using absolute path)
such way of parsing path is used for example in FF (and other programs)
if you have any questions please let me know.
I can also prepare test (valid for 24h) account on our system
(but I can't share it by ticketing system, so please mail me if such account would be helpful)