Show users a friendly URL instead of the repo's full path
It’s the same situation as #2075 (Redmine-as-SourceForge), but another issue: since users cannot access the server’s filesystem, the server must provide URLs for external access. They will exist, but the Repository tab shows the repo’s full path instead, and the URLs users can actually use have to be shown elsewhere.
The way I see it, given #2075, since nobody but the Redmine admins can access the filesystem, nobody but the Redmine admins should be able to see the paths in the first place. So, in the vein of the Redmine Checkout plugin, I propose an extra functionality where Redmine admins may provide a mapping from the repo’s path (what Redmine actually stores and uses) to its corresponding public URL (which is what users and project managers can see and use).
#3 Updated by Humberto Anjos over 9 years ago
Andriy Lesyuk wrote:
I did not get the issue...
Can you show by examples? What external URL is shown and what it should be?
The URLs the Repository tab shows are the ones Redmine stores and uses: say,
file:///var/lib/svn/project.repo_id. But users can’t get to the server’s filesystem, so they need externally accessible URLs, like
http://redmine.host/svn/project.repo_id. It’s easy to configure Apache to make the HTTP URLs, but there’s no way to configure Repository tab to show users the HTTP URL instead of the file:// URL, which is useless to the user.
Also, on the heels of #2075, the actual file:// URLs should only seen by the Redmine admins, for whom this information is relevant. All the other users have no need to know where in the server the repos actually are. So, when project managers are creating a new repository, they should see something like
http://redmine.host/svn/project.repo_id the whole time, even though what Redmine actually stores is
Does all this make sense? I can expand more once I get to work
#5 Updated by Humberto Anjos over 9 years ago
Andriy Lesyuk wrote:
I may have expressed myself poorly (again). I’ll start posting these at work where I can actually see the Redmine instance...
file:///var/lib/svn/project.repo_idshown for users? Please give me screenshot.
The file:// URL is visible at the project’s Settings tab, subtab Repositories, column Repository, accessible at
http://<redmine-host>/projects/<project>/settings?tab=repositories, as in the screenshot below:
In my situation any user can create projects, and so they will encounter file:// URLs sooner or later.
#10 Updated by Andriy Lesyuk over 8 years ago
Alatar Al wrote:
Can you explain why you use local path for redmine pero setting? As I understand, you need local path only on repo create stage but after creation redmine can work with this repo over common interface (svn: or http:).
I guess, this question was to me (please use Forums in such cases)... The same way SVN can access a repo using
file:// is much faster as it does not involve client-server.