Bug 782399
Summary: | Getting "comparison of Product with Product failed" when switching one org to other and sync overview dashboard is in loading state. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
Component: | WebUI | Assignee: | Mike McCune <mmccune> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sachin Ghai <sghai> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.0.0 | CC: | cwelton, jsherril, mmccune, omaciel | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-08-22 18:20:22 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 747354 | ||||||
Attachments: |
|
Description
Sachin Ghai
2012-01-17 11:48:26 UTC
Created attachment 555736 [details]
sync overview in loading state with error on UI "comparison of Product with Product failed"
Can you point me at a machine setup where this is happening? I couldn't reproduce it in any way today. I created 3 orgs like you did above and setup and sycned the same repos in each. I could switch between orgs and never got any errors. Yes, sure..will send out a note with setup details. Thanks This issue is still reproducible with following katello builds: katello-0.1.206-1.el6.noarch pulp-0.0.263-1.el6.noarch Looking at the error and what would cause it, I do not believe that the error had anything to do with you switching org while the dashboard is open, and more had to do with the state of the repo sync history in the other environment. I believe this was fixed in 21ef44ec783d3561a9117fb7ae0a6baaceaa51d0 for another bug. Basically the error: "comparison of Product with Product failed" Occurs because a comparison occurs when the right side item is null: Product.readable(current_organization).reject{|prod| prod.sync_status.uuid.nil? }.sort{|a,b| a.sync_status.start_time <=> b.sync_status.start_time}[0..num] In this case b.sync_status.start_time is null. IF a.sync_status.start_time were null (the left side), it would result in the error in bz 786109 which that bug addressed. I'm going to move to on_QA to retest this. Verified: * candlepin-0.5.26-1.el6.noarch * candlepin-tomcat6-0.5.26-1.el6.noarch * katello-0.1.305-1.el6.noarch * katello-all-0.1.305-1.el6.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.0.4-1.el6.noarch * katello-cli-0.1.105-1.el6.noarch * katello-cli-common-0.1.105-1.el6.noarch * katello-common-0.1.305-1.el6.noarch * katello-configure-0.1.106-1.el6.noarch * katello-glue-candlepin-0.1.305-1.el6.noarch * katello-glue-foreman-0.1.305-1.el6.noarch * katello-glue-pulp-0.1.305-1.el6.noarch * katello-qpid-broker-key-pair-1.0-1.noarch * katello-qpid-client-key-pair-1.0-1.noarch * katello-selinux-0.1.9-1.el6.noarch * pulp-1.0.0-5.el6.noarch * pulp-common-1.0.0-5.el6.noarch * pulp-selinux-server-1.0.0-5.el6.noarch |