Opened 11 years ago

Closed 10 years ago

#717 closed defect (fixed)

WCS GetCapabilities response is invalid if phone specified in ps_service_provider

Reported by: James Passmore Owned by: Piero Campalani
Priority: major Milestone: 9.0.x
Component: petascope Version: 9.0
Keywords: WCS metadata GetCapabilities Cc:
Complexity: Medium

Description

If a phone number (for example +44 (0)131 667 1000) is added to the ps_service_provider table the resultant GetCapabilities response is invalid.

E.g. response looks like:

<ows:ContactInfo>
  <ows:Phone>+44 (0)131 667 1000</ows:Phone>
  <ows:Address>

This fails validation with error:

(E [Xerces] cvc-complex-type.2.3: Element 'ows:Phone' cannot have character [children], because the type's content type is element-only.)

E.g. response should look like:

<ows:ContactInfo>
  <ows:Phone>
    <ows:Voice>+44 (0)131 667 1000</ows:Voice>
  </ows:Phone>
  <ows:Address>

Change History (2)

comment:1 by Dimitar Misev, 10 years ago

Milestone: 9.0.x

comment:2 by Piero Campalani, 10 years ago

Resolution: fixed
Status: newclosed

Cascading status from #718.

Note: See TracTickets for help on using tickets.