naidu / redmine-dmsf

Automatically exported from code.google.com/p/redmine-dmsf
0 stars 0 forks source link

Incorrect file download URL in file list when using proxy #199

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run Redmine behind a proxy (e. g. local URL="http://foo/redmine", external 
URL "http://r.example.com:8080/redmine")
2. verify that Redmine itself runs fire when using the both the internal and 
the external URL
3. upload a DMSF file
4. try to download the file from the DMSF page using the external URL (e. g. 
"http://r.example.com:8080/redmine/dmsf/myproject")

What is the expected output? What do you see instead?
The file URL should be something like
  http://r.example.com:8080/redmine/dmsf_files/123?download=
but is
  http://r.example.com/redmine/dmsf_files/123?download=
Notice the missing port number.

What version of the DMSF and Redmine are you using? On what browser and
operating
system?
Redmine 1.3.1, DMSF trunk, 
Chrome and Firefox 
Linux with nginx/Passenger (server), Win7 (client)

Please provide any additional information below.
Please see the attached diff file. Should url_for() used with the ":only_patj 
=> false" parameter?

Original issue reported on code.google.com by niels.bo...@gmail.com on 24 Feb 2012 at 6:33

Attachments: