Set active project when using FTP
|Reported by:||nicklas||Owned by:||nicklas|
|Priority:||major||Milestone:||FTP Server v1.2|
Description (last modified by nicklas)
There is an issue with the FTP access to BASE. A user is only able to see files that he/she is the owner of or that are shared directly to the user (possible via a group membership). It is not possible to see files that are shared via a project, since there is no way to activate a project with the FTP client.
The simplest solution to this is to add a configuration dialog in the web interface that allows a user to select a project that should automatically be activated on FTP access. There could be 3 options:
- no project is activated
- a specific project is activated
- the last project used in the web client is activated
In all cases it would be nice if the currently active project could be sent in the reply after logging in with FTP. I'll have to check if that is possible or not.
In the longer perspective it might be possible to use the USER/PASS/ACCT login procedure for FTP, where ACCT can be used to specify a project. Unfortunately the Apache FTP libraries only support USER/PASS login at the moment.
Another idea is to use specially formatted login name that also includes the project name, for example: nicklas<my project>. This assumes that we can use a special character to use as a delimiter between login name and project name.