﻿ticket	summary	type	release	owner	status	created	modified	_description	_reporter
9661	XmlRpc interface	enhancement	0.12		new	2012-01-04T05:47:09+01:00	2020-03-30T23:44:09+02:00	We've started using the 0.12 branch and it would be great if the commands for adding a download, deleting a download, etc ... could be executed over !XmlRpc. Right now we run a remote shell commands from our build server after copying over the new builds, but using RPC would be much more elegant.	Ryan J Ollos
12107	Update file via trac-admin	enhancement	1.0		new	2014-12-12T09:20:35+01:00	2020-03-30T23:44:09+02:00	"The trac-admin 'download' command supports the following:

   * download add - Add new download
   * download list - Show uploaded downloads
   * download remove - Remove uploaded download

I would like to update files that already exist. I guess I could remove it and add it again. The disadvantage is that the various properties that have been applied would need to be maintained (list/parse and then use in the add). The list command does not really offer something that is easy to parse as there are no field delimiters.

It would be great if there was a ''download update'' command. If it takes the name of the file or the ID is not important (to me at least). I guess the ID would be best as a file with the same name could exist more than once. It should maintain all existing information, except the file size and the uploaded date."	roger.oberholtzer@…
7806	TracDownload Enhancement	enhancement	0.12		new	2010-10-09T08:36:06+02:00	2020-03-30T23:44:09+02:00	"Hi, it's good plugin and is it any plan to include below features in future roadmap?
 1. show download items by page, can set how many items will be displayed in one page.
 1. Edit function for attributes like (architecture/version...) of each download item;[[BR]]
 1. Access control of each items by user/group[[BR]]

Thanks.[[BR]]

Link"	anonymous
9826	The uploaded column should display on a single line unless the page is too narrow	defect	0.12		new	2012-02-16T22:08:04+01:00	2020-03-30T23:44:09+02:00	"When the `Uploaded` column is shown, it uses 2 lines, even if the page is wide enough that it only needs to occupy a single line.

[[Image(UploadedColumnWraps.png)]]"	Ryan J Ollos
9870	Store file checksum in database	enhancement	0.12		new	2012-03-01T06:56:53+01:00	2020-03-30T23:44:09+02:00	"We are using the DownloadsPlugin as a database for our software releases. Since the download itself is not stored in the database, the checksum should be.

Blackhex: I'm hoping to implement this feature and provide a patch within the next six months.
"	Ryan J Ollos
4797	Separate sections of downloads visually	enhancement	0.11		new	2009-03-17T10:51:01+01:00	2016-11-28T10:05:10+01:00	"It would be nice to define sections that show up in the table with a special table header. That is, if you have three different modules in your project it would be great to show three different tables -- each for every module.

Comment from Blackhex:
''I think this can be done now by using custom template, but I can think of possibility to define extension points that could be used by dependent components that would provide visual style for downloads table. In that case custom plugins for DownloadPlugin would be possile to make similarly as it is in ScreenshotsPlugin.''

At least it would be good to seperate sections visually according to some tag that is given by the webadmin via the Admin-frontend or use the ""component"" or ""version"" field instead."	roehricht@…
14144	Python 3 compatibility	defect		ttressieres	new	2022-06-04T13:34:56+02:00	2022-10-22T10:13:08+02:00	"Hello,
This plugin seems to need only one change to run with Python 3.

{{{
  File ""/usr/local/lib/python3.10/dist-packages/tracdownloads/api.py"", line 827
    except Exception, error:
           ^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized (api.py, line 827)
}}}

As said by Python, adding the parentheses there fixes the problem. Could you integrate that in the next release? Thanks!"	pulkomandy@…
12108	Organize file list in a tree	enhancement			new	2014-12-12T10:09:37+01:00	2020-03-30T23:44:09+02:00	"When there are lots of files in the download area, it might be nice to be able to organize them in an expandable tree. It is possible that existing properties (e.g., platform, uploaded) could be used for this. Or perhaps a new one just for this (e.g., grouping). I am thinking about the table of available downloads.

I know that this could get complicated in that once you have a tree, how deep should it be? If one had a grouping variable, it could be like this:
 * In the absence of a value for the grouping, the item is shown in the !root, as it is today. So, if you don't do anything, the downloads look the same.
 * If you add a grouping string, it could be something like ''level1'' or ''level1/level2'', etc. Each forward slash adds a level in the tree."	roger.oberholtzer@…
14044	not work with Trac 1.4?	defect	1.4	ttressieres	new	2021-08-16T11:23:22+02:00	2021-11-19T14:41:14+01:00	"Hi I have just installed fresh Trac 1.4.3. (we need to upgrade and move our actual Trac 0.12 to new OS :). So after installation plugin  downloadsplugin-18442.zip it is not work with Trac 1.4.3. IS this plugin still alive? looks like not. After installation and adding default new tags like below:

