Content
You are here:
Backlogs: Can not change wp version if it has child tasks - internal error occurred
Added by Sascha Rüger over 6 years ago
OP Version: 7.4.4. after upgrade from 7.2.3
Description:
When I have a workpackage with tasks, trying to change the version gives an error.
Screenshots:
1) Changing the verison by Drag’n’Drop see attached picture 1,
2) and trying to set the version in the details view, see picture 2
My current Workaround for WP with not many tasks is:
- For each task detach the child relation in the WP Relation Tab,
- Change the version of the WP as desired
- Go to Backlogs and open Stories/Tasks, select the detached tasks one by one, change their version
- and then and manually re-add the parent-relation for each task,
Steps to reproduce:
Snippet of apache/rails-log:
rails: F, [2018-05-25T14:30:16.646852 #141] FATAL -- : ActiveRecord::RecordNotUnique (Mysql2::Error: Duplicate entry '82-6d7d15fb609b2a3777cf18869ed6319764c11b6a' for key 'changesets_repos_rev': INSERT INTO `changesets` (`repository_id`, `revision`, `committer`, `committed_on`, `comments`, `commit_date`, `scmid`, `user_id`) VALUES (82, '6d7d15fb609b2a3777cf18869ed6319764c11b6a', 'Name <user@mydomain>', '2018-03-22 10:34:39', 'Added builders for nwf trainer and variable amount period, refs #40344', '2018-03-22', '6d7d15fb609b2a3777cf18869ed6319764c11b6a', 228)):
apache: access: 10.255.2.1 - - [25/May/2018:14:56:17 +0200] "POST /api/v3/work_packages/42595/form HTTP/1.1" 200 3596 rails: E, [2018-05-25T14:56:18.051401 #141] ERROR -- : Grape rescuing from error: API::Errors::InternalError rails: rails: Original error: #<ArgumentError: expected at least one error> rails: rails: Stacktrace: rails: rails: /opt/app-root/src/lib/api/errors/multiple_errors.rb:36:in `create_if_many' rails: /opt/app-root/src/lib/api/errors/error_base.rb:61:in `create_and_merge_errors' rails: /opt/app-root/src/lib/api/v3/work_packages/work_packages_api.rb:110:in `block (3 levels) in <class:WorkPackagesAPI>' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:57:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:57:in `block (2 levels) in generate_api_method' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/notifications.rb:166:in `instrument' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:56:in `block in generate_api_method' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:262:in `block in run' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/notifications.rb:166:in `instrument' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:243:in `run' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:313:in `block in build_stack' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:31:in `call!' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:31:in `call!' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/error.rb:34:in `block in call!' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/error.rb:33:in `catch' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/error.rb:33:in `call!' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/head.rb:12:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:227:in `call!' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/endpoint.rb:221:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router/route.rb:72:in `exec' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:119:in `process_route' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:74:in `block in identity' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:93:in `transaction' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:72:in `identity' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:57:in `block in call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:135:in `with_optimization' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/router.rb:56:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/api.rb:119:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/api.rb:45:in `call!' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/grape-1.0.0/lib/grape/api.rb:40:in `call' apache: access: 10.255.2.1 - - [25/May/2018:14:56:17 +0200] "PATCH /api/v3/work_packages/42595 HTTP/1.1" 500 133 rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/routing/mapper.rb:46:in `serve' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb:39:in `block in serve' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb:26:in `each' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb:26:in `serve' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb:727:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:in `call' rails: /opt/app-root/src/app/middleware/reset_current_user.rb:47:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/tempfile_reaper.rb:15:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-attack-5.0.1/lib/rack/attack.rb:147:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/deflater.rb:34:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/conditional_get.rb:38:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/head.rb:12:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:232:in `context' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:226:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/cookies.rb:613:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:97:in `__run_callbacks__' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:90:in `run_callbacks' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/callbacks.rb:36:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/rack/logger.rb:36:in `call_app' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/rack/logger.rb:24:in `block in call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/tagged_logging.rb:69:in `block in tagged' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/tagged_logging.rb:26:in `tagged' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/tagged_logging.rb:69:in `tagged' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/rack/logger.rb:24:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/request_store-1.3.2/lib/request_store/middleware.rb:9:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/request_id.rb:24:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/actionpack-5.0.6/lib/action_dispatch/middleware/executor.rb:12:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/engine.rb:522:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/railtie.rb:193:in `public_send' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/railties-5.0.6/lib/rails/railtie.rb:193:in `method_missing' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-protection-2.0.1/lib/rack/protection/frame_options.rb:31:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-protection-2.0.1/lib/rack/protection/json_csrf.rb:26:in `call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/urlmap.rb:68:in `block in call' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `each' rails: /opt/app-root/src/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `call' rails: /opt/passenger/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request' rails: /opt/passenger/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request' rails: /opt/passenger/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop' rails: /opt/passenger/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads' rails: /opt/passenger/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'