Return to Issues Table 

Changed behaviour of functions?

Issue ID#:
919
Category:
WCS 1.0
Type:
Issue
Status:
Closed (Change Required)
Priority:
High
Entered By:
Goerke, Sebastian
Created On:
2013-12-12 12:27:21
Updated By:
Bermudez, Luis
Last Update:
2014-03-11 10:00:15
Assigned To:
Martell, Richard

Original Issue Details:

Regarding the following test log, it seems, that teamengine 4 handles some functions in another way than teamengine 3 did:


 

wcs1-0-0:getcoverage_operations-getcoverage_request-coverage-get-kvp-3

wcs1-0-0:basic_service_elements-general_http_request_rules-6

wcs1-0-0:getcoverage_operations-getcoverage_request-coverage-get-kvp-1

 

 

A sequence of more than one item is not allowed as the first argument of substring-before() ("-168.1 13.0", "-168.1 13.0") 

Result: Failed

 

The specific test was not changed since teamengine 3 and 

 

Verified with two implementations. One is: http://cite.lat-lon.de/deegree-webservices-3.3.6/services/wcs?service=WCS&version=1.0.0&request=GetCapabilities

 


Status: new
Assigned To: Martell, Richard

Will need to dig into the CTL scripts to find the offending XPath expressions.

Hours Worked: 0.00
Entered By: Martell, Richard - 2014-10-23 11:54:13
18
Status: new
Assigned To: Martell, Richard

This error indicates an invalid invocation of an XPath 2.0 function--such errors were unreported in teamengine v3 for some reason, or are only revealed by specific content in a response entity. The first argument to the substring-before function must be a string value (xs:string).


See http://www.w3.org/TR/xpath-functions/#func-substring-before.


The supplied argument is a sequence of strings in this case, so the XPath expression is matching multiple items when presumably only one match is expected.

Hours Worked: 0.00
Entered By: Martell, Richard - 2014-10-23 11:54:13
Status: new
Assigned To: Martell, Richard

The CoverageOffering/domainSet/spatialDomain element may contain 1..* gml:Envelope elements but the path expression for VAR_WCS_COVERAGE_1_BBOX only allows for one occurrence.

Hours Worked: 0.00
Entered By: Martell, Richard - 2014-10-23 11:54:13
Status: new
Assigned To: Martell, Richard

The same erroneous assumption also affects the VAR_WCS_COVERAGE_1_POSITION_FIRST and VAR_WCS_COVERAGE_1_POSITION_SECOND variables, which are used to populate various XML request entities.

Hours Worked: 0.00
Entered By: Martell, Richard - 2014-10-23 11:54:13
Status: Fixed - Requires Review
Assigned To: Martell, Richard

Fixed in r6. Added new function wcs:coords-from-envelope (in wcs-functions.xml) to extract bbox coordinates from gml:Envelope. More than 40 tests were adversely affected by this issue; the suite now runs to completion.

Checked against the WCS implementation located at http://cite.lat-lon.de/deegree-webservices-3.3.6/services/wcs?service=WCS&version=1.0.0&request=GetCapabilities.

Hours Worked: 0.00
Entered By: Martell, Richard - 2014-02-28 11:34:02
Status: Closed (Change Required)
Assigned To: Martell, Richard

Fixed and reviewed. Avialable in TE 4.0.3 since  2014-02-28

Hours Worked: 0.00
Entered By: Bermudez, Luis - 2014-03-11 10:00:15