Content
Wiki Save Bug - Openproject 3.0.4
Added by ciuino magno over 10 years ago
Hi i have noticed a bug while i was for the frist time saving something in the wiki;
I have Ubuntu 14.04 amd x64 with openproject 3.0.4 (stable branch)
This is the Report:
NoMethodError in WikiController#update
undefined method `journaled_attributes’ for nil:NilClass
Rails.root: /home/openproject/openproject
Trace
app/models/journal_manager.rb:51:in `attributes_changed?’
app/models/journal_manager.rb:38:in `changed?’
lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb:67:in `save_journals’
app/controllers/wiki_controller.rb:199:in `update’
Full Trace
app/models/journal_manager.rb:51:in `attributes_changed?’
app/models/journal_manager.rb:38:in `changed?’
lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb:67:in `save_journals’
activesupport (3.2.18) lib/active_support/callbacks.rb:453:in `_run_3599216878398418119save817731885920195695_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `__run_callback’
activesupport (3.2.18) lib/active_support/callbacks.rb:385:in `_run_save_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:81:in `run_callbacks’
activerecord (3.2.18) lib/active_record/callbacks.rb:264:in `create_or_update’
activerecord (3.2.18) lib/active_record/persistence.rb:84:in `save’
activerecord (3.2.18) lib/active_record/validations.rb:50:in `save’
activerecord (3.2.18) lib/active_record/attribute_methods/dirty.rb:22:in `save’
activerecord (3.2.18) lib/active_record/transactions.rb:259:in `block (2 levels) in save’
activerecord (3.2.18) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status’
activerecord (3.2.18) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction’
activerecord (3.2.18) lib/active_record/transactions.rb:208:in `transaction’
activerecord (3.2.18) lib/active_record/transactions.rb:311:in `with_transaction_returning_status’
activerecord (3.2.18) lib/active_record/transactions.rb:259:in `block in save’
activerecord (3.2.18) lib/active_record/transactions.rb:270:in `rollback_active_record_state!’
activerecord (3.2.18) lib/active_record/transactions.rb:258:in `save’
activerecord (3.2.18) lib/active_record/autosave_association.rb:392:in `save_has_one_association’
activerecord (3.2.18) lib/active_record/autosave_association.rb:197:in `block in add_autosave_association_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `_run_8752797849610596create817731885920195695_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `__run_callback’
activesupport (3.2.18) lib/active_support/callbacks.rb:385:in `_run_create_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:81:in `run_callbacks’
activerecord (3.2.18) lib/active_record/callbacks.rb:268:in `create’
activerecord (3.2.18) lib/active_record/persistence.rb:348:in `create_or_update’
activerecord (3.2.18) lib/active_record/callbacks.rb:264:in `block in create_or_update’
activesupport (3.2.18) lib/active_support/callbacks.rb:447:in `_run_8752797849610596save817731885920195695_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `__run_callback’
activesupport (3.2.18) lib/active_support/callbacks.rb:385:in `_run_save_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:81:in `run_callbacks’
activerecord (3.2.18) lib/active_record/callbacks.rb:264:in `create_or_update’
activerecord (3.2.18) lib/active_record/persistence.rb:84:in `save’
activerecord (3.2.18) lib/active_record/validations.rb:50:in `save’
activerecord (3.2.18) lib/active_record/attribute_methods/dirty.rb:22:in `save’
activerecord (3.2.18) lib/active_record/transactions.rb:259:in `block (2 levels) in save’
activerecord (3.2.18) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status’
activerecord (3.2.18) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction’
activerecord (3.2.18) lib/active_record/transactions.rb:208:in `transaction’
activerecord (3.2.18) lib/active_record/transactions.rb:311:in `with_transaction_returning_status’
activerecord (3.2.18) lib/active_record/transactions.rb:259:in `block in save’
activerecord (3.2.18) lib/active_record/transactions.rb:270:in `rollback_active_record_state!’
activerecord (3.2.18) lib/active_record/transactions.rb:258:in `save’
app/controllers/wiki_controller.rb:199:in `update’
actionpack (3.2.18) lib/action_controller/metal/implicit_render.rb:4:in `send_action’
actionpack (3.2.18) lib/abstract_controller/base.rb:167:in `process_action’
actionpack (3.2.18) lib/action_controller/metal/rendering.rb:10:in `process_action’
actionpack (3.2.18) lib/abstract_controller/callbacks.rb:18:in `block in process_action’
activesupport (3.2.18) lib/active_support/callbacks.rb:546:in `_run_2212863437404851985process_action3886130057933493804_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `__run_callback’
activesupport (3.2.18) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:81:in `run_callbacks’
actionpack (3.2.18) lib/abstract_controller/callbacks.rb:17:in `process_action’
actionpack (3.2.18) lib/action_controller/metal/rescue.rb:29:in `process_action’
actionpack (3.2.18) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action’
activesupport (3.2.18) lib/active_support/notifications.rb:123:in `block in instrument’
activesupport (3.2.18) lib/active_support/notifications/instrumenter.rb:20:in `instrument’
activesupport (3.2.18) lib/active_support/notifications.rb:123:in `instrument’
actionpack (3.2.18) lib/action_controller/metal/instrumentation.rb:29:in `process_action’
actionpack (3.2.18) lib/action_controller/metal/params_wrapper.rb:207:in `process_action’
activerecord (3.2.18) lib/active_record/railties/controller_runtime.rb:18:in `process_action’
actionpack (3.2.18) lib/abstract_controller/base.rb:121:in `process’
actionpack (3.2.18) lib/abstract_controller/rendering.rb:45:in `process’
actionpack (3.2.18) lib/action_controller/metal.rb:203:in `dispatch’
actionpack (3.2.18) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch’
actionpack (3.2.18) lib/action_controller/metal.rb:246:in `block in action’
actionpack (3.2.18) lib/action_dispatch/routing/route_set.rb:73:in `call’
actionpack (3.2.18) lib/action_dispatch/routing/route_set.rb:73:in `dispatch’
actionpack (3.2.18) lib/action_dispatch/routing/route_set.rb:36:in `call’
journey (1.0.4) lib/journey/router.rb:68:in `block in call’
journey (1.0.4) lib/journey/router.rb:56:in `each’
journey (1.0.4) lib/journey/router.rb:56:in `call’
actionpack (3.2.18) lib/action_dispatch/routing/route_set.rb:608:in `call’
request_store (1.0.5) lib/request_store/middleware.rb:9:in `call’
/home/openproject/.rvm/gems/ruby-2.1.2/bundler/gems/i18n-js-8801f8d17ef9/lib/i18n/js/middleware.rb:11:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call’
rack (1.4.5) lib/rack/etag.rb:23:in `call’
rack (1.4.5) lib/rack/conditionalget.rb:35:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/head.rb:14:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/params_parser.rb:21:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/flash.rb:242:in `call’
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context’
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/cookies.rb:341:in `call’
activerecord (3.2.18) lib/active_record/query_cache.rb:64:in `call’
activerecord (3.2.18) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `_run_2018834566239312937call817731885920195695_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:405:in `__run_callback’
activesupport (3.2.18) lib/active_support/callbacks.rb:385:in `_run_call_callbacks’
activesupport (3.2.18) lib/active_support/callbacks.rb:81:in `run_callbacks’
actionpack (3.2.18) lib/action_dispatch/middleware/callbacks.rb:27:in `call’
rails-dev-tweaks (0.6.1) lib/rails_dev_tweaks/granular_autoload/middleware.rb:34:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/remote_ip.rb:31:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call’
railties (3.2.18) lib/rails/rack/logger.rb:32:in `call_app’
railties (3.2.18) lib/rails/rack/logger.rb:16:in `block in call’
activesupport (3.2.18) lib/active_support/tagged_logging.rb:22:in `tagged’
railties (3.2.18) lib/rails/rack/logger.rb:16:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/request_id.rb:22:in `call’
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call’
rack (1.4.5) lib/rack/runtime.rb:17:in `call’
activesupport (3.2.18) lib/active_support/cache/strategy/local_cache.rb:72:in `call’
rack (1.4.5) lib/rack/lock.rb:15:in `call’
actionpack (3.2.18) lib/action_dispatch/middleware/static.rb:63:in `call’
railties (3.2.18) lib/rails/engine.rb:484:in `call’
railties (3.2.18) lib/rails/application.rb:231:in `call’
railties (3.2.18) lib/rails/railtie/configurable.rb:30:in `method_missing’
/home/openproject/.rvm/gems/ruby-2.1.2/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/frame_options.rb:31:in `call’
/home/openproject/.rvm/gems/ruby-2.1.2/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/json_csrf.rb:18:in `call’
rack (1.4.5) lib/rack/builder.rb:134:in `call’
rack (1.4.5) lib/rack/urlmap.rb:64:in `block in call’
rack (1.4.5) lib/rack/urlmap.rb:49:in `each’
rack (1.4.5) lib/rack/urlmap.rb:49:in `call’
rack (1.4.5) lib/rack/content_length.rb:14:in `call’
railties (3.2.18) lib/rails/rack/log_tailer.rb:17:in `call’
thin (1.5.1) lib/thin/connection.rb:81:in `block in pre_process’
thin (1.5.1) lib/thin/connection.rb:79:in `catch’
thin (1.5.1) lib/thin/connection.rb:79:in `pre_process’
thin (1.5.1) lib/thin/connection.rb:54:in `process’
thin (1.5.1) lib/thin/connection.rb:39:in `receive_data’
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run_machine’
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run’
thin (1.5.1) lib/thin/backends/base.rb:63:in `start’
thin (1.5.1) lib/thin/server.rb:159:in `start’
rack (1.4.5) lib/rack/handler/thin.rb:13:in `run’
rack (1.4.5) lib/rack/server.rb:268:in `start’
railties (3.2.18) lib/rails/commands/server.rb:70:in `start’
railties (3.2.18) lib/rails/commands.rb:55:in `block in <top (required)>’
railties (3.2.18) lib/rails/commands.rb:50:in `tap’
railties (3.2.18) lib/rails/commands.rb:50:in `<top (required)>’
script/rails:6:in `require’
script/rails:6:in `
’
Request
Parameters:
{“utf8”=>“✓”,
“_method”=>“put”,
“authenticity_token”=>“TJZL52ZSgSZLBAJHnCWeceFLmOuH8DP45p0y9IDgLm4=”,
“content”=>{“lock_version”=>“0”,
“text”=>“h1. Wiki”,
“comments”=>“”},
“attachments”=>{“1”=>{“description”=>“”}},
“commit”=>“Save”,
“project_id”=>“project_test”,
“id”=>“Wiki”}
Show session dump
_csrf_token: “TJZL52ZSgSZLBAJHnCWeceFLmOuH8DP45p0y9IDgLm4=”
boards_show_sort: “updated_on:desc”
query: {:project_id=>2, :filters=>[#<Queries::WorkPackages::Filter:0x000000213b2218 field=:status_id,
operator=“o”, values=[""],
validation_context=nil, errors=#<ActiveModel::Errors:0x000000213b1f98
base=#<Queries::WorkPackages::Filter:0x000000213b2218 …>, @messages={}>>], :group_by=>nil, :display_sums=>false, :column_names=>nil}
session_id: “52cb2893663ca009658c0220e278e781”
updated_at: 2014-07-03 10:14:05 +0200
user_id: 2
users_index_sort: “login”
work_packages_index_sort: “parent:desc”
Show env dump
GATEWAY_INTERFACE: “CGI/1.2”
HTTP_ACCEPT: “text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”
HTTP_ACCEPT_ENCODING: “gzip, deflate”
HTTP_ACCEPT_LANGUAGE: “it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3”
REMOTE_ADDR: “192.168.0.3”
SERVER_NAME: “192.168.0.9”
SERVER_PROTOCOL: “HTTP/1.1”
Response
Headers:
None
Replies (1)
Hi Ciuino,
I could not reproduce this bug in OpenProject 3.0.12.
Could you update to the current version and see if the error is gone?
If it persists, please create a bug report in the bug backlog stating your version of OpenProject, the plugins you installed as well as well as the log message.
You can also follow our guideline on reporting a bug.
Thanks,
Robin