Project

General

Profile

Actions

Defect #8225

open

Revisions that reference issues are duplicated if their repository is listed for a project and its subprojects

Added by Ari Johnson almost 13 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-04-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

If you have a project with a configured SCM repository and it has a subproject with the same SCM repository configured (e.g., if you have a subproject for a specific category of work on the main project and they have the same repository specified in Redmine), then a revision in the SCM repository that references an issue by its number will be duplicated in the list of revisions referencing that issue.

The reason for this is that Changeset::scan_comment_for_issue_ids in app/models/changeset.rb does not check whether the changeset and issue belong to the same project, so the revision will end up being referenced to the issue once in the project that owns the issue and once in each other project that shares the SCM repository, even though they do not own the issue.

This problem exists in the current 1.1-stable branch in svn, as of r5548 (last change to 1.1-stable appears to be r5503).


Files


Related issues

Is duplicate of Redmine - Defect #6857: git references leaking from subproject to projectNew2010-11-09

Actions
Actions

Also available in: Atom PDF