milgner / redmine_airbrake_server

A Redmine plugin which enables it to receive application error notifications Airbrake-style
28 stars 10 forks source link

setting an author (login) fails #5

Closed pille closed 13 years ago

pille commented 13 years ago

setting :login in config makes the POST fail:

ActiveRecord::RecordInvalid (Validation failed: Author can't be blank):

omitting it succeeds (using Anonymous as default).

POST parameters are the following (from server log):

  Parameters: {"action"=>"index", "notice"=>{"server_environment"=>{"environment_name"=>"production", "project_root"=>"XXXXXXXXXX"}, "api_key"=>"--- \n:api_key: XXXXXXXXXX\n:project: hoptoad\n:priority: 5\n:tracker
: Bug\n:reopen: production\n:login: airbrake\n", "request"=>...
milgner commented 13 years ago

I cannot reproduce this one - However, with the latest patch I added a corresponding assert to the integration test and provide a fallback to anonymous again if the user with the specified login cannot be found.

pille commented 13 years ago

probably my fault. the AirBrake user did not exist. the new fallback is a good idea, anyway.