Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#215 closed enhancement (fixed)

Petascope: XML schema validation should be optional

Reported by: Dimitar Misev Owned by: Nikolche Kolev
Priority: trivial Milestone: 8.4.2
Component: petascope Version: 8.3
Keywords: Cc: Jinsongdi Yu, Piero Campalani
Complexity: Medium

Description

The first request to petascope typically takes a looong time, because the XML schema validator collects/parses the XML schemas. This is necessary to pass the WCS test suite for example, but in production it is just unnecessary overhead.

So this schema validation should be optional, controlled via a parameter in petascope.properties, and should be disabled by default.

Change History (7)

comment:1 by Peter Baumann, 12 years ago

Priority: minortrivial

comment:2 by Peter Baumann, 11 years ago

Milestone: 8.4
Owner: changed from Dimitar Misev to Alex Dumitru
Status: newassigned

comment:3 by Dimitar Misev, 11 years ago

Owner: changed from Alex Dumitru to Nikolche Kolev

@Nikolce

You should add a parameter to petascope.properties, e.g.

xml-validation=false

Read the parameter value in ConfigManager, and then wrap the code in XMLDescribeCoverageParser (lines 58-82 afaics) in an if based on the value of the parameter.

If you can't find any of the files just let me know. wiki:PetascopeDevGuide would be useful to check out (but don't go into the old/new database schema).

comment:4 by Peter Baumann, 11 years ago

Milestone: 8.48.5

comment:5 by Nikolche Kolev, 11 years ago

Complexity: Medium
Resolution: fixed
Status: assignedclosed

comment:6 by abeccati, 11 years ago

Milestone: 8.58.4.2

comment:7 by Piero Campalani, 10 years ago

Feature enhanced in changeset:c6ea95c: XML validation is not narrowed to DescribeCoverage requests, but to the whole WCS.

Note: See TracTickets for help on using tickets.