Opened 13 years ago

Closed 13 years ago

#329 closed task (fixed)

Set active project when using FTP

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: FTP Server v1.2
Component: net.sf.basedb.ftp Keywords:
Cc:

Description (last modified by Nicklas Nordborg)

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.

Change History (3)

comment:1 by Nicklas Nordborg, 13 years ago

Description: modified (diff)

Added idea to include a project name in the login.

comment:2 by Nicklas Nordborg, 13 years ago

Description: modified (diff)
Status: newassigned

comment:3 by Nicklas Nordborg, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [1399]) Fixes #329: Set active project when using FTP

I have implemented the third alternative. A project can be set active when logging in by using a login name as: username<projectname>.

Note: See TracTickets for help on using tickets.