Bug 1060355

Summary: [GSS] (6.3.0) Schema validation + multiple schema imports in same namespace + catalog lookup doesn't work
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Kyle Lape <klape>
Component: Web ServicesAssignee: Alessio Soldano <asoldano>
Status: CLOSED CURRENTRELEASE QA Contact: Rostislav Svoboda <rsvoboda>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.1CC: kkhan, nobody, smumford
Target Milestone: DR0   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
An issue that caused the algorithm in `org.apache.cxf.wsdl.EndpointReferenceUtils.SchemaLSResourceResolver#resolveResource` to not resolve the correct schema and return only the first schema it found has been corrected with an upgrade to the CXF component.
Story Points: ---
Clone Of:
: 1062691 (view as bug list) Environment:
Last Closed: 2014-06-28 15:37:14 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: 1040731    

Description Kyle Lape 2014-01-31 22:07:18 UTC
Catalog lookup is enabled to prevent requests to third party servers, and the third party schema referenced in the WSDL references multiple schemas in the same namespace.

When schema validation is enabled, the algorithm in org.apache.cxf.wsdl.EndpointReferenceUtils.SchemaLSResourceResolver#resolveResource does not resolve the correct schema since in the above scenario it falls back to namespace-only resolution, which returns the first schema it sees.  This can be fixed by trying to resolve on only the "filename" before resorting to namespace-only resolution.

Comment 2 Kabir Khan 2014-04-04 14:57:20 UTC
Setting to ON_QA since upgrade should fix this

Comment 3 Petr Sakaƙ 2014-04-08 13:27:08 UTC
Verified with verifier from BZ1062691 for EAP-6.3.0.ER1