Author: alessio.soldano(a)jboss.com
Date: 2013-01-07 06:07:55 -0500 (Mon, 07 Jan 2013)
New Revision: 17185
Modified:
thirdparty/cxf/branches/cxf-2.4.10/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java
Log:
[JBPAPP6-1694] Check for missing port
Modified:
thirdparty/cxf/branches/cxf-2.4.10/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java
===================================================================
---
thirdparty/cxf/branches/cxf-2.4.10/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java 2013-01-03
01:27:28 UTC (rev 17184)
+++
thirdparty/cxf/branches/cxf-2.4.10/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetInterceptor.java 2013-01-07
11:07:55 UTC (rev 17185)
@@ -407,8 +407,12 @@
URL locUrl = new URL(location);
URL baseUrl = new URL(base);
StringBuilder sb = new StringBuilder(baseUrl.getProtocol());
-
sb.append("://").append(baseUrl.getHost()).append(":").append(baseUrl.getPort())
- .append(locUrl.getPath());
+ sb.append("://").append(baseUrl.getHost());
+ int port = baseUrl.getPort();
+ if (port > 0) {
+ sb.append(":").append(port);
+ }
+ sb.append(locUrl.getPath());
soapAddress.setAttribute("location", sb.toString());
} catch (Exception e) {
//ignore
Show replies by date