Project

General

Profile

Bug #6221

400 Bad request on clicking links under "Host Collections"--> "Collection Actions"

Added by Eric Helms almost 5 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1104991
Description of problem:
I was verifying bz #1096183. And found that clicking on following two links under "Host Collections"--> "Collection Actions" raises 400 Bad request error in production.log and page remains in loading state.

And error is also misleading as it says:

Processing by Katello::Api::V2::SystemsController#index as JSON
Parameters: {"organization_id"=>"1", "page"=>"1", "search"=>"host_collection:'tests'", "sort_by"=>"name", "sort_order"=>"ASC", "api_version"=>"v2"}
Katello::HttpErrors::BadRequest: No systems have been specified.

I've already added one content-host in host-collection.

Version-Release number of selected component (if applicable):
Verified with sat6 beta snap8 (Satellite-6.0.3-RHEL-6-20140604.0)

How reproducible:
always

Steps to Reproduce:
1. Create a host-collection
2. Add a content-host to created host-collection in step1
3. Now Go to "Host Collections"--> "Collection Actions" tab and select following links:

- Errata Installation
- Host Collection Membership
4. Check production.log

Actual results:
Links opened up "content host" page but it remains in loading state, and a long execption thrown in production.log with 400 bad request.

Expected results:
Page shouldn't be in loading state and no exception should be in production.log

Additional info:
Please see attachments.


Related issues

Related to Katello - Bug #4036: Nutupane table within details seems to reflect some actions from main nutupaneClosed2014-01-16

Associated revisions

Revision 018d8156 (diff)
Added by Eric Helms almost 5 years ago

Fixes #6221: Content host errata and host collection bulk actions no longer 400.

Content host errata and host collection bulk actions when entered via host
collection links would throw 400 errors and display no results. This was due
in part to attempting to fetch errata without content hosts populated and
the parameter to disable initial errata loading incorrectly specified.

Also, this changes the way search works on nutupane instances by using
'search' as the default in the URL unless an action was supplied to Nutupane.
If the action is supplied, for example 'availableErrata', then the search term
becomes 'availableErrataSearch'. This has the effect of fixing the coupling
of multiple nutupane search boxes to one another.

Revision a34ff81b (diff)
Added by Eric Helms almost 5 years ago

Fixes #6221: Content host errata and host collection bulk actions no longer 400.

Content host errata and host collection bulk actions when entered via host
collection links would throw 400 errors and display no results. This was due
in part to attempting to fetch errata without content hosts populated and
the parameter to disable initial errata loading incorrectly specified.

Also, this changes the way search works on nutupane instances by using
'search' as the default in the URL unless an action was supplied to Nutupane.
If the action is supplied, for example 'availableErrata', then the search term
becomes 'availableErrataSearch'. This has the effect of fixing the coupling
of multiple nutupane search boxes to one another.

Revision 6d6a676f
Added by Eric Helms almost 5 years ago

Merge pull request #4270 from ehelms/fixes-6221

Fixes #6221: Content host errata and host collection bulk actions no lon...

Revision 11c2e466
Added by Eric Helms almost 5 years ago

Merge pull request #4270 from ehelms/fixes-6221

Fixes #6221: Content host errata and host collection bulk actions no lon...

History

#1 Updated by Eric Helms almost 5 years ago

  • Target version set to 45
  • Difficulty set to medium
  • Triaged set to Yes

#2 Updated by Eric Helms almost 5 years ago

  • Related to Bug #4036: Nutupane table within details seems to reflect some actions from main nutupane added

#3 Updated by Eric Helms almost 5 years ago

  • Target version changed from 45 to 48

#4 Updated by Eric Helms almost 5 years ago

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

Applied in changeset katello|commit:a34ff81b20740fa18fb0e992801cfee9e5f80df8.

#5 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF