Ticket #3168 (closed defect: fixed)
Opened 6 years ago
Last modified 5 years ago
No File Upload error from WebAdmin when using install plugin function.
| Reported by: | skasulka@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | admin/web | Version: | devel |
| Severity: | major | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
In the 'Install Plugin:' part of WebAdmin I try to install a .egg file un the 'File:' field. I hit 'Install' and I get and error 'No file uploaded'.
Thanks
Shawn
Attachments
Change History
comment:1 Changed 6 years ago by Darren Govey
comment:2 Changed 5 years ago by agraham
Replicated with new install of 0.10rc1 and current SVN build of WebAdmin
comment:3 Changed 5 years ago by agraham
- Version changed from 0.9.5 to 0.10
Got bored and tracked this down. The issue boils down to the plugin being uploaded being referred to by two different variable names. In plugin.py, _do_install checks for the key "plugin_file", while the template form uses the name "egg_file" for the same data. Since _do_install should accept a bare .py file as well as eggs, the template should be modified to use plugin_file.
Changing the names to match resolves the issue for me in an install based on r3772.
Changed 5 years ago by agraham
- Attachment plugin_upload.patch added
patch to the template file to allow uploads
Changed 5 years ago by Dave Abrahams <dave@…>
- Attachment admin_plugins.html.patch added
Corresponding patch for 0.11
comment:5 Changed 5 years ago by Dave Abrahams <dave@…>
- Keywords 0.10, 0.11 added
- Version changed from 0.10 to devel
It does; I added a corresponding patch.
comment:6 Changed 5 years ago by cboos
- Keywords 0.10, 0.11 removed
- Resolution set to fixed
- Status changed from new to closed



I'm getting this too when using the TracVM VMWare Appliance to host Apache/Trac?/SVN.
See the TracVM project page for details.
I'm logged into Linux and Trac as "admin".
I'm using Firefox 1.5.0.6. on Windows XP SP2
The egg I tried to install was TicketDelete?-0.1-py2.3.egg, obtained from the "ticketdeleteplugin\0.9\dist" directory of this zip file (after it was extracted locally to my c: drive.