Opened 12 years ago

Last modified 12 years ago

#295 closed defect

WMS init script fails when collection name is not the first one returned by RASQL select query — at Initial Version

Reported by: Dirk Daems Owned by: Dimitar Misev
Priority: minor Milestone: 8.4
Component: rasgeo Version: 8.3
Keywords: Cc:
Complexity: Medium

Description

The WMS init script (init_wms.sh) contains a check to validate if the collection name exists in the RASBASE database.
The query

select r from RAS_COLLECTIONNAMES as r" --out string

returns the existing collection names but the output of the result objects is (according to AWK) not printed on separate lines which makes the check

while read coll; do 
  if [ "$coll" = "$COLLNAME" ]; then collExists=1; fi
  done <<< "$( rasql -q "select r from RAS_COLLECTIONNAMES as r" --out string | grep "Result object" | awk 'BEGIN { FS=" "}; { print $4 };' )"

to fail if the collection name passed to the WMS init script is not the first collection name returned by the RASQL select query.

Change History (0)

Note: See TracTickets for help on using tickets.