validation of duplicate parameters
When using both the long and short versions of a parameter (ie.,
network) in a request, a 400 error should be thrown for using duplicate parameters. Currently, the WSS performs the check only for exact duplications (
net) but does not account for synonymous parameters or for duplications in a POST request.
Up for debate is how much responsibility for parameter validation we should give to the WSS vs a service like fdsnws-station.
This request is for the webserviceshell to handle the detection and reporting of invalid duplicate instances of the following parameters:
#1 Updated by Mike Stults about 7 years ago
- Target version set to 1.1.9
added "aliases" parameter to -param.cfg file to enable better duplicate parameter checking
- short form (i.e. aliases) are no longer needed in -param.cfg file, instead, add new parameter for aliases like this
aliases = \
station: (sta, sta2, st3), \
network: net, \
location: loc, \
channel: cha, \
starttime: start, \
#2 Updated by Robert Weekly about 7 years ago
This tested well and is confirmed to work on localhost. The parameter files for fdsnws-station should also be updated in this manner, and made to include the aliases lat/latitude, lon/longitude, maxlat/maxlatitude, and maxlon/maxlongitude.
Recommend that bug be closed at this time.