diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Bundle.properties b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Bundle.properties index 9242231de9..b82b06bbb3 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Bundle.properties +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Bundle.properties @@ -314,4 +314,6 @@ GlobalEditListPanel.keywordDupesSkippedPlural.text={0} keywords were already in GlobalEditListPanel.keywordErrors.text={0} keyword could not be parsed. Please review and try again. GlobalEditListPanel.keywordErrorsPlural.text={0} keywords could not be parsed. Please review and try again. SolrSearchService.IndexUpgradeDialog.title=Text Index Upgrade Required In Order To Open Case -SolrSearchService.IndexUpgradeDialog.msg=The text index upgrade can take some time.
When completed, you will be able to see existing keyword search results and perform literal keyword searches,
but you will not be able to add new text to the index or perform regex searches. You may instead open the case
with your previous version of this application. Do you wish to proceed with the index upgrade? \ No newline at end of file +SolrSearchService.IndexUpgradeDialog.msg=The text index upgrade can take some time.
When completed, you will be able to see existing keyword search results and perform literal keyword searches,
but you will not be able to add new text to the index or perform regex searches. You may instead open the case
with your previous version of this application. Do you wish to proceed with the index upgrade? +SolrSearchService.IndexReadOnlyDialog.title=Text Index Is Read-Only +SolrSearchService.IndexReadOnlyDialog.msg=The text index for this case is read-only
You will be able to see existing keyword search results and perform literal keyword searches,
but you will not be able to add new text to the index or perform regex searches. You may instead open the case
with your previous version of this application. Do you wish to proceed? diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java index 970abd08ee..8e2c25b51d 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java @@ -184,9 +184,18 @@ public class SolrSearchService implements KeywordSearchService, AutopsyService throw new AutopsyServiceException("Unable to find index that can be upgraded to the latest version of Solr"); } else if (indexSolrVersion == currentSolrVersion) { - // latest Solr version but not latest schema. it should be used in read-only mode and not be upgraded - // ELTODO do we need to display a message to user here? - currentVersionIndex = indexToUpgrade; + // latest Solr version but not latest schema. index should be used in read-only mode and not be upgraded. + if (RuntimeProperties.coreComponentsAreActive()) { + // pop up a message box to indicate the read-only restrictions. + if (!KeywordSearchUtil.displayConfirmDialog(NbBundle.getMessage(this.getClass(), "SolrSearchService.IndexReadOnlyDialog.title"), + NbBundle.getMessage(this.getClass(), "SolrSearchService.IndexReadOnlyDialog.msg"), + KeywordSearchUtil.DIALOG_MESSAGE_TYPE.WARN)) { + // case open declined - throw exception + throw new AutopsyServiceException("Case open declined by user"); + } + } + // proceed with case open + currentVersionIndex = indexToUpgrade; } else { // index needs to be upgraded to latest supported version of Solr