Project

General

Profile

Actions

Defect #13711

closed

Issues which share the same parent cannot have relations between each other

Added by Art Jacobson over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues planning
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Starting in version 2.3.0 when issues which share a parent issue are assigned a relation to each other, the relation fails with the error: "This relation would create a circular dependency". This used to work in previous releases, and is an important part of our workflow.

I believe this is a regression introduced by issue #8794. I was able to restore the old behavior by reverting commit r11641 as seen in the attached patch.

Steps to reproduce:
  1. Be running redmine 2.3.0
  2. Create 3 new issues (issues 1, 2, and 3)
  3. Assign the parent task of of issues 2 and 3 to issue 1
  4. Try to add a relation that issue 3 follows issue 2
  5. Observe that adding the relation fails with the error: "This relation would create a circular dependency"

Information about my environment:

> RAILS_ENV=production rake about
About your application's environment
Ruby version              1.9.3 (x86_64-darwin10.7.0)
RubyGems version          1.8.25
Rack version              1.4
Rails version             3.2.13
Active Record version     3.2.13
Action Pack version       3.2.13
Active Resource version   3.2.13
Action Mailer version     3.2.13
Active Support version    3.2.13
Middleware                Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000101df0960>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root          /Users/redmine/redmine-2.3.0
Environment               production
Database adapter          postgresql
Database schema version   20130217094251


Files

patch.diff (763 Bytes) patch.diff Reverts r11641 Art Jacobson, 2013-04-08 15:50

Related issues

Is duplicate of Redmine - Defect #13586: Circular loop testing prevents precedes/follows relation between subtasksClosedJean-Philippe Lang

Actions
Actions #1

Updated by Etienne Massip over 11 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Thanks for the report, this has already been fixed in trunk for #13586.

Actions #2

Updated by Roman Romanovsky over 11 years ago

Hello!

My problem is when i am trying to apply putch which i download from here (issue 13711 run through CR/LF converter), i get the following mistake:

C:\Users\R.Romanovsky>c:\BitNami\redmine-2.3.0-0\git\bin\patch -p0 < c:\BitNami\redmine-2.3.0-0\patchwin.diff
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch: c:\BitNami\redmine-2.3.0-0\patchwin.diff
patching file `c:\BitNami\redmine-2.3.0-0\patchwin.diff'
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] y
Hunk #1 FAILED at 579.
Hunk #2 FAILED at 858.
patch: ** can't rename `c:\BitNami\redmine-2.3.0-0\patchwin.diff' to `c:\BitNa
mi\redmine-2.3.0-0\patchwin.diff.orig' : Permission denied

My environment is the following:

Environment:
Redmine version 2.3.0.stable
Ruby version 1.9.3 (i386-mingw32)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

Operating system Windows 7 Professinal

what am i doing wrong?

Actions

Also available in: Atom PDF