Jean Flach
edfc0e3a38
Update error messages
...
Removes verboseError from httprequest and uses
HttpUtility::GetLastParameter() instead to find out whether verbose
errors are enabled. Also parsing an invalid URL will now not lead to a
stacktrace anymore.
refs #10194
2015-10-27 15:26:19 +01:00
Gunnar Beutner
dd77863910
Implement Array::ToString and Dictionary::ToString
...
fixes #10329
2015-10-26 11:05:24 +01:00
Gunnar Beutner
618e031f46
Handle exceptions for NetString::WriteStringToStream in ApiListener::ReplayLog
...
fixes #10455
2015-10-26 07:56:58 +01:00
Michael Friedrich
d516d16c9a
Fix restore_attribute not working in clusters
...
fixes #10386
2015-10-22 14:50:43 +02:00
Gunnar Beutner
1b8fd9637f
Add redirect for /
...
refs #9105
2015-10-22 13:29:31 +02:00
Gunnar Beutner
10bd3ed9b7
Implement URL handler for /v1
...
refs #9105
2015-10-22 12:15:32 +02:00
Gunnar Beutner
4aa0165701
Add getter for endpoint 'connected' attribute
...
fixes #10394
2015-10-22 10:52:38 +02:00
Michael Friedrich
cb99402766
Fix filter permissions in event streams
...
refs #9078
2015-10-21 15:38:26 +02:00
Michael Friedrich
286538c17e
Implement api event streams
...
Documentation is not yet complete.
refs #9078
2015-10-21 15:34:26 +02:00
Gunnar Beutner
438210651f
Build fix for OpenBSD
2015-10-20 22:54:58 +02:00
Gunnar Beutner
d01f09f3ef
Hide internal attributes in the API
...
fixes #10393
2015-10-20 08:25:10 +02:00
Michael Friedrich
f51a76e13d
Log a warning message on unauthorized http request
...
fixes #10388
2015-10-16 15:32:35 +02:00
Michael Friedrich
10c306673d
Fix wrong connection log message for global zones
...
fixes #10377
2015-10-15 17:15:19 +02:00
Michael Friedrich
934fb64b9e
Fix log message formatting for object version
...
refs #10355
2015-10-15 16:52:49 +02:00
Michael Friedrich
5852a003d0
Ensure that modified attributes work with clients with local config and no zone attribute
...
fixes #10371
2015-10-15 14:05:39 +02:00
Michael Friedrich
a0631cd351
Fix wrong type for object version
...
refs #10355
2015-10-15 11:11:07 +02:00
Gunnar Beutner
4f647527fd
Fix: ApiListener::SyncRelayMessage doesn't send message to all zone members
...
fixes #10365
2015-10-15 09:28:20 +02:00
Gunnar Beutner
f89877cd28
Fix incorrect variable type in ApiListener::ConfigUpdateObjectAPIHandler
...
refs #10355
2015-10-15 09:26:58 +02:00
Gunnar Beutner
21a2986635
Avoid evaluating unnecessary filters
...
refs #10360
2015-10-14 16:52:01 +02:00
Gunnar Beutner
f841daf680
Improve performance for object queries
...
fixes #10360
2015-10-14 16:08:23 +02:00
Gunnar Beutner
48d80e29a0
Don't look up joined objects when we don't need to
...
refs #10360
2015-10-14 15:36:59 +02:00
Gunnar Beutner
3bfc9a2406
Don't log messages we've already relayed to all relevant zones
...
fixes #10262
2015-10-01 14:53:28 +02:00
Michael Friedrich
9dcb33e8f4
Change object version to timestamps for diff updates on config sync
...
fixes #10257
2015-09-30 16:58:18 +02:00
Gunnar Beutner
c1892a2f30
Remove JsonRpcConnection::m_WriteQueue
...
refs #9976
2015-09-30 16:39:36 +02:00
Michael Friedrich
0529d51a85
Config sync does not set endpoint syncing and plays disconnect-sync ping-pong
...
fixes #10255
2015-09-30 16:14:04 +02:00
Michael Friedrich
657e749c9b
Config sync shouldn't send updates for objects the client doesn't have access to
...
fixes #10249
2015-09-30 15:08:01 +02:00
Gunnar Beutner
f779b20ec0
Properly encode URLs in Icinga Studio
...
fixes #10241
2015-09-30 14:02:18 +02:00
Gunnar Beutner
f3fdcb0f6b
Fix: /v1/objects/<type> returns an HTTP error when there are no objects of that type
...
fixes #10253
2015-09-30 13:26:19 +02:00
Michael Friedrich
19e7524b31
Fix problem with non-existing objects in config sync updates
...
refs #9851
refs #9927
refs #9081
2015-09-30 10:04:37 +02:00
Gunnar Beutner
7e4953dd35
Improve log messages for HTTP requests
...
refs #9074
2015-09-30 08:41:09 +02:00
Michael Friedrich
dfa2ac450c
Re-add missing package and stage name in configstageshandler
...
refs #10194
2015-09-29 18:25:48 +02:00
Michael Friedrich
905de04293
Fix deadlock in ApiClient::~ApiClient()
...
refs #9976
2015-09-29 16:03:38 +02:00
Michael Friedrich
bb3b724219
Fix object sync for modified attributes
...
refs #9851
refs #9927
refs #9081
2015-09-29 14:24:39 +02:00
Michael Friedrich
e5b26e60a5
Don't throw an exception when replaying the current replay log file
...
fixes #10239
2015-09-29 11:02:08 +02:00
Gunnar Beutner
0e40c3ee1d
Fix deadlock in TlsStream::Close
...
fixes #10235
2015-09-29 10:31:16 +02:00
Gunnar Beutner
8dec953829
Fix incorrect variable in Url::ParsePort
...
refs #10224
2015-09-29 08:28:30 +02:00
Gunnar Beutner
143aa13118
Make Icinga Studio work with the latest API version
...
fixes #10224
2015-09-29 08:09:48 +02:00
Gunnar Beutner
8a2c7a055d
Remove debug code
...
refs #9077
2015-09-29 06:48:16 +02:00
Michael Friedrich
76baeadb5b
Fix wrong query type in modify object api request
...
refs #10212
2015-09-28 19:14:38 +02:00
Gunnar Beutner
b40152f9fb
Fix null pointer dereference in StatusTargetProvider::GetTargetByName
...
refs #9088
2015-09-28 16:31:49 +02:00
Michael Friedrich
f498ce39f3
Improve api error handling
...
refs #10194
2015-09-28 16:08:14 +02:00
Michael Friedrich
a2058f0e55
Fix incorrect parameter name for status queries
...
refs #9088
2015-09-28 15:19:01 +02:00
Gunnar Beutner
f091379177
Fix: PerfdataValue is not properly serialised in status queries
...
fixes #10211
2015-09-28 14:37:50 +02:00
Gunnar Beutner
425a1a0166
Implement API permissions
...
fixes #9088
2015-09-28 14:30:46 +02:00
Gunnar Beutner
8a5d71a565
Move /v1/<type> to /v1/objects/<type>
...
refs #10212
2015-09-28 08:39:56 +02:00
Michael Friedrich
6549721ec6
Ensure that multiple object handler request methods still work
...
refs #10194
2015-09-27 15:27:08 +02:00
Michael Friedrich
717118fed4
Fix wrong log lag in cluster-zone check
...
Refactor the calculation into a generic function
which is also used inside the 2.4 status API.
fixes #8805
2015-09-25 14:24:45 +02:00
Jean-Marcel Flach
5ef4204d06
Improve API error handling and fix some whitespace
...
fixes #10194
2015-09-25 13:57:28 +02:00
Jean-Marcel Flach
15a46958f0
Rename statusqueryhandler to objectqueryhandler
...
fixes #10209
2015-09-24 17:38:44 +02:00
Jean-Marcel Flach
d8eca3d0c2
Move /status/Collection to /status
...
fixes #10210
2015-09-24 15:26:57 +02:00