External links in redmine

Added by William Lafleur almost 6 years ago

Hello all,
I've been trying to get my redmine to use the external links correctly. Any time I use them to link to a website, they work fine. However, any time I try to link to a folder or a folder on a server I cannot get them to work for the life of me. I've tried name_link:file://server/folder1/folder2 which doesn't create a link. I've also tried using just file: and source: and I even tried to use the http: tag but to no avail. I've tried doing this in IE, Firefox and Chrome and so far nothing has worked.

Help?

Thanks peoples! :)

Replies (14)

RE: External links in redmine - Added by Ivan Cenov almost 6 years ago

You want to link to files in the file system where Redmine resides, don't you?

RE: External links in redmine - Added by William Lafleur almost 6 years ago

Negative, the folder is located on a separate server. Is this possible?

RE: External links in redmine - Added by Ivan Cenov almost 6 years ago

I think this is not possible.

RE: External links in redmine - Added by William Lafleur almost 6 years ago

Yeah that's what I was thinking but wanted to ask around anyway.
Appreciate the help :)

RE: External links in redmine - Added by Ivan Cenov almost 6 years ago

William Lafleur wrote:

Yeah that's what I was thinking but wanted to ask around anyway.
Appreciate the help :)

There are too many 'appliances' in between: the file ---> Mongrel Redmine --> Apache --> the browser -> the human.

RE: External links in redmine - Added by Etienne Massip almost 6 years ago

Ivan Cenov wrote:

I think this is not possible.

Yep, for security reasons, I think this has been discussed in an old issue.

RE: External links in redmine - Added by Jason Palmer almost 6 years ago

We can do it on our site, but it is a bit convoluted as you have to enter a file alias and a full UNC path to the file or folder you are targeting:

"X:\Projects\Random\Downloads\setup.exe":file://///SERVER02/vol1/Projects/Random/Downloads/setup.exe

And you have to mess about if you have spaces in the path name (replace with %20):

"X:\Projects\Random\Downloads\Windows Updates":file://///SERVER02/vol1/Projects/Random/Downloads/Windows%20Updates

RE: External links in redmine - Added by Terence Mill almost 6 years ago

This also only works in IE. Fox and Chome won't support it!

Jason Palmer wrote:

We can do it on our site, but it is a bit convoluted as you have to enter a file alias and a full UNC path to the file or folder you are targeting:

[...]

And you have to mess about if you have spaces in the path name (replace with %20):

[...]

RE: External links in redmine - Added by Jason Palmer almost 6 years ago

Don't you love the way web browsers work. Interoperability doesn't seem to be a word they understand.

RE: External links in redmine - Added by E. Sambo over 5 years ago

I was just playing around in Redmine and got all of the following external file links to work on my Windows OS:

"UNC file name label":file://ServerName/Directory/Name/With%20Escaped%20Spaces
"UNC file name label":file://ServerName\Directory\Name\With%20Escaped%20Spaces
"UNC file name label":file:////\\ServerName/Directory/Name/With%20Escaped%20Spaces
"UNC file name label":file:////\\ServerName\Directory\Name\With%20Escaped%20Spaces
"UNC file name label":file://///ServerName/Directory/Name/With%20Escaped%20Spaces
"UNC file name label":file://///ServerName\Directory\Name\With%20Escaped%20Spaces
"UNC file name label":file://///\\ServerName/Directory/Name/With%20Escaped%20Spaces
"UNC file name label":file://///\\ServerName\Directory\Name\With%20Escaped%20Spaces

You may also want to Google for:
  • Redmine "Wiki-UNC-Link" Plugin
  • Google Chrome "LocalLinks" extension

RE: External links in redmine - Added by Dotan Cohen over 4 years ago

In order to link to another file on the filesystem, that file has to be either:
1) At an address that a webserver (not necessarily Passenger) can route to, i.e. in Apache's public_html directory for a virtual host.
- or -
2) Be accessible (permissions) to a script that is running in a webserver on the machine / LAN.

I'm not a ruby coder so I'll not be writing the Redmine plugin for this, but there is no reason that a plugin could not access the file for you and route it. In PHP the function is readfile(), and the appropriate HTTP headers should be supplied. Note that it won't be able to read arbitrary files from the filesystem, but you could designate a folder in /home/ or /home/someuser/ with the proper permissions.

Note that such a script is not of itself a security issue, however it could expose other security issues (i.e. permissions) to exploitation. Do not let it accept a full path, rather hard-code the path or an array of acceptable paths. Don't forget to filter input, blah blah blah, no arbitrary bash commands, blah blah.

RE: External links in redmine - Added by Luis Serrano Aranda over 1 year ago

It's possible enable the links to share units in Redmine?

Like -> file:\\aaaa\aa.pdf

Thanks

RE: External links in redmine - Added by Teena Biswas over 1 year ago

Redmine seems to frown on allowing links in wiki pages to open in a new window: [[http://smsaddons.com]]
This would be very good to add to the OSB though, since linking out to another resource (ModelDB, NeuroLex, Scholarpedia) might be best in a new tab.

(1-14/14)