Merge branch 'seeddms-4.3.x' into seeddms-5.0.x

This commit is contained in:
Uwe Steinmann 2016-04-07 08:33:41 +02:00
commit 8a0073c39a
5 changed files with 32 additions and 14 deletions

View File

@ -31,6 +31,7 @@
- take out last empty line from view/bootstrap/class.Search.php which causes a - take out last empty line from view/bootstrap/class.Search.php which causes a
header to be send to early (Closes: #252, #254) header to be send to early (Closes: #252, #254)
- regular users with sufficient access rights may remove documents via webdav - regular users with sufficient access rights may remove documents via webdav
- fix error in utils/indexer.php when new documents were indexed
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 4.3.25 Changes in version 4.3.25

View File

@ -75,7 +75,9 @@ class SeedDMS_Preview_Previewer {
do { do {
$timeleft = $timeout - time(); $timeleft = $timeout - time();
$read = array($pipes[1]); $read = array($pipes[1]);
stream_select($read, $write = NULL, $exeptions = NULL, $timeleft, 200000); $write = NULL;
$exeptions = NULL;
stream_select($read, $write, $exeptions, $timeleft, 200000);
if (!empty($read)) { if (!empty($read)) {
$output .= fread($pipes[1], 8192); $output .= fread($pipes[1], 8192);

View File

@ -11,11 +11,11 @@
<email>uwe@steinmann.cx</email> <email>uwe@steinmann.cx</email>
<active>yes</active> <active>yes</active>
</lead> </lead>
<date>2016-03-29</date> <date>2016-04-05</date>
<time>08:07:14</time> <time>15:17:11</time>
<version> <version>
<release>1.1.7</release> <release>1.1.8</release>
<api>1.1.7</api> <api>1.1.8</api>
</version> </version>
<stability> <stability>
<release>stable</release> <release>stable</release>
@ -23,7 +23,7 @@
</stability> </stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license> <license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes> <notes>
set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0 pass variables to stream_select (required by php7)
</notes> </notes>
<contents> <contents>
<dir baseinstalldir="SeedDMS" name="/"> <dir baseinstalldir="SeedDMS" name="/">
@ -180,5 +180,21 @@ timeout for external commands can be passed to contructor of SeedDMS_Preview_Pre
check if object passed to createPreview(), hasPreview() is not null check if object passed to createPreview(), hasPreview() is not null
</notes> </notes>
</release> </release>
<release>
<date>2016-03-29</date>
<time>08:07:14</time>
<version>
<release>1.1.7</release>
<api>1.1.7</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0
</notes>
</release>
</changelog> </changelog>
</package> </package>

View File

@ -2,7 +2,7 @@
// MyDMS. Document Management System // MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal // Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe // Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli // Copyright (C) 2010 Matteo Lucarelli
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by // it under the terms of the GNU General Public License as published by

View File

@ -98,13 +98,12 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
if($created >= $content->getDate()) { if($created >= $content->getDate()) {
echo " (Document unchanged)\n"; echo " (Document unchanged)\n";
} else { } else {
if($index->delete($hit->id)) { $index->delete($hit->id);
try { try {
$index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout)); $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout));
echo " (Document updated)\n"; echo " (Document updated)\n";
} catch(Exception $e) { } catch(Exception $e) {
echo " (Timeout)\n"; echo " (Timeout)\n";
}
} }
} }
} }