Patch #6475

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

Added by Sergio Talens-Oliag about 7 years ago. Updated over 6 years ago.

Status:NewStart date:2010-09-23
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM extra
Target version:-

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.

Redmine.pm-Get_project_id_from_apache.diff Magnifier - Patch against redmine-1.0.1 (1 KB) Sergio Talens-Oliag, 2010-09-23 14:08

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

History

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Category changed from SCM to SCM extra

Also available in: Atom PDF