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

Marking issue as generated produces error 500 #13

Closed
anroots opened this issue Mar 11, 2012 · 9 comments
Closed

Marking issue as generated produces error 500 #13

anroots opened this issue Mar 11, 2012 · 9 comments

Comments

@anroots
Copy link

anroots commented Mar 11, 2012

On release notes edit page (release_notes/3/edit), checking the "Mark this issue's release notes as completed?" checkbox produces internal server error.

I have the custom fields for issues and versions set up. Using the latest version of the code (7624417) and Redmine 1.3.0

Stacktrace from production.log:

Processing ReleaseNotesController#update (for 193.40.244.203 at 2012-03-11 12:43:09) [PUT]
  Parameters: {"action"=>"update", "release_note"=>{"issue_id"=>"111", "text"=>"* Release note 3 test"}, "id"=>"3", "_method"=>"put", "authenticity_token"=>"6SaDKwDPIWYln4nHGaxppTg5NOUbZ1fsl9UfYufpq+k=", "controller"=>"release_notes", "mark_complete"=>"1", "commit"=>"Save"}

I18n::MissingInterpolationArgument (missing interpolation argument in "Failed to save value for field: %{field}" ({:value=>"release notes required"} given)):
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/interpolate/ruby.rb:24:in `interpolate_hash'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/interpolate/ruby.rb:19:in `gsub'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/interpolate/ruby.rb:19:in `interpolate_hash'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/interpolate/ruby.rb:15:in `interpolate'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:144:in `interpolate'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base.rb:41:in `translate'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:44:in `translate'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:43:in `catch'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:43:in `translate'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:42:in `each'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:42:in `translate'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:156:in `t'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:152:in `catch'
  /var/lib/gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:152:in `t'
  lib/redmine/i18n.rb:15:in `l'
  vendor/plugins/redmine_release_notes/app/controllers/release_notes_controller.rb:209:in `update_custom_field'
  vendor/plugins/redmine_release_notes/app/controllers/release_notes_controller.rb:130:in `update'
  /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /data/www/redmine/public/500.html (500 Internal Server Error)```
hdgarrood pushed a commit that referenced this issue Mar 11, 2012
@hdgarrood
Copy link
Owner

Fix committed and pushed. This occurred because redmine was unable to save the custom field update for some reason.
Try setting the field to your "complete" value from the issue and see what happens (unfortunately I can't reproduce this)

hdgarrood pushed a commit that referenced this issue Mar 11, 2012
@hdgarrood
Copy link
Owner

Actually, instead try the latest version, as this should tell you why it failed to save.

@anroots
Copy link
Author

anroots commented Mar 11, 2012

Updated the code, no error 500 this time, instead:

1 errors prohibited this Custom field from being saved:
value: is not included in the list

Going to debug that one now.

@anroots
Copy link
Author

anroots commented Mar 11, 2012

It's as the message said: the value was not in the list - even though I couldn't see any visible difference from the values I entered in the custom field and the ones in the config file - both default values.

However, changing the multi-word custom field values (Yes - to be done) into single-word equivalents (Todo) worked. So maybe there's a problem with spaces?

field_value_done: "Done"
field_value_to_be_done: "Todo"
field_value_not_required: "No"

@hdgarrood
Copy link
Owner

Ah, I see. Yeah, could be—I'm on windows, so maybe it's an encoding thing. Does your custom field have spaces in the name as well?

I'm going to set up a linux VM and do some more investigation.

@anroots
Copy link
Author

anroots commented Mar 11, 2012

The name is the default one ("Release notes required"), I changed only the values as described above and got it to work.

hdgarrood pushed a commit that referenced this issue Mar 11, 2012
@hdgarrood
Copy link
Owner

Could I have a bit more info about your environment - OS and Rails version, for example?

@anroots
Copy link
Author

anroots commented Mar 11, 2012

Redmine 1.3.0.stable (MySQL)

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"

$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]

Rails should be 2.3.14, not quite sure on how to check that. gem query --local returns rails (3.2.2, 2.3.14). rails -v doesn't work (gem path not exported) and there's a rails dir in vendor/, too.

@hdgarrood
Copy link
Owner

In that case, I'm stumped. Sorry.

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

No branches or pull requests

2 participants