anupadkh / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

text/plain mime type returned for KML samples #426

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are affected?
 Google Earth

What steps will reproduce the problem?

1. Open URL in web browser.
http://kml-samples.googlecode.com/svn/trunk/kml/Polygon/tennis-poly.kml
same with these URLS also:
http://kml-samples.googlecode.com/svn/trunk/kml/Polygon/tennis-lines.kml
http://kml-samples.googlecode.com/svn/trunk/kml/Polygon/tennis-corners.kml

2. The content-type is text/plain so it appears in web browser as text document 
rather than launch Google Earth.
Same with IE 9 and FireFox 13.

3. Strangely enough the another URL works.
http://kml-samples.googlecode.com/svn/trunk/kml/Polygon/treasureIsland.kml

This returns the correct mime type -> application/vnd.google-earth.kml+xml

What is the expected output or behavior? What do you see instead?

 Expect .kml samples to have correct KML mime type and launch Google Earth.

What application versions (if any) are you using?

 Google Earth 6.2

Which operating systems (and/or relevant web browsers) are affected?

 -Windows 7 SP1 [Version 6.1.7601]
 -IE 9
 -FireFox 13.01

Original issue reported on code.google.com by gjmath...@gmail.com on 29 Jun 2012 at 6:32

GoogleCodeExporter commented 9 years ago
I've updated all of the KML files with the appropriate KML MIM type.  The 
following SO page has answers for configuring Eclipse to set the MIME type 
automatically, and for setting the MIME type manually via the command line.

http://stackoverflow.com/questions/2049743/stop-eclipse-subversive-from-setting-
svnmime-type-to-text-plain-on-initial-comm

Original comment by sax...@google.com on 17 Jul 2012 at 10:09