Am 21.07.2013 14:08, schrieb Heiner Markert:
Hello,
I configured SOGo update server on my local SOGo server under /plugins.
When I start thunderbird and try to push a new extension, thunderbird
displays "please wait until the update has finished" (or similar, I
get the message in German).
Nothing more seems to happen.
The web server log shows to GETs to the updates.php script:
[21/Jul/2013:14:02:15 +0200] "GET
/plugins/updates.php?plugin=sogo-integra...@inverse.ca&version=0.00&platform=Linux_x86_64-gcc3
HTTP/1.1" 200 788 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0)
Gecko/20130620 Thunderbird/17.0.7 Lightning/1.9.1"
[21/Jul/2013:14:02:15 +0200] "GET
/plugins/updates.php?plugin=sogo-connec...@inverse.ca&version=0.00&platform=Linux_x86_64-gcc3
HTTP/1.1" 200 772 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0)
Gecko/20130620 Thunderbird/17.0.7 Lightning/1.9.1"
However, now further call in order to actually download the xpi-files
is logged.
Has someone experienced similar behavior and can give me hints how to
solve it?
Best regards
Heiner
Hello,
I still did not get any further with this issue.
My udates.php:
<?php
/* updates.php - this file is part of SOGo
*
* Copyright (C) 2006-2013 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" => "24.0.0",
"filename" => "sogo-connector-24.0.0-679d27bda6.xpi" ),
"sogo-integra...@inverse.ca"
=> array( "application" => "thunderbird",
"version" => "24.0.0",
"filename" =>
"sogo-integrator-24.0.0-11ec2aa193-sogo-bullfinch-org.xpi" )
);
$applications
= array( "thunderbird" =>
"<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>24.0</em:minVersion>
<em:maxVersion>24.*</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><?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' );
}
?>
Best regards
Heiner
--
users@sogo.nu
https://inverse.ca/sogo/lists