Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Parsing of some GetCapabilities fails on IE9 #223

Closed
oterral opened this issue Aug 8, 2013 · 12 comments
Closed

Parsing of some GetCapabilities fails on IE9 #223

oterral opened this issue Aug 8, 2013 · 12 comments
Assignees
Labels

Comments

@oterral
Copy link
Contributor

oterral commented Aug 8, 2013

In Import WMS component parsing of some WMS GetCapabilities failed:

ol3 problems?

@ghost ghost assigned oterral Aug 8, 2013
@gjn
Copy link
Contributor

gjn commented Aug 8, 2013

Could be. We had similar things in the past.

See my comment (#3) here: https://redmine.bgdi.admin.ch/issues/5033

Maybe this is also related:
http://unicolet.blogspot.ch/2012/03/openlayers-to-get-parse-getcapabilities.html

@cedricmoullet
Copy link
Contributor

@oterral What is the status of this problem ?

@ghost ghost assigned sbrunner and oterral Sep 25, 2013
@oterral
Copy link
Contributor Author

oterral commented Sep 27, 2013

I'm setting OL3 in a virtual windows to debug this issue

@oterral
Copy link
Contributor Author

oterral commented Sep 30, 2013

Doesn't seem an OL problem, more probably an encoding file problem.

The error occurs when IE try to parse a file with goog.dom.loadXml :

´(new DOMParser).parseFromString(xml, "application/xml")

@oterral
Copy link
Contributor Author

oterral commented Sep 30, 2013

I confirm. IE9 failed parsing file in GetCapabilities defined as ISO-8859-1

@cedricmoullet
Copy link
Contributor

Please check in current map.geo.admin.ch. If it doesn't work, we can close it

@oterral
Copy link
Contributor Author

oterral commented Oct 1, 2013

It works on map.geo.admin.ch, so I continue to dig

@oterral
Copy link
Contributor Author

oterral commented Oct 2, 2013

Ok in RE2 it works because the old ogcproxy manage content encoding.

 if content.find('encoding=') > 0:
     m = re.search("encoding=\"(.*?)\\\"",content)
     try:
         data = content.decode(m.group(1))
     except Exception:
             abort(406)
     return data.encode('utf-8')
 else:
     return content

@elemoine
Copy link
Contributor

elemoine commented Oct 2, 2013

@oterral, do you have a URL to a WMS capabilities document IE 9 fails to parse?

@elemoine
Copy link
Contributor

elemoine commented Oct 2, 2013

@oterral
Copy link
Contributor Author

oterral commented Oct 2, 2013

@oterral
Copy link
Contributor Author

oterral commented Oct 3, 2013

Fixed with geoadmin/mf-chsdi3#124

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants