Skip to content

Commit 8a868d5

Browse files
authored
Merge pull request #121 from diskoverdata/2.3.1
2.3.1
2 parents db8c389 + e18ecee commit 8a868d5

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

diskover-web/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Diskover-web v2 Community Edition Change Log
22

3+
# [2.3.1] - 2025-04-02
4+
### changed
5+
- bug fixes
6+
7+
38
# [2.3.0] - 2024-08-01
49
### BREAKING CHANGES
510
- Constants.php config file no longer used, changed to using sqlite db for storing diskover-web config settings instead of config file, existing settings are copied from Constants.php on upgrade

diskover-web/src/diskover/Diskover.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,10 @@ function indexInfo()
340340
// Get size of index
341341
// convert to bytes
342342
$indexsize = $val['store_size'];
343-
if (strpos($indexsize, 'gb')) {
343+
if (strpos($indexsize, 'tb')) {
344+
$indexsize = str_replace('tb', '', $indexsize);
345+
$indexsize = $indexsize * 1024 * 1024 * 1024 * 1024;
346+
} elseif (strpos($indexsize, 'gb')) {
344347
$indexsize = str_replace('gb', '', $indexsize);
345348
$indexsize = $indexsize * 1024 * 1024 * 1024;
346349
} elseif (strpos($indexsize, 'mb')) {
@@ -389,6 +392,8 @@ function indexInfo()
389392
if (isset($_SESSION['indexinfo'])) {
390393
$all_index_info = array_merge($_SESSION['indexinfo']['all_index_info'], $all_index_info);
391394
$completed_indices = array_merge($_SESSION['indexinfo']['completed_indices'], $completed_indices);
395+
// remove any duplicate indices
396+
$completed_indices = array_unique($completed_indices);
392397
$latest_completed_index = (!is_null($latest_completed_index)) ? $latest_completed_index : $_SESSION['indexinfo']['latest_completed_index'];
393398
$fields = array_merge($_SESSION['indexinfo']['fields'], $fields);
394399
// remove any duplicate fields

diskover/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Diskover v2 Community Edition Change Log
22

3+
# [2.3.1] - 2025-04-02
4+
### changed
5+
- improved parallel scanning threads algorithm (rakitzis)
6+
- removed urlib3 warnings for InsecureRequestWarning when using https with es ssl verify disabled
7+
8+
39
# [2.3.0] - 2024-08-01
410
### BREAKING CHANGES
511
- diskover yaml config file no longer used, changed to using diskover-web sqlite db for storing diskover config settings instead of config file, settings from existing config file are copied over on upgrade and config.yaml renamed to config.yaml.old

diskover/diskover.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@
3838
index_info_crawlend, get_parent_path, get_dir_name, \
3939
get_file_name, load_plugins, list_plugins, get_plugins_info, set_times, \
4040
get_mem_usage, get_win_path, rem_win_path
41+
42+
# disable ES urlib3 InsecureRequestWarning warning log messages
43+
import urllib3
44+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
45+
4146

42-
version = '2.3.0 community edition (ce)'
47+
version = '2.3.1 community edition (ce)'
4348
__version__ = version
4449

4550
# Windows check
@@ -1256,4 +1261,4 @@ def log_setup():
12561261
logmsg = 'FATAL ERROR: an exception has occurred: {0}'.format(e)
12571262
logger.critical(logmsg, exc_info=1)
12581263
if config['LOGTOFILE']: logger_warn.critical(logmsg, exc_info=1)
1259-
close_app_critical_error()
1264+
close_app_critical_error()

0 commit comments

Comments
 (0)