On 01/29/2013 12:58 PM, Dave Fullerton wrote:
On 01/28/2013 05:45 PM, Donny Brooks wrote:


On 01/25/2013 07:33 AM, Donny Brooks wrote:


On 01/25/2013 07:07 AM, Jean Raby wrote:
On 13-01-24 2:45 PM, Donny Brooks wrote:
Ever since the plugins were upgraded to 10.0.3 I have had problems
getting my clients to update automatically. Before this everything was
fine. Now that we have a new fresh install I have gotten the
updates.php
file from github and edited for my setup. The integrators
extensions.rdf
file has been updated accordingly. I see the client hitting apache
logs:


10.8.3.154 - - [24/Jan/2013:13:35:46 -0600] "GET
/plugins/updates.php?plugin=sogo-integra...@inverse.ca&version=0.00&platform=WINNT_x86-msvc

HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.8)
Gecko/20121005 Thunderbird/10.0.8 Lightning/1.2.1"

However there is no prompt saying it is updating plugins and to
restart.
What could I be missing?

What do you see if you fetch this url with a regular browser :
/plugins/updates.php?plugin=sogo-integra...@inverse.ca&version=0.00&platform=WINNT_x86-msvc



10.8.3.154 - - [25/Jan/2013:07:32:18 -0600] "GET
/plugins/updates.php?plugin=sogo-integra...@inverse.ca&version=0.00&platform=WINNT_x86-msvc
HTTP/1.1" 200 3159 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64)
AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17"

Thing is the version I had installed was 10.0.3 where the updates.php
was set for 10.0.4. I am going to compare and test the 10.0.1 version
this morning as I got to looking and that was the last version that
worked right.

Looking at the 10.0.1 compared to the 10.0.3 I don't see any difference.
Does anyone have the automatic updates working and would like to share
their setup?

You showed what you see in the web server logs, but what do you see in the browser when you visit the url in your browser? You should see some XML that is similar to this:

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:em="http://www.mozilla.org/2004/em-rdf#";>
<Description about="urn:mozilla:extension:sogo-integra...@inverse.ca">
<em:updates>
<Seq>
<li>
<Description>
<em:version>17.0.2.3</em:version>
<em:targetApplication>
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>17.0</em:minVersion>
<em:maxVersion>17.*</em:maxVersion>
<em:updateLink>http://myupdateserver.mycompany.com/thunderbird/addons/sogo-integrator-17.0.2.3.xpi</em:updateLink>
</Description>
</em:targetApplication>
</Description>
</li>
</Seq>
</em:updates>
</Description>
</RDF>

If you don't, then you have a problem with your updates.php file.

-Dave

And that I don't see. So that is probably my problem. It actually shows my updates.php file contents. Here is my current updates.php if someone has a chance to compare it to their working one:

<?php
/* updates.php - this file is part of SOGo
 *
 *  Copyright (C) 2006-2012 Inverse inc.
 *
 * Author: Wolfgang Sourdeau <wsourd...@inverse.ca>
 *         Francis Lachapelle <flachape...@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-connec...@inverse.ca"
         => array( "application" => "thunderbird",
                   "version" => "10.0.4",
                   "filename" => "sogo-connector-10.0.4.xpi" ),
        "sogo-integra...@inverse.ca"
         => array( "application" => "thunderbird",
                   "version" => "10.0.4",
                   "filename" => "sogo-integrator-10.0.4.xpi" ),
    "{e2fda1a4-762b-4020-b5ad-a41df1933103}"
    => array( "application" => "thunderbird",
           "version" => "1.2.3",
           "filename" => "lightning-1.2.3.xpi" )
);

$applications
= array( "thunderbird" => "<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>10.0</em:minVersion>
<em:maxVersion>10.*</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#";
  xmlns:em="http://www.mozilla.org/2004/em-rdf#";>
<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>http://webmail.mdah.state.ms.us/plugins/<?php echo $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' );
}
?>

--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to