Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      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
    • Digital accessibility (DE)
    • 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
  • General discussion

Content

work_package view raises ActionController::RoutingError in 4.0.1

Added by Jangho Seo about 8 years ago

Hello.

I recently upgraded from OpenProject 3.0.14 to OpenProject 4.0.1.

Unfortunately https://example.com/projects/management/work_packages gives me “Unable to retrieve query from URL” message (“management” is the project identifier)
and log file says:

Started GET "/api/experimental/projects/management/work_packages?page=1&per_page=10" for 147.x.x.x at 2014-11-15 10:12:48 +0900
Processing by Api::Experimental::WorkPackagesController#index as JSON 
  Parameters: {"page"=>"1", "per_page"=>"10", "project_id"=>"management"}
Completed 404 Not Found in 56.7ms

ActionController::RoutingError (No route matches {:action=>"update", :controller=>"api/experimental/queries", :layout=>nil, :id=>#<Query id: nil, project_id: 3, name: "_", filters: [#<Queries::WorkPackages::Filter:0x007f4b8cf35118 @field=:status_id, @operator="o", @values=[""], @validation_context=nil, @errors=#<ActiveModel::Errors:0x007f4b8ca92868 @base=#<Queries::WorkPackages::Filter:0x007f4b8cf35118 ...>, @messages={}>>], user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, is_public: true, display_sums: nil>}):
  app/controllers/api/experimental/concerns/query_loading.rb:85:in `block in allowed_links_on_query'
  app/controllers/api/experimental/concerns/query_loading.rb:75:in `tap'
  app/controllers/api/experimental/concerns/query_loading.rb:75:in `allowed_links_on_query'
  app/controllers/api/experimental/work_packages_controller.rb:178:in `query_as_json'
  app/controllers/api/experimental/work_packages_controller.rb:153:in `set_work_packages_meta_data'
  app/controllers/api/experimental/work_packages_controller.rb:139:in `current_work_packages'
  app/controllers/api/experimental/work_packages_controller.rb:52:in `index'

I am using nginx and passenger to deploy my OpenProject service, through manual installation driven by ruby-2.1.4.

Thanks.


Replies (5)

RE: work_package view raises ActionController::RoutingError in 4.0.1 - Added by Paul Menzel about 8 years ago

Hi, I experience the same problem when using the branch release/4.0, containing release v4.0.4, or dev with Ruby 2.1.4 and the Passenger Apache module.

Started GET "/api/experimental/projects/test/work_packages?page=1&per_page=10" for 37.120.60.217 at 2014-12-24 07:32:04 +0000
Processing by Api::Experimental::WorkPackagesController#index as JSON
  Parameters: {"page"=>"1", "per_page"=>"10", "project_id"=>"test"}
Completed 404 Not Found in 32.8ms

ActionController::RoutingError (No route matches {:action=>"update", :controller=>"api/experimental/queries", :layout=>nil, :id=>#<Query id: nil, project_id: 77, name: "_", filters: [#<Queries::WorkPackages::Filter:0x00000004c32658 @field=:status_id, @operator="o", @values=[""], @validation_context=nil, @errors=#<ActiveModel::Errors:0x00000004bdc078 @base=#<Queries::WorkPackages::Filter:0x00000004c32658 ...>, @messages={}>>], user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, is_public: true, display_sums: nil>}):
  app/controllers/api/experimental/concerns/query_loading.rb:106:in `block in allowed_links_on_query'
  app/controllers/api/experimental/concerns/query_loading.rb:96:in `tap'
  app/controllers/api/experimental/concerns/query_loading.rb:96:in `allowed_links_on_query'
  app/controllers/api/experimental/work_packages_controller.rb:165:in `query_as_json'
  app/controllers/api/experimental/work_packages_controller.rb:140:in `set_work_packages_meta_data'
  app/controllers/api/experimental/work_packages_controller.rb:112:in `current_work_packages'
  app/controllers/api/experimental/work_packages_controller.rb:52:in `index'

Were you able to solve this?

RE: work_package view raises ActionController::RoutingError in 4.0.1 - Added by Jangho Seo about 8 years ago

Unfortunately, no.
I had to purge the old one and reinstall OpenProject, and migrate the necessary data manually :(
I believe this problem is due to the broken database schema, but I don’t have any accurate solution.

Sorry for not being much help :(

RE: work_package view raises ActionController::RoutingError in 4.0.1 - Added by Jangho Seo about 8 years ago

And I think #17928 means something :)

RE: work_package view raises ActionController::RoutingError in 4.0.1 - Added by Alex Farcas over 7 years ago

Having the exact same issue with v4.1.3. Going slightly insane here since try as i may, ruby is not my language and debugging this is incredibly frustrating. Close to giving up after 2 days of wasted time. With a clean install everything works perfectly. As soon as i try to migrate from older data, the error shows up.

Why would it not find action “update” inside the queries_controller.rb. I see it, it’s there. What database value can possibly affect routing? I changed the hostname in the settings table to the correct value.

Started GET "/api/experimental/work_packages?page=1&per_page=10" for 192.168.66.1 at 2015-07-06 17:36:12 +0000
Processing by Api::Experimental::WorkPackagesController#index as JSON
  Parameters: {"page"=>"1", "per_page"=>"10"}
Completed 404 Not Found in 29.9ms

ActionController::RoutingError (No route matches {:action=>"update", :controller=>"api/experimental/queries", :layout=>nil, :id=>#<Query id: nil, project_id: nil, name: "_", filters: [#<Queries::WorkPackages::Filter:0x0000000b0cdec8 @field=:status_id, @operator="o", @values=[""], @validation_context=nil, @errors=#<ActiveModel::Errors:0x0000000b0913d8 @base=#<Queries::WorkPackages::Filter:0x0000000b0cdec8 ...>, @messages={}>>], user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, category: nil, sort_by_parent_first: false, is_public: true, display_sums: nil>}):
  app/controllers/api/experimental/concerns/query_loading.rb:105:in `block in allowed_links_on_query'
  app/controllers/api/experimental/concerns/query_loading.rb:95:in `tap'
  app/controllers/api/experimental/concerns/query_loading.rb:95:in `allowed_links_on_query'
  app/controllers/api/experimental/work_packages_controller.rb:174:in `query_as_json'
  app/controllers/api/experimental/work_packages_controller.rb:149:in `set_work_packages_meta_data'
  app/controllers/api/experimental/work_packages_controller.rb:110:in `current_work_packages'
  app/controllers/api/experimental/work_packages_controller.rb:51:in `index'
  app/middleware/params_parser_with_exclusion.rb:40:in `call'

RE: work_package view raises ActionController::RoutingError in 4.0.1 - Added by Alex Farcas over 7 years ago

Noob’s fix for the above problem:

Just comment out the code inside the Api::Experimental::Concerns::QueryLoading::allowed_links_on_query method. Let it return an empty {}. You’re not really losing anything since saved queries are not working anyway.

  • (1 - 5/5)
Loading...