- Status Closed
- Percent Complete
- Task Type Bug Report
- Category User Interface
- Assigned To No-one
- Operating System All
- Severity Medium
- Priority Very Low
- Reported Version 1.0-rc6
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#2458 - Cannot add attachments after upgrade from rc1 to rc6
So we could add attachments before the upgrade, now we can’t. Not even me as Admin.
The attachments folder was kept unchanged during upgrade per the intructions.
Old attachments still exist and can be opened and have a delete checkbox.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
?
Please add Screenshot(s).
All webbrowsers or only one specific affected?
Web server config changed? Which web server?
Here's the add new task view
And this is the comment with no attachment option
Running Firefox 58.0.2 (64-bit) on Windows 7
Same problem with Internet Explorer by the way
The server is Archlinux with apache
Server version: Apache/2.2.14 (Unix)
Server built: Nov 7 2009 12:15:30
First, show if the markup exists (show source in webbrowser)
something like this:
If not, the permission 'create_attachments' is not set right for the current user.
For a quick live test as admin, add
before
in themes/CleanFS/templates/newtask.tpl
(around line 229 of newtask.tpl)
And how is your "create attachments" permission row looking?
See /index.php?do=pm&area=groups&project=1 for instance for project_id=1
There is also a possibility that uploads are not possible at all:
https://github.com/Flyspray/flyspray/blame/master/includes/class.user.php#L153
In this case the create_attachments the upload html markup is never shown.
What is the
value?
This value is calculated here
https://github.com/Flyspray/flyspray/blame/master/includes/class.flyspray.php#L89
So the markup is not there....
And I don't seem to have the create_attachment right, see attached log.
I'm in the admin group and my co-wroker in the developers group I can see that the create_attachment right is ticked, but he can't create and attachment, i.e. button etc not visible
I even tried removing the tick, save, adding the tick back and save and that does not help.
Seems max_file_size is 0... but it's not immediately clear how to change it. We had it at 2MB I think before upgrading.
php.ini
file_uploads: On
memory_limit: 128M
post_max_size: 8M
upload_max_filesize: 2MB
Ok I found it myself now, the attachments folder was no longer writable....
And after some looking at the command history... seems I have copied the flyspray rc6 distro folder into the old rc1 folder, and there's an empty attachments folder in the disto, and that must have changed the writable attribute of the old attachments folder...
It would be great if the Admin Toolbox had an attachments tab with an on/off switch, a max size setting, and it would print out all the reasons why it can't set it to your desired value.
I added a new fetaure task FS#2459 for the settings in the admin toolbox, this task can be closed. Thanks for the help!