Defect #6627
closedmissing "add new file" in Files section
Added by Mike Lu about 14 years ago. Updated about 14 years ago.
0%
Description
after upgraded to 1.0.2, i found that i could no longer upload files in Files section since the link to upload new file is missing; however, uploading via attachment is still working.
Related issues
Updated by Holger Just about 14 years ago
Make sure the user you are testing with has the "Manage Files" permission in the respective project.
Apart from that, I can not reproduce this issue.
Updated by Mike Lu about 14 years ago
yes, user permission i'm testing could "Manage Files". another evidence is that "Delete" button has shown up. i had modified the source so that files could be uploaded to configured folder, i'll try to remove the modification to see if the problem is caused by that.
Updated by Mischa The Evil about 14 years ago
I'm not able to reproduce this behaviour on a clean checkout of 1.0-stable.
The issue is indeed most likely caused by some core-modifications...
Updated by Xagyg Wulf about 14 years ago
My upgrade reset role permissions. Re-checking "manage files" etc. fixed the problem. Just pointing this out here in case you weren't aware of that.
Updated by Holger Just about 14 years ago
- Status changed from New to Closed
- Resolution set to Cant reproduce
As this was resolved by removing core changes, I'm closing this issue.
Updated by Mike Lu about 14 years ago
- Status changed from Closed to Reopened
sorry that i didn't clearly list my environment, the version of my redmine should be trunk version on windows with apache2 and is served in a sub-URI "/redmine". and the user i tested with has checked to have "manage files" permission.
i have found the cause that as long as redmine is started in a sub-URI, the link of "New file" would be missing, with my modified version or with a clean checkout of trunk (r4249)
i have tried both thin and mongrel server that all showed up the same result:
- added
Redmine::Utils::relative_url_root = "/redmine"
to the bottom ofenvironment.rb
, after the lastend
statement - started the server with command
thin start -e production
orruby script/server start -e production
- link was missing in Files section
- applied the test on clean checkout and the link was also missing
- reverted the modification in
environment.rb
(noRedmine::Utils::relative_url_root = "/redmine"
at the end) - start the server with command
thin start -e production
orruby script/server start -e production
- link showed up
- applied the test on clean checkout and the link also showed up
so i don't think to problem is caused by my modification or my environment
Updated by Felix Schäfer about 14 years ago
- Affected version (unused) changed from 1.0.2 to devel
- Affected version deleted (
1.0.2)
Ah, I think that's one of Eric's refactors gone south. I think I had a solution up for that, though it seems it hasn't been added to trunk yet. I'll try to find it and poke him long enough that he commits it.
Updated by Felix Schäfer about 14 years ago
See if #6513 solves this for you, I think it's the same issue.
Updated by Mike Lu about 14 years ago
problem solved after backout the whole r3616
Updated by Jean-Philippe Lang about 14 years ago
- Status changed from Reopened to Closed
- Resolution changed from Cant reproduce to Fixed
Fixed in r4268.