Opened 4 years ago

Closed 3 years ago

#717 closed defect (fixed)

WCS GetCapabilities response is invalid if phone specified in ps_service_provider

Reported by: jpass Owned by: pcampalani
Priority: major Milestone: 9.0.x
Component: petascope Version: 9.0.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 Changed 3 years ago by dmisev

  • Milestone set to 9.0.x

comment:2 Changed 3 years ago by pcampalani

  • Resolution set to fixed
  • Status changed from new to closed

Cascading status from #718.

Note: See TracTickets for help on using tickets.