snnrk / redmine_mailwrapper

Plugin for Redmine to rewrite mail according to rules for each projects.
12 stars 1 forks source link

redmine 2.1.x compatibility #5

Closed atopcu closed 11 years ago

atopcu commented 11 years ago

Dear snnrk,

I have installed this plugin in to redmine 2.1.2 and migration has been completed successfully. But get it an error during the sender creation. And also, get it an error message that say "Fill the project" when I create recipient. However, there is no project field in that form.

Best Regards,

snnrk commented 11 years ago

Hi atopcu,

I knew redmine_mailwrapper do not work with redmine 2.x. I'm trying to fix this issue, but I think it will be some time.

Regards,

atopcu commented 11 years ago

Is there any news? Regards

snnrk commented 11 years ago

Sorry for late reply. I committed one that is compatible to redmine 2.0.x. If I verified that it also work well on redmine 2.1.x, I'm going to release it. Try the latest of 0.1.2 branch if you like.

Regards,

atopcu commented 11 years ago

Thank you for reply. I was tried install to redmine 2.2.1 (my current redmine version) but there is an error during the migration:

cannot load such file -- mailwrapper/issue_observer_patch /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in require' /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:inblock in require' /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in load_dependency' /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:inrequire' /opt/bitnami/apps/redmine/htdocs/plugins/redmine_mailwrapper/lib/mailwrapper.rb:8:in `<top (required)>'


Environment: Redmine version 2.2.1.stable Ruby version 1.9.3 (x86_64-linux) Rails version 3.2.11 Environment production Database adapter Mysql2

Regards,

atopcu commented 11 years ago

Sorry for wrong info. I was updated error message in the previous message.

snnrk commented 11 years ago

Oops..., there were error on push process. Now, I've pushed again.

atopcu commented 11 years ago

I have tried again and migration completed successfully. Thank you so much!

However, there are two cases:

  1. createing new recipient: There is an error: new_rec
  2. creating new sender: There is a Page error: new_sender

Started GET "/redport/mailwrapper_senders/add?mailwrapper_sender%5Bproject_id%5D=deneme" for xx.xx.xx.xx at 2013-02-09 20:56:42 +0200 Processing by MailwrapperSendersController#add as HTML Parameters: {"mailwrapper_sender"=>{"project_id"=>"deneme"}} Current user: xxxxx (id=xxxx) Completed 404 Not Found in 12ms

ActiveRecord::RecordNotFound (Couldn't find Project without an ID): app/models/project.rb:272:in `find'

Environment: Redmine version 2.2.1.stable Ruby version 1.9.3 (x86_64-linux) Rails version 3.2.11 Environment production Database adapter Mysql2

Best Regards,

snnrk commented 11 years ago

Thanks for report. I made sure it reproduced on my environment. I'll fix it.

snnrk commented 11 years ago

I've fixed it. Try the latest one.

atopcu commented 11 years ago

It's working well. Thank you so much!