Bug in version 1.10.1

27 views
Skip to first unread message

Joe

unread,
Jan 12, 2012, 5:53:09 PM1/12/12
to AndreasLiebig
I have been using FTPserver for about a year with no problems, until
the latest version. In preferences I set the default directory to /mnt/
sdcard and check "restrict access to default directory and
subdirectories". Now when I access it from my PC I get an error:
"550 requested action not taken. /mnt/sdcard/mnt/sdcard does not
exist..." (/mnt/sdcard twice)
I also use SyncBackPro on my PC to backup my phone daily. This also
stopped working with the same error.
The only way it will work now is to Uncheck "restrict access to
default directory and subdirectories".
I did not have this problem with previous versions. The last version
I used was 1.9.0 and it worked flawlessly.

I'm using an HTC Incredible with Gingerbread.

Andreas Liebig

unread,
Jan 13, 2012, 1:47:39 AM1/13/12
to andreasl...@googlegroups.com

Hi.

It is not a Bug, it is a Feature:
I changed the behavior a bit:
If restrictions are set, then the default directory is seen ast he root of the file system,

so that the rest of the files are truly hidden.

So if ur restriction is on /mnt/sdcard, then the path for that directory is / (for /mnt/sdcard/test it would be /test)

If there is NO restriction, the default directory is really just default and therefor the path to access /mnt/sdcard stays /mnt/sdcard.

I hope that makes it clear.

But thank you for bringing it up, maybe I have to add some explanation.

Have a good day.

Andreas

--
You received this message because you are subscribed to the Google Groups "AndreasLiebig" group.
To post to this group, send email to andreasl...@googlegroups.com.
To unsubscribe from this group, send email to andreasliebiga...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/andreasliebigapps?hl=en.

Antoine

unread,
Feb 18, 2012, 5:12:02 AM2/18/12
to AndreasLiebig
Hello,

The behaviour change Andreas described causes a different problem when
I connect to my device with FileZilla.

- Filezilla connects as expected and lists the files in "/mnt/sdcard/
Documents" (the default folder I chose)
- When I upload a file, upload succeeds, but the new file is not
visible in the Filezilla folder view (or it appears but can't be
accessed)
- When I disconnect and reconnect Filezilla, I notice that the file
was in fact uploaded to the wrong location, "/mnt/sdcard/Documents/mnt/
sdcard/Documents"

I was able to work around this problem by unsetting "restrict access
to default directory and subdirectories", but I don't see how this can
be considered a feature.
It seems to me the directory restriction feature does not behave as
FTP clients expect: the default folder is considered the root of the
file system by FTPServer, but Filezilla does not see it as "/", it
sees it as "/mnt/sdcard/Documents". As a result this feature became
unusable.

Antoine


On Jan 13, 8:47 am, Andreas Liebig <lutey1...@gmail.com> wrote:
> Hi.
>
> It is not a Bug, it is a Feature:
> I changed the behavior a bit:
> If restrictions are set, then the default directory is seen ast he root of
> the file system,
>
> so that the rest of the files are truly hidden.
>
> So if ur restriction is on /mnt/sdcard, then the path for that directory is
> / (for /mnt/sdcard/test it would be /test)
>
> If there is NO restriction, the default directory is really just default
> and therefor the path to access /mnt/sdcard stays /mnt/sdcard.
>
> I hope that makes it clear.
>
> But thank you for bringing it up, maybe I have to add some explanation.
>
> Have a good day.
>
> Andreas

Augustus Brown

unread,
Feb 28, 2012, 2:25:02 PM2/28/12
to AndreasLiebig
On Feb 18, 10:12 am, Antoine <antoine.chauv...@gmail.com> wrote:
> Hello,
>
> The behaviour change Andreas described causes a different problem when
> I connect to my device with FileZilla.
>
> - Filezilla connects as expected and lists the files in "/mnt/sdcard/
> Documents" (the default folder I chose)
> - When I upload a file, upload succeeds, but the new file is not
> visible in the Filezilla folder view (or it appears but can't be
> accessed)
> - When I disconnect and reconnect Filezilla, I notice that the file
> was in fact uploaded to the wrong location, "/mnt/sdcard/Documents/mnt/
> sdcard/Documents"
>
> I was able to work around this problem by unsetting "restrict access
> to default directory and subdirectories", but I don't see how this can
> be considered a feature.
> It seems to me the directory restriction feature does not behave as
> FTP clients expect: the default folder is considered the root of the
> file system by FTPServer, but Filezilla does not see it as "/", it
> sees it as "/mnt/sdcard/Documents". As a result this feature became
> unusable.

I agree.

I see the same issues with 1.10.3/Galaxy Ace/FileZilla.

To work properly with FTP clients, I think the server should report
the CWD as "/" rather than "/mnt/sdcard" when restricting access to
the default dir and below.

This should fix the issue with FileZilla (and other clients).

I think other FTP servers behave similarly - effectively the default
directory becomes root for the ftp server.
The client is unaware that there are any other directories on the
server, because the true directory name is never revealed to the
client.

Please can you fix the code accordingly?
Thanks!

Andreas Liebig

unread,
Mar 1, 2012, 1:50:00 AM3/1/12
to andreasl...@googlegroups.com
Hello.

I am aware of this problem and will provide a fix for it.
Currently I am working on some internal changes that need to be done
first though.
For now, I fear the only work around is to turn the directory restriction off.

Sorry for this, I will fix this as soon as possible.

Andreas

Reply all
Reply to author
Forward
0 new messages