Ticket #22 (closed defect: fixed)
Cannot enable/disable the request XML validation
| Reported by: | nsavard | Owned by: | nsavard@… |
|---|---|---|---|
| Priority: | major | Version: | SVN |
| Keywords: | xml validate validate client request | Cc: | adube@… |
| Triage Stage: | Unreviewed | State of Approval: | Unnecessary |
| Attached Patches: | None | Complexity: | Unknown |
| Compatibility: | Unknown | Specification: | Unnecessary |
Description
The query request is validated against the corresponding schema within ows_request_check() function. The problem is that some client software doesn't validate, like Open Layers?, and it's no more possible to use Tinyows. Sometime we need to make Tinyows to answer to the incoming request even though its structure is not correctly built (e.g. testing).
I propose to add a new 'server' tag in the config.xml file and a 'xmlvalidate' parameter within this delimited tags section to allow a user to enable/disable the client request validation. A new Ows structure member 'xml_validate' of boolean type will be added. A test will be added in ows_request_check() function to verify its value before calling ows_schema_validation() function.
Comments are welcome.