Opened 20 years ago
Closed 20 years ago
#802 closed defect (fixed)
[WMS Server] metadata not encoded in GetCapabilities
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | WMS Server | Version: | 4.3 |
Severity: | major | Keywords: | |
Cc: | dgadoury@… |
Description
If a WMS Server map file contains metadata to control the title of the map and layers, and the metadata contains invalid XML characters (specifically the & in this case), utilities that parse the capabilities document will fail because & is an invalid character. For example: "wms_title" "Rivers & Streams" will produce: <title>Rivers & Streams</title> which will cause xerces to dump on that line. It is probable that all metadata that ends up in the capabilities document will have the same problem.
Change History (7)
comment:2 by , 20 years ago
Actually, there is already msOWSPrintEncodeMetadata() function, so it's mostly a matter of walking through all calls to msOWSPrintMetadata() and replacing the ones that need to be replaced.
comment:4 by , 20 years ago
Assefa: do you see any problem with Julien updating the WFS code to automatically encode about everything in capabilities? I told him that it was ok to do it, so please let us know ASAP if you expect a problem.
comment:6 by , 20 years ago
blocked: | → 883 |
---|
comment:7 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I have put code in 4.3 cvs that encode all metadatas and mapfile parameters when outputed to a XML document. I have changed Map Context, WFS, WMS and GML code. The remaining issues will be in WCS and maybe in SLD code. A new bug have been opened for both issue. WCS: Bug 891 SLD: Bug 892
Note:
See TracTickets
for help on using tickets.