Project

General

Profile

Global file system repository base path

Added by Anonymous over 11 years ago

Keeping in mind the risk of exposing an entire file system if anyone with access to project settings tinkers with the path setting, is it possible--even if it requires some kind of code change--to set a global base path?

A nice idea would be setting a particular network share as the base path (I realize this would probably require a mount point for the share), and any project's repository could be set to whatever folder address within that share:

Base path = \\acmerepo
Project 1 repository path = \p1files
Result path--> \\acmerepo\p1files

I'd really like to guarantee some level of protection. I can always throw a quick is_admin? check into the project settings code and solve it that way, but the above would be a slightly more elegant result, I think.

Note: I was able to do this a very dirty way by editing /lib/redmine/scm/adapters/filesystem_adapter.rb where it defines @url (base path as a 'string' + the rest), but I'm not proud of it. :P