mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Added message dialog regarding read-only restrictions
This commit is contained in:
parent
308d6945f0
commit
41e5f4702e
@ -315,3 +315,5 @@ GlobalEditListPanel.keywordErrors.text={0} keyword could not be parsed. Please r
|
||||
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=<html>The text index upgrade can take some time. <br />When completed, you will be able to see existing keyword search results and perform literal keyword searches,<br />but you will not be able to add new text to the index or perform regex searches. You may instead open the case<br /> with your previous version of this application. Do you wish to proceed with the index upgrade?</html>
|
||||
SolrSearchService.IndexReadOnlyDialog.title=Text Index Is Read-Only
|
||||
SolrSearchService.IndexReadOnlyDialog.msg=<html>The text index for this case is read-only <br />You will be able to see existing keyword search results and perform literal keyword searches,<br />but you will not be able to add new text to the index or perform regex searches. You may instead open the case<br /> with your previous version of this application. Do you wish to proceed?</html>
|
||||
|
@ -184,8 +184,17 @@ 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?
|
||||
// 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user