View Issue Details

IDProjectCategoryView StatusLast Update
0003043SOGowith SOGopublic2014-12-30 19:56
Reporterpienne Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status newResolutionopen 
Platform[Client] MicrosoftOSWindowsOS Version7
Product Version2.2.12 
Summary0003043: Thunderbird plugins cached
Description

The updater can check automatically because thunderbird seems to cache the results of the update plugin requests.
You have to manually clean the cache get get updates for the plugins

Steps To Reproduce
  1. Change the version of a plugin
  2. Restart Thunderburd
    ...
    Nothing happens
    ...
  3. Clear cache
  4. Restart Thunderbird
  5. New version appears
Additional Information

updates.php

<?php
/ updates.php - this file is part of SOGo

  • Copyright (C) 2006-2013 Inverse inc.
  • Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
  • Francis Lachapelle <flachapelle@inverse.ca>
  • This file is free software; you can redistribute it and/or modify
  • it under the terms of the GNU General Public License as published by
  • the Free Software Foundation; either version 2, or (at your option)
  • any later version.
  • This file is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU General Public License for more details.
  • You should have received a copy of the GNU General Public License
  • along with this program; see the file COPYING. If not, write to
  • the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  • Boston, MA 02111-1307, USA.
    */

/ This script handles the automatic propagation of extensions pertaining to a
SOGo site. It requires PHP 4.1.0 or later.
/
$plugins
= array(
"sogo-connector@inverse.ca"
=> array( "application" => "thunderbird",
"version" => "31.0.0",
"filename" => "sogo-connector-31.0.0.xpi" ),
"sogo-integrator@inverse.ca"
=> array( "application" => "thunderbird",
"version" => "31.0.0",
"filename" => "sogo-integrator-31.0.0.xpi" ),

    &quot;{e2fda1a4-762b-4020-b5ad-a41df1933103}&quot;
    => array( &quot;application&quot; => &quot;thunderbird&quot;,
               &quot;version&quot; => &quot;3.3.1&quot;,
               &quot;filename&quot; => &quot;lightning-3.3.1.xpi&quot; ),

    #support for Tstream4Mail plugin
    &quot;Tstream4Mail@mozilla.org&quot;
    => array( &quot;application&quot; => &quot;thunderbird&quot;,
            &quot;version&quot; => &quot;4.4&quot;,
            &quot;filename&quot; => &quot;tstream4mail_4.4.xpi&quot; ),
    #support for Tstream4Mail plugin

);

$applications
= array( "thunderbird" => "<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>31.0</em:minVersion>
<em:maxVersion>31.*</em:maxVersion>" );

$pluginname = $_GET["plugin"];
$plugin =& $plugins[$pluginname];
$application =& $applications[$plugin["application"]];

if ( $plugin ) {
$platform = $_GET["platform"];
if ( $platform
&& file_exists( $platform . "/" . $plugin["filename"] ) ) {
$plugin["filename"] = $platform . "/" . $plugin["filename"];
}
elseif ( !file_exists( $plugin["filename"] ) ) {
$plugin = false;
}
}

if ( $plugin ) {
header("Content-type: text/xml; charset=utf-8");
echo ('<?xml version="1.0"?>' . "\n");
?>
<!DOCTYPE RDF>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
xmlns:em="http://www.mozilla.org/2004/em-rdf#&quot;>
<Description about="urn:mozilla:extension:<?php echo $pluginname ?>">
<em:updates>
<Seq>
<li>
<Description>
<em:version><?php echo $plugin["version"] ?></em:version>
<em:targetApplication>
<Description><?php echo $applications[$plugin["application"]] ?>
<em:updateLink><?php echo dirname(getenv('SCRIPT_URI')) . '/' . $plugin["filename"] ?></em:updateLink>
</Description>
</em:targetApplication>
</Description>
</li>
</Seq>
</em:updates>
</Description>
</RDF>
<?php
} else {
header("Content-type: text/plain; charset=utf-8", true, 404);
echo( 'Plugin not found' );
}
?>

TagsNo tags attached.

Activities

ludovic

ludovic

2014-12-30 17:39

administrator   ~0007944

Which cache do you clear in step no. 3?

pienne

pienne

2014-12-30 19:45

reporter   ~0007976

a sorry about that. The Thunderbird cache.
Default Thunderbird installation, all our users have the same issue.

ludovic

ludovic

2014-12-30 19:50

administrator   ~0007977

And how do you clean that Thunderbird cache?

pienne

pienne

2014-12-30 19:56

reporter   ~0007978

Tools ==> Options ==> "Network and Disk Space" ==> Clean Now

Issue History

Date Modified Username Field Change
2014-12-30 11:32 pienne New Issue
2014-12-30 17:39 ludovic Note Added: 0007944
2014-12-30 19:45 pienne Note Added: 0007976
2014-12-30 19:50 ludovic Note Added: 0007977
2014-12-30 19:56 pienne Note Added: 0007978