Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors on Redmine 4.x #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

horori
Copy link

@horori horori commented Apr 21, 2020

Thanks for making the wonderful plugin to extend the Redmine API.
After fixing a few lines it works with Redmine 4.1.

Fixed errors:

  • An error occurred while loading the routes definition of
    redmine_json_rpc plugin
    (/usr/src/redmine/plugins/redmine_json_rpc/config/routes.rb):
    uninitialized constant ActionController::Routing.
  • undefined method `before_filter' for JsonRpcCallController:Class
    (NoMethodError)

Here is my test result to list all the roles

REDMINE=localhost:8080
ADMIN_API_KEY=<APIKEY>
curl -v http://$REDMINE/json_rpc_call.json?key=$ADMIN_API_KEY -X POST -H "Content-Type: application/json" -d '{"class": "Role", "method" : "all", "params" : []}' | jq

- An error occurred while loading the routes definition of
redmine_json_rpc plugin
(/usr/src/redmine/plugins/redmine_json_rpc/config/routes.rb):
uninitialized constant ActionController::Routing.
- undefined method `before_filter' for JsonRpcCallController:Class
(NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant