[Geoserver-users] WFS GetCapabilities response XML cannot be parsed in IE8 (GeoServer 2.5.1)

Hello,

I was not sure about how to log a GeoServer issue to JIRA so posting here alternatively.

I was writing a javascript code which does the following
  1. Make a GetCapabilities request against http://localhost:8080/geoserver/wfs?request=GetCapabilities (GeoServer version is 2.5.1)
  2. Parse the response text using $.parseXML(text) in jQuery 1.11.0
  
The code worked in every browser except Internet Explorer 8.
Ultimately I found that the following attribute of <wfs:WFS_Capabilities /> node was preventing the XML to be parsed in IE8.

  xmlns:xml=”http://www.w3.org/XML/1998/namespace”

By removing this attribute beforehand, $.parseXML was successful in IE8.

I wonder why this xmlns:xml thing exists in WFS GetCapabilities responses. It does not appear in the response XMLs for DescribeFeatureType and WMS GetCapabilities, only in this.

Thank you,

Go Sato
Graduate GIS Developer

WSP in the UK, Three White Rose Office Park, Millshaw Park Lane, Leeds, LS11 0DL
Tel: +44(0)113 395 6670

Website: www.wspgroup.co.uk

We are WSP

British Construction Industry (BCI) Major Project of the Year Award winner for The Shard 2013

WSP is one of the world’s leading professional services firms, working with governments, businesses, architects and planners and providing integrated solutions across many disciplines. The firm provides services to transform the built environment and restore the natural environment. It has approximately 15,000 employees, based in more than 300 offices, across 35 countries, on
every continent.

Confidential
This message, including any document or file attached, is intended only for the addressee and may contain privileged and/or confidential information. Any other person is strictly prohibited from reading, using, disclosing or copying this message. If you have received this message in error, please notify the sender and delete the message. Thank you.

WSP Management Services Limited, Registered Office: WSP House, 70 Chancery Lane, London, WC2A 1AF Registered Number 02454665 England

 If possible, please consider saving paper by not printing your e-mail.

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

Hi Go,
I can’t comment on your issue (though maybe it’s not a bug but just IE being IE), however details on filing a JIRA are here: http://geoserver.org/comm/ (very bottom of page)

Cheers,
Jonathan

On 30 July 2014 15:14, Sato, Go <go.sato@anonymised.com> wrote:

Hello,

I was not sure about how to log a GeoServer issue to JIRA so posting here alternatively.

I was writing a javascript code which does the following

  1. Make a GetCapabilities request against http://localhost:8080/geoserver/wfs?request=GetCapabilities (GeoServer version is 2.5.1)
  2. Parse the response text using $.parseXML(text) in jQuery 1.11.0

The code worked in every browser except Internet Explorer 8.
Ultimately I found that the following attribute of <wfs:WFS_Capabilities /> node was preventing the XML to be parsed in IE8.

xmlns:xml=”http://www.w3.org/XML/1998/namespace

By removing this attribute beforehand, $.parseXML was successful in IE8.

I wonder why this xmlns:xml thing exists in WFS GetCapabilities responses. It does not appear in the response XMLs for DescribeFeatureType and WMS GetCapabilities, only in this.

Thank you,

Go Sato
Graduate GIS Developer

WSP in the UK, Three White Rose Office Park, Millshaw Park Lane, Leeds, LS11 0DL
Tel: +44(0)113 395 6670

Website: www.wspgroup.co.uk

We are WSP

British Construction Industry (BCI) Major Project of the Year Award winner for The Shard 2013

WSP is one of the world’s leading professional services firms, working with governments, businesses, architects and planners and providing integrated solutions across many disciplines. The firm provides services to transform the built environment and restore the natural environment. It has approximately 15,000 employees, based in more than 300 offices, across 35 countries, on
every continent.

Confidential
This message, including any document or file attached, is intended only for the addressee and may contain privileged and/or confidential information. Any other person is strictly prohibited from reading, using, disclosing or copying this message. If you have received this message in error, please notify the sender and delete the message. Thank you.

WSP Management Services Limited, Registered Office: WSP House, 70 Chancery Lane, London, WC2A 1AF Registered Number 02454665 England

 If possible, please consider saving paper by not printing your e-mail.


Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

I just investigated this issue and could reproduce in IE8 and IE10 (both emulated in IE11) the issue that Go describes. I also came to the same conclusion and later found this thread. I found the problem in GXP working on this example (http://lib.heron-mc.org/heron/latest/examples/catalognl, do Add Layers and then add a WFS server), even after patching XML validation to false for MSDOM in OpenLayers (another issue with WMS capabilities) which I first thought was the core of the issue.

My GeoServer version is 2.4.3/GeoTools 10.3. I did not see the problem in some older GeoServer version (do not know which as it is an online service). The problem IMO seems to have occurred before in WFS Get Feature: https://jira.codehaus.org/browse/GEOS-2606

The description from MS is here:
http://support.microsoft.com/kb/262585 (strangely not regarded as a bug).

So the problem is this NS def: xmlns:xml="http://www.w3.org/XML/1998/namespace&quot; that IE dislikes, though it is valid XML. Solution IMO is to remove the NS def, as the xml NS already defined by definition (or remove IE from this world but that is a bigger task ;-)).

If this is really regarded a problem I can open a JIRA issue.

best,

--Just
http://justobjects.nl

On 31-07-14 12:21, Jonathan Moules wrote:

Hi Go,
I can't comment on your issue (though maybe it's not a bug but just IE
being IE), however details on filing a JIRA are here:
http://geoserver.org/comm/ (very bottom of page)

Cheers,
Jonathan

On 30 July 2014 15:14, Sato, Go <go.sato@anonymised.com
<mailto:go.sato@anonymised.com>> wrote:

    Hello,

    I was not sure about how to log a GeoServer issue to JIRA so posting
    here alternatively.

    I was writing a javascript code which does the following
       1. Make a GetCapabilities request against
    http://localhost:8080/geoserver/wfs?request=GetCapabilities
    (GeoServer version is 2.5.1)
       2. Parse the response text using $.parseXML(text) in jQuery 1.11.0

    The code worked in every browser except Internet Explorer 8.
    Ultimately I found that the following attribute of
    <wfs:WFS_Capabilities /> node was preventing the XML to be parsed in
    IE8.

       xmlns:xml=”http://www.w3.org/XML/1998/namespace”

    By removing this attribute beforehand, $.parseXML was successful in IE8.

    I wonder why this xmlns:xml thing exists in WFS GetCapabilities
    responses. It does not appear in the response XMLs for
    DescribeFeatureType and WMS GetCapabilities, only in this.

    Thank you,

    Go Sato
    Graduate GIS Developer

    WSP in the UK, Three White Rose Office Park, Millshaw Park Lane,
    Leeds, LS11 0DL
    Tel: +44(0)113 395 6670 <tel:%2B44%280%29113%20395%206670>

    Website: www.wspgroup.co.uk <http://www.wspgroup.co.uk>

    We are WSP

    British Construction Industry (BCI) Major Project of the Year Award
    winner for The Shard 2013

    WSP is one of the world’s leading professional services firms,
    working with governments, businesses, architects and planners and
    providing integrated solutions across many disciplines. The firm
    provides services to transform the built environment and restore the
    natural environment. It has approximately 15,000 employees, based in
    more than 300 offices, across 35 countries, on
    every continent.

    Confidential
    This message, including any document or file attached, is intended
    only for the addressee and may contain privileged and/or
    confidential information. Any other person is strictly prohibited
    from reading, using, disclosing or copying this message. If you have
    received this message in error, please notify the sender and delete
    the message. Thank you.

    WSP Management Services Limited, Registered Office: WSP House, 70
    Chancery Lane, London, WC2A 1AF Registered Number 02454665 England

     If possible, please consider saving paper by not printing your
    e-mail.

    ------------------------------------------------------------------------------
    Infragistics Professional
    Build stunning WinForms apps today!
    Reboot your WinForms applications with our WinForms controls.
    Build a bridge from your legacy apps to the future.
    http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
    _______________________________________________
    Geoserver-users mailing list
    Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may
contain confidential, sensitive or personal information and should be
handled accordingly. Unless you are the named addressee (or authorised
to receive it for the addressee) you may not copy or use it, or disclose
it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from
us, including without limitation all GCSX traffic, may be subject to
recording and/or monitoring in accordance with relevant legislation.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users