[Laszlo-dev] Snippets make 2 requests when font tag is present

Antun Karlovac antun at laszlosystems.com
Fri Apr 17 13:13:43 PDT 2009


cacheWrapper seems to be Webtop-specific. I grepped both the OL and the 
Webtop source trees. It's a folder where Webtop keeps embed code, the 
wrapping HTML page, etc.

But the weird thing is that the SWF makes two separate HTTP requests for 
the compiled import. Is it at all possible that Webtop somehow overrides 
OpenLaszlo import behavior?

Here's what the webtop-lzmail/calendar/cacheWrapper directory looks like:

$ find cacheWrapper
cacheWrapper
cacheWrapper/browserdownload.html
cacheWrapper/download.html
cacheWrapper/footer.html
cacheWrapper/images
cacheWrapper/images/background.png
cacheWrapper/images/cancel.png
cacheWrapper/images/download.png
cacheWrapper/images/footer_bg.png
cacheWrapper/images/powered_laszlo.gif
cacheWrapper/images/powered_laszlo_mo.gif
cacheWrapper/images/template.png
cacheWrapper/images/warning.png
cacheWrapper/lps
cacheWrapper/lps/includes
cacheWrapper/lps/includes/embed-compressed.js
cacheWrapper/lps/includes/embed.js
cacheWrapper/lps/includes/excanvas.js
cacheWrapper/lps/includes/script.js
cacheWrapper/lps/includes/utils.js
cacheWrapper/lps/includes/vbembed.js
cacheWrapper/mail.js
cacheWrapper/mainframe.html
cacheWrapper/style.css
cacheWrapper/util.js
cacheWrapper/webtop.js

-Antun

P T Withington wrote:
> I'm not aware of any 'cacheWrapper' in OpenLaszlo, so I suspect this is 
> something to do with WT.
> 
> On 2009-04-17, at 15:34EDT, Antun Karlovac wrote:
> 
>> Hi all,
>>
>> I'm trying to simplify a very odd bug I found using snippets in OL with
>> Webtop. The symptoms are that snippets fail to load, but only under the
>> circumstances below. I can reproduce consistently with Webtop, but not
>> without, so I don't know how to file it. Here are some circumstances, if
>> this rings a bell, let me know:
>>
>> - The only happens when running Webtop and accessing the wrapper
>>   page via the webtop context. i.e. I have two webapps:
>>   /webtop-lzmail/ - the Webtop webapp
>>   /ol-webtop/ - OpenLaszlo 4.0.15.0 (11554)
>>
>>   Remember with Webtop, the two locations above often share a lot of
>>   common space on the hard disk.
>>   webtop-lzmail/calendar is the same as
>>   ol-webtop/webtop/sdk/examples/lzmail/calendar. The
>>   webtop-lzmail/calendar/index.jsp embeds the following URL over HTTP:
>>   ol-webtop/webtop/sdk/examples/lzmail/calendar/main.lzx
>>
>> - It only happens if a font is declared in the library being imported.
>>   Note the first point above - it'll work fine if you try it in a
>>   simple OL example.
>>
>> - When it does fail, and I monitor HTTP requests, I see two requests
>>   for the library, not one:
>> /ol-webtop/webtop/sdk/my-webtops/webtop-lzmail/calendar/build/main/myclass.lzx.swf 
>>
>>        - This results in a 200 response.
>>    /webtop-lzmail/calendar/cacheWrapper/build/main/myclass.lzx.swf
>>        - This results in a 404 response.
>>
>>   Normally, if I don't access Webtop through the webtop webapp, but
>>   instead hit the LZX directly, I only see one request, and it works:
>> /ol-webtop/webtop/sdk/my-webtops/webtop-lzmail/calendar/build/main/myclass.lzx.swf 
>>
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Antun
> 


More information about the Laszlo-dev mailing list