Top Menu

Jump to content
  • OpenProject
    • View all projects
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video

      Welcome to OpenProject Community

      Get an overview

      Get a quick overview of project management and team collaboration with OpenProject.
      You can restart this video from the help menu

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Hierarchy leafWiki
You are here:
  • Forums
  • Plugins

Content

Backlogs: Can not change wp version if it has child tasks - internal error occurred

Added by Sascha Rüger almost 4 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'

Loading...