{{{
[downloads]
additional_tags = author,component,version,architecture,platform,\
                  type # If TagsPlugin is installed
architecture_sort = name
architecture_sort_direction = asc
consoleadmin_user = anonymous
download_sort = time
download_sort_direction = desc
ext = zip,gz,bz2,rar
max_size = 268697600
path = ../downloads
platform_sort = name
platform_sort_direction = asc
type_sort = name
type_sort_direction = asc
unique_filename = False
visible_fields = id,file,description,size,time,count,author,tags,\
                 component,version,architecture,platform,type
[components]
tracdownloads.* = enabled
}}}

Trac not work. I can't made project upgrade:

{{{
[root@centos8-1 ~]#  trac-admin /opt/Trac/Firstproject/ upgrade
Error: Unable to check for upgrade of tracdownloads.init.DownloadsInit: TypeError: environment_needs_upgrade() takes exactly 2 arguments (1 given)
}}}

Any help?"	mliszka@…
13394	Issue with file upload and delete.	defect	1.2		new	2018-03-19T08:31:58+01:00	2020-03-30T23:44:09+02:00	"When I upload a file (either in the Web interface or on the command line), I get this message:
{{{
TracError: Error storing file someFile.txt. Does the directory specified in path config option of [downloads] section of trac.ini exist?
}}}

The {{{path}}} exists and has permissions that should allow full access.

There is no message in the trac.log file nor in the various Apache log files.

I also see that when I deleted a couple of files. the corresponding disk files and directories did not get deleted. At that time there was no error message."	anonymous
9118	DOWNLOAD_DELETE permission	enhancement	0.12		new	2011-08-23T17:44:14+02:00	2020-03-30T23:44:09+02:00	It would be great to add permission DOWNLOADS_DELETE and an ability to delete files straight through Download section of the main page.	c.davydov@…
7801	Details page for downloads	enhancement	0.12		new	2010-10-08T13:18:07+02:00	2020-03-30T23:44:09+02:00	Some information like the upload time is interesting to have but too much information if you got a long list of downloads. Would be nice if there would be a button next to each entry that shows all the properties for that download. This way one could hide stuff like size or uploader and have a simplified view on all the downloads.	ak@…
5210	Collect and display downloads statistics	enhancement	0.12		new	2009-05-08T23:36:38+02:00	2020-05-01T06:51:13+02:00	There should be collected more information about downloads than just downloads count. Such a staightforward information is username, e-mail, downloadtime, IP, country, host system, etc. This information may be then visualized with for example Google Chart API.	Radek Bartoň
9869	Add a parameter to control visibility of the downloads	enhancement	0.12		new	2012-03-01T06:51:53+01:00	2016-11-28T10:14:13+01:00	"We are using the DownloadsPlugin as a database for our software releases. We'd like the ability to retain downloads, but hide them from end users. This will allow us to archive old releases, retaining them in the database, but preventing users from accessing them and removing old clutter from the downloads page. I propose the column be labeled `Visible` or `Archive`.

Blackhex: I'm hoping to implement this feature and provide a patch within the next six months."	Ryan J Ollos
7796	[Patch] User capabilities to edit description and tags after upload	enhancement	0.12		new	2010-10-08T12:41:17+02:00	2020-05-18T18:57:54+02:00	Currently only the admin can modify the tags/description of the uploaded files. I (as a normal user) just uploaded a file and forgot to enter the tags, now I have to go to the TRAC admin to have that fixed...	ak@…
9981	[PATCH] SQL injection vulnerability patch for TracDownloads	defect	0.12		new	2012-04-19T15:24:46+02:00	2017-03-27T06:44:16+02:00	"
There is a SQL injection vulnerability in the [DownloadsPlugin Trac Downloads plugin].

Two patches are provided as attached:

1. tracdownloads_sql_injection_vulnerability.patch

2. tracdownloads_patch_complete.patch

Use the first ""sql injection vulnerability"" patch to fix the vulnerability. The patch also introduces fix in the download link resolver (link generation for download files in wiki context) by file.

A more complete, but unfortunately largely untested, ""complete"" patch contains the first ""sql injection vulnerability"" patch and also introduces other fixes, like:

- Editing just the description of the downloads won't crash. (If editing just the description of the downloads, you shouldn't expect any file to be uploaded)
- Since components should not use self.*, add a dict req_data and use that instead. This improves the security of concurrency.

Unfortunately, I haven't been able to test this with Vanilla trac, and I give no guarantees whatsoever. However, the first patch should work without problems.

My environment consists of Apache, Linux, Python 2.6, and Trac 0.12.1.
"	Aleksi Hanninen
7800	[Patch] Downloads should show up in search	enhancement	0.12		new	2010-10-08T12:50:12+02:00	2020-05-01T06:51:13+02:00	It would be great if there is a check box in the trac search to include Downloads (similar to the blog plugin or others). Should list all downloads whose file name or description match the search string.	ak@…
3551	[Patch] Automatic insertion and removal of dowloads from server directory.	enhancement	0.10		new	2008-08-14T00:35:58+02:00	2016-11-28T10:02:12+01:00	I've written a replacement api.py for version 0.10 trac that you can use, it auto-detects new files in the releases directory and adds them to the downloads list, and it also removes nonexistent files.  It also uses heuristics to guess several columns for the download table.  The code explains itself	rudd-o@…
