Bug 890532
Summary: | NullPointerException raised in AMQDestination.equals method | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Pavel Moravec <pmoravec> | ||||||
Component: | qpid-java | Assignee: | Rajith Attapattu <rattapat+nobody> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Valiantsina Hubeika <vhubeika> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 2.2 | CC: | esammons, iboverma, jross, lzhaldyb, vhubeika | ||||||
Target Milestone: | 3.0 | Keywords: | EasyFix, Patch, TestCaseProvided | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | qpid-java-0.22-1.el5, qpid-java-0.22-2.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
It was discovered that the AMQDestination.equals method did not take into account the differences between the ADDR and BURL syntax. The legacy fields were not populated until the address was validated, which resulted in a null pointer exception if equals was called beforehand.The fix now handles equals and hashcode separately for ADDR and BURL, which now allow the equals and and hashcode methods to behave as expected.
|
Story Points: | --- | ||||||
Clone Of: | |||||||||
: | 956764 (view as bug list) | Environment: | |||||||
Last Closed: | 2014-09-24 15:05:59 UTC | Type: | Bug | ||||||
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: | 956764 | ||||||||
Attachments: |
|
Description
Pavel Moravec
2012-12-27 15:07:59 UTC
Created attachment 669620 [details]
reproducer
Created attachment 669622 [details]
Proposed patch
Proposed patch.
*** Bug 853197 has been marked as a duplicate of this bug. *** Switching assignment as BZ-784270 appears to be a duplicate, or at the very least close to the same issue. As Rajith is looking at this makes sense for him to kill two birds with one stone...so to speak. Fixed in upstream (QPID-3769) http://svn.apache.org/r1456007 http://svn.apache.org/r1456008 Committed a slightly modified version of Siddesh's patch. Added a fix to hashcode as well and added a test case. tested on packages: qpid-java-common-0.22-2.el5 qpid-java-client-0.22-2.el5 & qpid-java-common-0.22-3.el6.noarch qpid-java-client-0.22-3.el6.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-1296.html |