Issue 11681

Allow ws url configuration to work with or without trailing slashes

11681
Reporter: mdoering
Type: Improvement
Summary: Allow ws url configuration to work with or without trailing slashes
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-08-17 17:23:05.61
Updated: 2015-11-17 14:02:26.003
Resolved: 2012-08-23 18:36:36.514
        
Description: Currently the application.properties expects trailing slashes.
This can lead to broken javascript, see POR-252


--- applicaiton.properties -----
# webservice APIs expecting a trailing slash!
registry.ws.url=${registry.ws.url}
registry.search.ws.url=${registry.search.ws.url}
checklistbank.ws.url=${checklistbank.ws.url}
checklistbank.search.ws.url=${checklistbank.search.ws.url}
occurrence.ws.url=${occurrence.ws.url}
occurrence.search.ws.url=${occurrence.ws.url}
occurrencedownload.ws.url=${occurrencedownload.ws.url}]]>
    


Author: trobertson@gbif.org
Comment: Fixed with http://code.google.com/p/gbif-portal/source/detail?r=916 with a safeguarding check to ensure the slashes exist.  A better fix might have been to go through the dependent components themselves as noted in the comment, although this seems reasonable for the time being.
Created: 2012-08-23 18:36:36.545
Updated: 2012-08-23 18:36:36.545