Bug 185632
Summary: | Internal 500 message when attempting to re-upload a Solaris package with same name, but different headers | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Clifford Perry <cperry> |
Component: | Solaris | Assignee: | Pete Vetere <pvetere> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Matthew Davis <mdavis> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 500 | CC: | bnackash, rhn-bugs |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rhn410 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-07-19 22:07:08 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: | 188662 | ||
Bug Blocks: | 196477 |
Description
Clifford Perry
2006-03-16 15:34:29 UTC
I have fixed this bug. The behavior, in this case, was correct but we were handling it badly. Basically, the 500 was occurring because a solaris patch or package was being uploaded when a version of the same name/release/arch already existed on the server, but possessed a different build time and/or build host. This is enough of a difference for us to consider the package "different". In the "correct" scenario, we should error back to the user and inform them of the situation when this happens. However, our logic was broken internally so that it never got this far. I fixed the broken logic on the server side and enhanced the error message feedback on the rhnpush client. The user should now no longer receive 500s when this happens, but should instead receive an error message suggesting that he or she uses the --force option. bperkins is QA contact for all Solaris bugs Verified with rhn-solaris-bootstrap-4.1.0-13-sparc-sol10. bash-3.00# rhnpush --server=rlx-1-20.rhndev.redhat.com SUNWxwrtl-6.6.2.7400-0.2004.12.15.sparc-solaris.mpm -c sol-10-base /opt/redhat/rhn/solaris/etc/sysconfig/rhn/rhnpushrc is missing tolerant option. Option tolerant is being set to the default value of 0. bash-3.00# solaris2mpm SUNWxwrtl.pkg Opening archive, this may take a while Writing SUNWxwrtl-6.6.2.7400-0.2004.12.15.sparc-solaris.mpm bash-3.00# rhnpush --server=rlx-1-20.rhndev.redhat.com SUNWxwrtl-6.6.2.7400-0.2004.12.15.sparc-solaris.mpm -c sol-10-base /opt/redhat/rhn/solaris/etc/sysconfig/rhn/rhnpushrc is missing tolerant option. Option tolerant is being set to the default value of 0. Package SUNWxwrtl-6.6.2.7400-0.2004.12.15.sparc-solaris.mpm mismatch -- Skipping Upload (use --force to force upload) bash-3.00# rhnpush --server=rlx-1-20.rhndev.redhat.com SUNWxwrtl-6.6.2.7400-0.2004.12.15.sparc-solaris.mpm -c sol-10-base --force /opt/redhat/rhn/solaris/etc/sysconfig/rhn/rhnpushrc is missing tolerant option. Option tolerant is being set to the default value of 0. bash-3.00# closing -- currentrelease |