sailing309 / kml-samples

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

Cached credentials not working right in .kmz on version 6.1 build 5001 #408

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which products are affected?
Google Earth, at least version 6.1 build 5001 

What steps will reproduce the problem?
1. create a .kml with the info from below
2. create a .kmz of the kml you just created
3. put both of them on a SSL server that requires a login

What is the expected output or behavior? What do you see instead?
Expected behavior is that when you click on a balloon link that references the 
same password protected SSL server that loaded the .kmz file and that you 
cached the credentials on, will load without user interaction. This is what 
happens when you load the .kml file. 

However, when you load the .kmz file, and click on the link in the balloon text 
GE will pop up a login box that is empty, and doesn't have a 'remember my 
credentials' box. Entering the userid/password won't cache it for the next time 
either. 

It looks like the cached credentials aren't used on a link from a .kmz file.

What application versions (if any) are you using?
6.1 build 5001

Which operating systems (and/or relevant web browsers) are affected?
At least Windows 7 / XP

Please provide any additional information (code snippets/links) below.

<?xml version="1.0" encoding="UTF-8"?>
 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">

<Document>
  <name>Open the balloon</name>
  <open>1</open>
  <Style id="cachedtestkml">
    <BalloonStyle>s
      <text><![CDATA[Click on <a href="cachedtest.kmz">this link</a> to load a link from the webserver. 
If this kmz file was served from a SSL web server that is password protected, 
then a login popup will appear that doesn't have the cached credentials from 
the original load from the SSL web server. If this was stored as a .kml file 
on the same server, then the cached credentials will download the file without
displaying the popup, and the cached credentials are used.]]></text>
    </BalloonStyle>
  </Style>
  <Placemark>
    <name>Open the balloon</name>
    <description>Open the balloon</description>
    <styleUrl>#cachedtestkml</styleUrl>
    <Point>
      <coordinates>-122.370533,37.823842,0</coordinates>
    </Point>
  </Placemark>
</Document>
</kml>

Original issue reported on code.google.com by mark.kle...@gmail.com on 11 Nov 2011 at 4:05