[mapserver-users] wfs 1.1 capabilities breaks when using special characters

2010-10-22 Thread Holger Porath

Hi list,

mapserver 5.6 breaks when we perform a getcapabilities request for wfs  
1.1. This only happens when the capabilities response contains special  
characters (like the copyright symbol or umlauts). The response is cut  
at the position where the special character is returned:
wfs:WFS_Capabilities xmlns:gml=http://www.opengis.net/gml;  
xmlns:wfs=http://www.opengis.net/wfs; xmlns:ows=http://www.opengis.net/ows 
 xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance 
 xmlns:ogc=http://www.opengis.net/ogc; xmlns=http://www.opengis.net/wfs 
 version=1.1.0 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd 
 ows:ServiceIdentification ows:Titletest title/ows:Title  
ows:Abstracttest abstract/ows:Abstract !--WARNING: Optional  
metadata ows_keywordlist was missing for ows:KeywordList--  
ows:ServiceType codeSpace=OGCOGC WFS/ows:ServiceType  
ows:ServiceTypeVersion1.1.0/ows:ServiceTypeVersionows:Feestest  
fees/ows:Fees ows:AccessConstraintscopyright


The error log shows the following:
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71]encoding
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error :
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] output  
conversion failed due to conv error, bytes 0xFC 0x6D 0x65 0x72

[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] I/O
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error :
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] encoder error
The strange thing is that for wfs 1.0 the request/response is working  
fine! It is not cut and returned as usual. The issue is only for wfs  
1.1.

Does anyone have any idea?
Thanks in advance.
Holger
---
Dipl. Wirt. Inform. Holger Porath
Wangeroogestraße 63
45665 Recklinghausen
holger.por...@porath.de___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] wfs 1.1 capabilities breaks when using special characters

2010-10-22 Thread Yewondwossen Assefa

Hi,

 This is probably related to encoding issues with libxml2 described in 
http://trac.osgeo.org/mapserver/ticket/3297
 Some items are still missing the encoding conversion.  If there is no 
sensitive info in your map, It would be nice to attach it to the bug so 
It can be tested.


regards,

On 22/10/2010 8:29 AM, Holger Porath wrote:

Hi list,

mapserver 5.6 breaks when we perform a getcapabilities request for wfs 
1.1. This only happens when the capabilities response contains special 
characters (like the copyright symbol or umlauts). The response is cut 
at the position where the special character is returned:
wfs:WFS_Capabilities xmlns:gml=http://www.opengis.net/gml; 
xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:ows=http://www.opengis.net/ows; 
xmlns:xlink=http://www.w3.org/1999/xlink; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:ogc=http://www.opengis.net/ogc; 
xmlns=http://www.opengis.net/wfs; version=1.1.0 
xsi:schemaLocation=http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; 
ows:ServiceIdentification ows:Titletest title/ows:Title 
ows:Abstracttest abstract/ows:Abstract !--WARNING: Optional 
metadata ows_keywordlist was missing for ows:KeywordList-- 
ows:ServiceType codeSpace=OGCOGC WFS/ows:ServiceType 
ows:ServiceTypeVersion1.1.0/ows:ServiceTypeVersionows:Feestest 
fees/ows:Fees ows:AccessConstraintscopyright


The error log shows the following:
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71]encoding
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error :
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] output 
conversion failed due to conv error, bytes 0xFC 0x6D 0x65 0x72

[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] I/O
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error :
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] encoder error
The strange thing is that for wfs 1.0 the request/response is working 
fine! It is not cut and returned as usual. The issue is only for wfs 1.1.

Does anyone have any idea?
Thanks in advance.
Holger
---
Dipl. Wirt. Inform. Holger Porath
Wangeroogestraße 63
45665 Recklinghausen
holger.por...@porath.de___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users