benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

Opera Mobile - Managed Store not functioning as specified #865

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a Managed Store
<html>
<head>
<script>
var siteStores = {
    'img': '/manifest/img.json',
    'js':  '/manifest/js.json'
};

var localServer = google.gears.factory.create('beta.localserver');

for (var storeName in siteStores) {
    var stores = localServer.createManagedStore(storeName);
    stores.manifestUrl = siteStores[storeName];
    stores.checkForUpdate();
}
</script>
</head>
<body>
Hello world
</body>
</html>

when the above script is executed the stores are created. Server reflects
requests for the json file followed by the resources and then the json file
with validate-manifest header as expected. Only 1 problem - second request
for json file does not have if-modified-since header. However as version is
same  client doesnot perform any further action. All parameters of the
store (version, status = 0) reflect proper values.

2. Now change version in the manifest file and some resource in the
manifest then refresh the page.
3. Store doesnot have updated resource. The server reflects 2 hits for the
manifest files - one with validate-manifest header, however no
if-modified-since header, but no request from the client for the resources
specified as urls in the manifest file. If new resource is added in the
manifest file it is fetched from the server. The client shows activity of
fetching files but requests are not reflected on the server. I am using a
wifi network to test. There is no node between the phone and the server
just the router.

What is the expected output? What do you see instead?
Code works fine within same wifi network from a laptop and Firefox.

What version of the product are you using? On what operating system?
Windows Mobile 6 [CE OS 5.2.1623 (Build 18128.0.4.5)] and Opera
Mobile(opera_v9.5beta2_gears.cab) and Google
gears(gears-wince-opt-opera.cab) on an i-mate Ultimate 8502
I am using LAMP architecture on the server.

Please provide any additional information below.
Opera config has the default values - opera:config no modifications
Have tried setting Expires and Cache headers with no change in outcome.
Server is sending Date, Last-Modified and E-Tag headers.

Original issue reported on code.google.com by ashay...@gmail.com on 25 Apr 2009 at 9:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have a similar problem using Opera on WM6.1. The managed store never pools for
updated manifest file. Even trying to call store.checkForUpdate() explicitely 
through
a button does not work.

any solutions on this one?

Original comment by spuzv...@gmail.com on 18 Feb 2010 at 1:30

GoogleCodeExporter commented 9 years ago
I got it working using a resource store not a managed store with some LAMP based
server set up. 

Original comment by ashay...@gmail.com on 28 Feb 2010 at 1:26