Project

General

Profile

Feature #631

validation of duplicate parameters

Added by Robert Weekly about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
10/31/2014
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

When using both the long and short versions of a parameter (ie., net and 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 and 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:
net/network
sta/station
cha/channel
loc/location
lat/latitude
lon/longitude
minlat/minlatitude
maxlat/maxlatitude

History

#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, \
endtime: end

#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.

#3 Updated by Robert Weekly about 7 years ago

  • Resolution set to Fixed
  • Status changed from New to Closed

Closed.

Also available in: Atom PDF