Bug 841491

Summary: WSRP: White spaces are required between publicId and systemId
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Michal Vanco <mvanco>
Component: PortalAssignee: Default User <jbpapp-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.2.2.ER02CC: epp-bugs, mvecera, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 12:04:51 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:

Description Michal Vanco 2012-07-19 07:23:50 UTC
This is a placeholder for JBoss WS issue JBWS-3511

It's not possible to test with Netunity public producer (v1) due to this issue.

Steps to Reproduce:
1. Log in as root in EPP 5.2.1
2. Navigate to Group / WSRP
3. Create a consumer named: netunity
4. Click "Create Consumer" button
5. Producer WSDL URL: http://wsrp.netunitysoftware.com/WSRPTestService/WSRPTestService.asmx?Operation=WSDL
6. Click "Refresh & Save" button
  
Actual results:
Unable to register netunity producer

Comment 1 JBoss JIRA Server 2012-10-05 10:41:43 UTC
Alessio Soldano <asoldano> made a comment on jira JBWS-3511

Also see [1] , this looks to me a duplicate of the issue already raised there.
There's actually not a lot to do here to solve the problem, the issue is in the OASIS redirecting HTTP requests for their WSRP WSDL to HTTPS with an HTTP 302 response that includes an XML document that has a public ID but no system ID. Correct schema resolution is not possible in that case.

As suggested / discussed in [1] and [2], the "solution" here is leveraging catalogs to avoid the need for going to the internet to resolve the WSRP wsdl & schemas. Depending on the jbossws stack in use (native or cxf based), that is done using either as explained in [2] (native stack) or using jax-ws-catalog.xml catalogs (cxf stack). Attached is an example of jaxws catalog that can be used to read the schemas/wsdl from the file system (but you can also use "classpath:/" to read from jars in the classpath). I've been successfully testing that using the zip wsrp-entity-fix.zip attached to [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=831445
[2] https://issues.jboss.org/browse/JBPAPP-9337
[3]

Comment 2 JBoss JIRA Server 2012-10-05 11:25:30 UTC
Alessio Soldano <asoldano> made a comment on jira JBWS-3511

Also see [1] , this looks to me a duplicate of the issue already raised there.
There's actually not a lot to do here to solve the problem, the issue is in the OASIS redirecting HTTP requests for their WSRP WSDL to HTTPS with an HTTP 302 response that includes an XML document that has a public ID but no system ID. Correct schema resolution is not possible in that case.

As suggested / discussed in [1] and [2], the "solution" here is leveraging catalogs to avoid the need for going to the internet to resolve the WSRP wsdl & schemas. Depending on the jbossws stack in use (native or cxf based), that is done using either as explained in [2] (native stack) or using jax-ws-catalog.xml catalogs (cxf stack). Attached is an example of jaxws catalog that can be used to read the schemas/wsdl from the file system (but you can also use "classpath:/" to read from jars in the classpath). I've been successfully testing that using the zip wsrp-entity-fix.zip attached to [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=831445
[2] https://issues.jboss.org/browse/JBPAPP-9337

Comment 3 JBoss JIRA Server 2012-10-05 11:26:34 UTC
Alessio Soldano <asoldano> updated the status of jira JBWS-3511 to Resolved

Comment 4 JBoss JIRA Server 2013-02-13 15:35:04 UTC
Alessio Soldano <asoldano> updated the status of jira JBWS-3511 to Closed