Project

General

Profile

Actions

Bug #5772

closed

Initial install broken if default data/backup directory unavailable

Added by Brendan Hahn over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
01/07/2013
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5772

Description

Initialization of a fresh install requires establishing data and backup directories for metacat. The system searches for a number of default directory options (SystemUtil.discoverExternalDir()). If no default can be found or created, the system generates and stores an invalid value ('null/.knb') that prevents further initialization and can be fixed only by manual editing or reinstallation.

This is caused by a number of separate, interacting bugs. ConfigurableProperties.initialize() converts and propagates the null value due to an improper test. Arguably SystemUtil.discoverExternalDir() should not generate null at all. PropertyService does not udpate its ConfigurableProperties object as it should. ConfigurableProperties should not maintain two separate instances of the same datum (the backup file path; it may do this for other properties as well).

Actions

Also available in: Atom PDF