Opened 7 days ago

Last modified 3 days ago

#2833 assigned defect

FIX - throw exception when < is unescaped in XML and wcst_import should not escape coverage's metadata when importing — at Version 1

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.4
Component: petascope Version: 10.4
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description (last modified by Bang Pham Huu)

  • For example a coverage's metadadata has:
<a>
  5 > 6
</a>

is valid XML and > can be escaped to &lt;

but

<a>
  5 < 6
</a>

< is not valid and petascope must throw exception for that

  • wcst_import also should not escape <,> characters when importing, e.g.
&lt;oi-cov:OrthoimageCoverageMetadata xmlns:oi-cov="http://inspire.ec.europa.eu/schemas/oi/4.0" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/oi/4.0 https://schema.datacove.eu/OrthoimageryMetadata.xsd"&gt;
    &lt;oi-cov:inspireId&gt;
        &lt;base:Identifier&gt;
            &lt;base:localId&gt;FILE 1&lt;/base:localId&gt;
            &lt;base:namespace&gt;catalunya&lt;/base:namespace&gt;
        &lt;/base:Identifier&gt;
    &lt;/oi-cov:inspireId&gt;
    &lt;oi-cov:domainExtent&gt;
        &lt;gmd:EX_Extent&gt;

Change History (1)

comment:1 by Bang Pham Huu, 3 days ago

Cc: Dimitar Misev added
Description: modified (diff)
Summary: FIX - WCS DescribeCoverage cannot return result when metadata has json in local metadata fileFIX - throw exception when < is unescaped in XML and wcst_import should not escape coverage's metadata when importing
Note: See TracTickets for help on using tickets.