Defect #6744
closedlft and rgt fields are null when issue is added via redmine:email:receive_imap
0%
Description
When receiving a report via email in 1.0.2, lft and rgt columns in the issues table are set to null. This causes internal server errors when attempting to render pages that list the report or view the report in question.
The command I'm using to fetch emails is:
rake -f /var/www/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com username=EMAIL password=PASSWORD ssl=true port=993
The issue is properly created with all of the specifications provided, but lft and rgt are null. To fix it, I found via another post that setting lft to 1 and rgt to 2 works, and it does seem to work around the issue for me.
My system:
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /var/www/redmine-1.0
Environment production
Database adapter mysql
Database schema version 20100819172912