8000 Bug fix 3.3/agency loop wrong credentials (#7071) · strogo/arangodb@ee1be96 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee1be96

Browse files
hkernbachmchacki
authored andcommitted
Bug fix 3.3/agency loop wrong credentials (arangodb#7071)
* arangod now exits when used wrong credentials during the startup process * changelog
1 parent 3d1c5ca commit ee1be96

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
v3.3.20 (XXXX-XX-XX)
22
--------------------
33

4+
* in a cluster environment, the arangod process now exits if wrong credentials
5+
are used during the startup process.
6+
47
* Fixed an AQL bug where the optimize-traversals rule was falsely applied to
58
extensions with inline expressions and thereby ignoring them
69

arangod/Agency/AgencyComm.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,12 @@ bool AgencyComm::ensureStructureInitialized() {
12211221
LOG_TOPIC(TRACE, Logger::AGENCYCOMM) << "Found an initialized agency";
12221222
break;
12231223
}
1224+
} else {
1225+
if (result.httpCode() == 401) {
1226+
// unauthorized
1227+
LOG_TOPIC(FATAL, Logger::STARTUP) << "Unauthorized. Wrong credentials.";
1228+
FATAL_ERROR_EXIT();
1229+
}
12241230
}
12251231

12261232
LOG_TOPIC(TRACE, Logger::AGENCYCOMM)

0 commit comments

Comments
 (0)
0