8000 Bug fix 3.2/agency loop wrong credentials (#7073) · arangodb/arangodb@4ef6911 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ef6911

Browse files
hkernbachmchacki
authored andcommitted
Bug fix 3.2/agency loop wrong credentials (#7073)
* arangod now exits when used wrong credentials during the startup process * changelog
1 parent d52fa24 commit 4ef6911

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.2.17 (2018-10-24)
22
--------------------
33

4+
* in a cluster environment, the arangod pr 8000 ocess now exits if wrong credentials
5+
are used during the startup process.
6+
47
* upgraded arangodb starter version to 0.13.7
58

69
* when returning memory to the OS, use the same memory protection flags as

arangod/Agency/AgencyComm.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,12 @@ bool AgencyComm::ensureStructureInitialized() {
11981198
LOG_TOPIC(TRACE, Logger::AGENCYCOMM) << "Found an initialized agency";
11991199
break;
12001200
}
1201+
} else {
1202+
if (result.httpCode() == 401) {
1203+
// unauthorized
1204+
LOG_TOPIC(FATAL, Logger::STARTUP) << "Unauthorized. Wrong credentials.";
1205+
FATAL_ERROR_EXIT();
1206+
}
12011207
}
12021208

12031209
LOG_TOPIC(TRACE, Logger::AGENCYCOMM)

0 commit comments

Comments
 (0)
0