Bug 773314 - Misleading error message and unable to apply sync plan on selected product
Summary: Misleading error message and unable to apply sync plan on selected product
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Shannon Hughes
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-01-11 13:52 UTC by Sachin Ghai
Modified: 2019-09-26 13:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:18:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Applied sync plan and selected product is not working. (30.95 KB, image/png)
2012-01-11 13:53 UTC, Sachin Ghai
no flags Details
Created sync plan (38.85 KB, image/png)
2012-01-11 13:55 UTC, Sachin Ghai
no flags Details
sync plan is applied on selected product (8.63 KB, image/png)
2012-01-16 11:19 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2012-01-11 13:52:13 UTC
Description of problem:
I created a repo and synced it. Later I created a sync plan ( daily_sync) and applied on selected product. Everytime I'm getting :

There must be at least one plan selected

production.log says:


Started POST "/katello//sync_schedules/apply" for 10.65.193.48 at Wed Jan 11 19:05:16 +0530 2012
  Processing by SyncSchedulesController#apply as HTML
  Parameters: {"data"=>"{\"products\":[\"2\"],\"plans\":[\"1\"]}", "authenticity_token"=>"VbkHdXQH7Zp9YvPMQQCPBqZyT/h/GY8PmWzBWtJfoHI=", "utf8"=>"✓"}
Redirected to https://dhcp201-187.englab.pnq.redhat.com/katello/sync_schedules/index
Completed 302 Found in 124ms


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Create a product/repo
2. sync it
3. Create a sync plan
4. apply on product created at step1.  

Actual results:
Message pop ups : "There must be at least one plan selected"

However sync plan and product both are selected
Expected results:
Sync plan should be applied on selected product

Additional info:

Comment 1 Sachin Ghai 2012-01-11 13:53:38 UTC
Created attachment 552123 [details]
Applied sync plan and selected product is not working.

Comment 2 Sachin Ghai 2012-01-11 13:55:01 UTC
Created attachment 552124 [details]
Created sync plan

Comment 3 Shannon Hughes 2012-01-11 16:22:15 UTC
IF a sync plan is not selected do you also want the message changed in terms of wording?

Comment 4 Sachin Ghai 2012-01-11 17:41:57 UTC
If sync plan is not selected and then this message makes sense.. 
However in my case I've applied the sync plan on selected product and still got this message, so in this case this message shouldn't be appeared.

Comment 5 Shannon Hughes 2012-01-11 17:48:24 UTC
05cd856..ae61307  master -> master

accidentally misspelled 'empty' in my exception handler code that I added...so it was getting caught and hiding the syntax error i introduced ;)

Comment 6 Sachin Ghai 2012-01-16 11:19:07 UTC
Re-verified with latest katello build:

[root@dhcp201-176 yum.repos.d]# rpm -qa | grep -ie katello-0 -ie pulp-0
katello-0.1.178-1.el6.noarch
katello-glue-pulp-0.1.178-1.el6.noarch
pulp-0.0.257-1.el6.noarch


The reported issue has been resolved. I can apply the sync plan on selected product. Please see the attachment in next comment for verification results.

Comment 7 Sachin Ghai 2012-01-16 11:19:59 UTC
Created attachment 555478 [details]
sync plan is applied on selected product


Note You need to log in before you can comment on or make changes to this bug.