Opened 11 years ago

Closed 11 years ago

#1147 closed bug (Fixed)

Cannot upload a torrent in a multi-user system via the web interface

Reported by: _Lemon_ Owned by: damoxc
Priority: critical Milestone:
Component: Web UI Version: 1.2.0
Keywords: upload torrent web Cc:

Description

In a multi-user environment, e.g. every user running their own deluged and deluge-web as a separate user on the system, when uploading a torrent the second user to do so will get a eternal "uploading torrent" dialogue in the web ui.

I have diagnosed the problem to this file: http://dev.deluge-torrent.org/browser/trunk/deluge/ui/web/server.py#L167

The first time a user uploads a torrent a "delugeweb" directory is created. This is owned by the first user and has the default file permissions (0700 on our systems).

If a second user then tries to upload a torrent this will fail as the directory is owned by the first and they do not have write permission.

This bug *may* be related to the ticket: http://dev.deluge-torrent.org/ticket/1087

Possible solutions:

  • A folder name based on the user e.g. "delugeweb-$userID".
  • A call to set 0777 permissive restrictions on the folder when created. However this would require the uploaded torrents to be set to 0600 (the default but hey... let's make sure?) afterwards.

Change History (2)

comment:1 Changed 11 years ago by damoxc

I had overlooked this (oops). I think the best course of action will be delugeweb-username, easiest way to avoid any possible conflicts.

comment:2 Changed 11 years ago by damoxc

  • Resolution set to fixed
  • Status changed from new to closed

This is now fixed in git and will be in 1.2.1.

Note: See TracTickets for help on using tickets.