diff --git a/Documentation/rest-api-config.txt b/Documentation/rest-api-config.txt index 5987e1d95e..73418941f7 100644 --- a/Documentation/rest-api-config.txt +++ b/Documentation/rest-api-config.txt @@ -1416,7 +1416,7 @@ information about Gerrit Information about the configuration from the link:config-gerrit.html#gerrit[gerrit] section as link:#gerrit-info[ GerritInfo] entity. -|`note_db_enabled` || +|`note_db_enabled` |not set if `false`| Whether the NoteDB storage backend is fully enabled. |`plugin ` || Information about Gerrit extensions by plugins as diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/config/GetServerInfo.java b/gerrit-server/src/main/java/com/google/gerrit/server/config/GetServerInfo.java index af2d4105d2..2b621c20ca 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/config/GetServerInfo.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/config/GetServerInfo.java @@ -114,7 +114,7 @@ public class GetServerInfo implements RestReadView { getDownloadInfo(downloadSchemes, downloadCommands, cloneCommands, archiveFormats); info.gerrit = getGerritInfo(config, allProjectsName, allUsersName); - info.noteDbEnabled = isNoteDbEnabled(); + info.noteDbEnabled = toBoolean(isNoteDbEnabled()); info.plugin = getPluginInfo(); info.sshd = getSshdInfo(config); info.suggest = getSuggestInfo(config);