Project

General

Profile

Actions

Defect #4942

closed

"Status can't be blank" on Issues page (After Upgrade)

Added by Chris Geoghegan about 14 years ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2010-02-26
Due date:
% Done:

100%

Estimated time:
Resolution:
Invalid
Affected version:

Description

The very first time you load the Issues tab of a project (after upgrading from 0.8.7 to 0.9.2) it works, but any time after that you receive the error "Status can't be blank". Status is selected and set to open though, so as soon as you click "Apply" the issues load as they should.

This is the environment:

MySQL 5.0.51a-3ubuntu5.5
Ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]
Rails 2.3.5
Redmine 0.9.2 (http://redmine.rubyforge.org/svn/tags/0.9.2/script)
SVN 1.4.6 (r28521)

This is the request that is resulting in the error:
Processing IssuesController#index (for 70.70.147.184 at 2010-02-26 17:52:33) [GET]
Parameters: {"project_id"=>"godelta", "action"=>"index", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/index.rhtml
Completed in 196ms (View: 152, DB: 0) | 200 OK [http://issues.imagexmedia.com/projects/godelta/issues]

There is no corresponding error in error.log


Files

screenshot.tiff (33.7 KB) screenshot.tiff Chris Geoghegan, 2010-02-26 19:09

Related issues

Related to Redmine - Defect #7156: #4942 Harvest? maybe not - status_id and default operator go missingClosed2010-12-22

Actions
Actions #1

Updated by Jean-Philippe Lang about 14 years ago

I'm not able to reproduce with a fresh 0.9.2.

Actions #2

Updated by Chris Geoghegan about 14 years ago

Yeah, I think it might be an issue specifically with upgrading from 0.8.7 to 0.9.2. After doing a little more testing it appears that if I create a custom query then select that. The error dissappears. I can browse away and browse back and there is no error.

However, as soon as I click "Clear" underneath the filters, then browse away to another page, and then back again, the error comes back. It's as though it's not remembering that the default should be "Status is Open".

Actions #3

Updated by Norbert Strappler about 14 years ago

  • % Done changed from 0 to 70
Actions #4

Updated by Jean-Philippe Lang about 14 years ago

  • % Done changed from 70 to 0

I'm sorry but I can't reproduce even when upgrading a 0.8.7 to 0.9.2.
Did you make any change to the code?
Make sure to test with a fresh 0.9.2 code without any plugins.

Actions #5

Updated by Chris Geoghegan about 14 years ago

It has been tested with fresh 0.9.2 without any plugins. But the database is not new. If I test it with a fresh database it works as it should. It's specifically an issue with the database we're using that we've upgraded from 0.8.7 to 0.9.2.

~Chris

Actions #6

Updated by Jean-Philippe Lang about 14 years ago

What do you get if you test with the fresh 0.9.2 without plugins and your upgraded database?

Actions #7

Updated by Jim Mulholland about 14 years ago

We are getting the same error. The error appears to be coming from the else clause on line 530 of the "retrieve_query" method in the issues_controller:

@query ||= Query.new(:name => "_", :project => @project, :filters => session[:query][:filters], :group_by => session[:query][:group_by], :column_names => session[:query][:column_names])

where our "session[:query]" looks like this:

{:column_names=>nil, :project_id=>39, :filters=>{"status_id"=>{"operator"=>"o", "values"=>[""]}}, :group_by=>nil}

We also upgraded from a 0.8.x version to 0.9.2 when we started seeing this issue.

Actions #8

Updated by Alexander Eriomenko almost 14 years ago

in my case deleting redmine_harvest plugin fixes that error

Actions #9

Updated by Chris Geoghegan almost 14 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

I'm marking this as resolved because I believe it is an issue with the redmine_harvest plugin. A clean upgrade without the module present resolves the issue.

Actions #10

Updated by Jim Mulholland almost 14 years ago

Good to know. I'll checkout my plugin to see what the deal is.

Thanks!

Actions #11

Updated by Chris Geoghegan almost 14 years ago

Thanks Jim! Please do up here again when it's fixed as I am sure there are others having this issue who would also like to use it.

Actions #12

Updated by Jean-Baptiste Barth over 13 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Closing since it seems to be a plugin issue

Actions #13

Updated by poornima dhanasekaran about 11 years ago

Hi everyone,

I tried "@query ||= Query.new(:name => "_", :filters =>{"status_id"=>{"operator"=>"*"}, "tracker_id"=>{"operator"=>"="}} , :group_by => session[:query][:group_by], :column_names => session[:query][:column_names])" in queries_helper.rb for changing my session[:query][:filters]. I tried with this but getting "status can't be blank & tracker can't be blank" validation error. I didn't use the redmine_harvest plugin and gem too. Can anyone help me out?.

Thanks,
Poornima.

Actions

Also available in: Atom PDF