Project

General

Profile

Actions

Patch #6475

open

Add an option to set the project name from apache when authenticating with Redmine.pm

Added by Sergio Talens-Oliag over 14 years ago. Updated over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM extra
Target version:
-
Start date:
2010-09-23
Due date:
% Done:

0%

Estimated time:

Description

I have some repositories that are configured with SVNPath instead
of SVNParentPath (I'm doing it to be able to use additional
authentication methods them, see issue #6414).

With the current Redmine.pm code (1.0.1) the authentication against
Redmine fails because the project_id is not guessed as it should
(the apache Location points to the repository, not to it's parent
path).

To solve the problem I've patched Redmine.pm to allow the use of a
new option that adjusts the project_id to use; if the option is set
the get_project_identifier function returns that name instead of
calculating it from the URI and the apache location).

The attached patch is against an export of the redmine-1.0.1 tag.


Files

Redmine.pm-Get_project_id_from_apache.diff (1 KB) Redmine.pm-Get_project_id_from_apache.diff Patch against redmine-1.0.1 Sergio Talens-Oliag, 2010-09-23 14:08
Redmine.pm-Get_project_id_from_apache.diff (2.12 KB) Redmine.pm-Get_project_id_from_apache.diff Patch against redmine-1.0.1, with comments Sergio Talens-Oliag, 2010-09-23 14:10
Actions #2

Updated by Toshi MARUYAMA over 13 years ago

  • Category changed from SCM to SCM extra
Actions

Also available in: Atom PDF