codecentric / cxf-spring-boot-starter

Enterprise & production ready SOAP webservices powered by Spring Boot & Apache CXF
https://blog.codecentric.de/en/2016/10/spring-boot-apache-cxf-spring-boot-starter/
144 stars 78 forks source link

CxfAutoConfiguration.baseAndServiceEndingUrl() just concatenates the strings, should it do more? #65

Open RobertZenz opened 4 years ago

RobertZenz commented 4 years ago

The CxfAutoConfiguration.baseAndServiceEndingUrl() method returns a concatenation of the baseUrl and serviceUrlEnding which might lead to unexpected addresses.

If we have the following configuration:

soap.service.base.url=/root/

The baseAndServiceEndingUrl will be "/root//YourService", which isn't exactly expected in my opinion. Shouldn't the baseAndServiceEndingUrl() strip trailing/leading/double-slashes from the address?