Closed Bug 575086 Opened 15 years ago Closed 15 years ago

31 days query results in "Unable to Complete Request"

Categories

(Socorro :: General, task)

x86
Windows Vista
task
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 610457

People

(Reporter: wsmwk, Assigned: ryansnyder)

References

Details

(Keywords: regression)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #482441 +++ bug 482441 provided longer query (thanks!) - 120 days - and I'm finally checking the functionality. But the results are not usable ... 1. from http://crash-stats.mozilla.com/query do query for 31 days against nsPrefBranch::Observe(nsISupports*, char const*, unsigned short const*) - i.e. http://crash-stats.mozilla.com/report/list?product=Thunderbird&query_search=signature&query_type=exact&query=nsPrefBranch%3A%3AObserve%28nsISupports*%2C%20char%20const*%2C%20unsigned%20short%20const*%29&date=06%2F27%2F2010%2008%3A32%3A38&range_value=31&range_unit=days&hang_type=any&process_type=any&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=1&signature=nsPrefBranch%3A%3AObserve%28nsISupports*%2C%20char%20const*%2C%20unsigned%20short%20const*%29 2. click link to bring up results list of crashes "Unable to Complete Request" 3. shorten query to 30 days works in short ... works 30days http://crash-stats.mozilla.com/report/list?product=Thunderbird&query_search=signature&query_type=exact&query=nsPrefBranch%3A%3AObserve(nsISupports*%2C char const*%2C unsigned short const*)&date=06%2F27%2F2010 08%3A32%3A38&range_value=30&range_unit=days&hang_type=any&process_type=any&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=1&signature=nsPrefBranch%3A%3AObserve(nsISupports*%2C char const*%2C unsigned short const*) fails 31days http://crash-stats.mozilla.com/report/list?product=Thunderbird&query_search=signature&query_type=exact&query=nsPrefBranch%3A%3AObserve(nsISupports*%2C char const*%2C unsigned short const*)&date=06%2F27%2F2010 08%3A32%3A38&range_value=31&range_unit=days&hang_type=any&process_type=any&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=1&signature=nsPrefBranch%3A%3AObserve(nsISupports*%2C char const*%2C unsigned short const*)
Sounds like a problem with bug 482441 - Ryan, over to you.
Assignee: nobody → ryan
Keywords: regression
Thanks, I'll take a look...
From what I can tell, the $config['query_range_defaults'] parameters is missing from config/application.php. Will investigate.
Turns out it wasn't an issue with the config file, but rather because the code did not have an isset() statement before checking the value of a parameter. Also added an admin parameter in the report->do_list() controller.
Attachment #454992 - Flags: review?(ozten.bugs)
Comment on attachment 454992 [details] [diff] [review] Patch 1 for 575086 looks good, but let's get rid of the multiple calls to isset. > (!isset($params['admin']) || (isset($params['admin']) && $params['admin'] === false)) The second isset is redundant since we won't get past || unless $params['admin'] is set. The first !isset($params['admin']) will short circuit the || expression when true. The grouping is hard to scan visually, so this might help.
Attachment #454992 - Flags: review?(ozten.bugs) → review+
Thanks Austin! This will be available for testing on stage in 15 minutes. == Sending webapp-php/application/controllers/report.php Sending webapp-php/application/libraries/MY_SearchReportHelper.php Transmitting file data .. Committed revision r2187.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.8
Merge to 1.7.6
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Target Milestone: 1.8 → 1.7.6
This works. But only in HTTPS. Socorro UI does not recognize admins unless we are using HTTPS. Resolving as a duplicate of Bug 610457.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → DUPLICATE
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: