Commit Graph

304 Commits

Author SHA1 Message Date
Michael Friedrich 8055f05d5e Fix cluster config sync for (non-)authoritative configs
Details: https://dev.icinga.org/issues/10819#note-39

refs 
2015-12-12 12:16:00 +01:00
Michael Friedrich d781c392d3 Add more debug logging for api package config sync
refs 
2015-12-11 17:03:07 +01:00
Michael Friedrich c5b13ff2b1 Fix that cluster config sync ignores zones.d directory from API config packages
fixes 
2015-12-10 22:21:29 +01:00
Gunnar Beutner 15ca9987fa Implement support for priorities in the WorkQueue class
fixes 
2015-12-10 17:06:00 +01:00
Gunnar Beutner fd65fed6f0 Fix incorrect return value for ApiListener::GetInstance
refs 
2015-11-30 15:33:01 +01:00
Michael Friedrich f91edd9564 Use a work queue for replaying the cluster log
refs 
2015-11-25 13:11:41 +01:00
Michael Friedrich 3adedcd0a5 Improve performance for Zone::CanAccessObject
fixes 
2015-11-25 12:06:20 +01:00
Gunnar Beutner 3505ca3c16 Fix race condition in the ConfigItem class
fixes 
2015-11-19 19:38:49 +01:00
Michael Friedrich 6518f78af0 Fix attribute validation for PUT queries
fixes 
2015-11-12 10:13:46 +01:00
Michael Friedrich 284a10150b Fix attributes names for joins; update documentation
refs 
fixes 
2015-11-11 13:50:47 +01:00
Gunnar Beutner b2364884d8 Check whether config file exists before trying to create object
fixes 
2015-11-11 10:25:18 +01:00
Gunnar Beutner 356c4cc170 Don't allow users to set internal attributes via PUT
fixes 
2015-11-11 08:41:49 +01:00
Michael Friedrich 36cea68c1a Add the HTTP request body to debug log 2015-11-09 22:48:56 +01:00
Michael Friedrich bc05389a79 Improve error handling for unlinking files
refs 
2015-11-09 13:35:51 +01:00
Gunnar Beutner 25c490ecb6 Remove config file when object creation fails
fixes 
2015-11-09 12:33:37 +01:00
Gunnar Beutner c44701068f Fix: Detailed error message is missing when object creation via API fails
fixes 
2015-11-09 12:30:30 +01:00
Gunnar Beutner fa034a96f8 Improve error message for 404s
refs 
2015-11-09 10:48:24 +01:00
Gunnar Beutner 4bb9beda19 Don't send cluster config messages for objects with version 0
refs 
2015-11-08 21:22:06 +01:00
Gunnar Beutner f8399e45db Remove unused variable
refs 
2015-11-08 17:53:22 +01:00
Michael Friedrich e6159ca86a Fix: /v1/console should only use a single permission
fixes 
2015-11-08 14:17:13 +01:00
Gunnar Beutner 2c135d82c1 Fix incorrect variable names for joined objects in filters
fixes 
2015-11-07 10:28:34 +01:00
Gunnar Beutner b89a7dbdb6 Rename 'object' to 'obj' in filters
refs 
2015-11-07 10:01:07 +01:00
Gunnar Beutner 64376dafeb Make the main object available as 'object' in filter expressions
refs 
2015-11-07 09:59:00 +01:00
Gunnar Beutner 3a695742e3 Improve error handling when user specifies invalid method for /v1/console
refs 
2015-11-07 09:59:00 +01:00
Michael Friedrich 64c936d387 API Actions: Remove -by-id from actions and require names for comments and downtimes
The documentation is updated as well. Furthermore actions provide
detailed error information in case of an exception.
Includes DB IDO schema updates.

fixes 
2015-11-06 17:06:12 +01:00
Gunnar Beutner a177e5e05a Change output format for object queries
fixes 
2015-11-06 14:45:38 +01:00
Michael Friedrich 7e5f5544fc Require 'Accept' header for API requests (except for GET)
fixes 
2015-11-05 15:18:53 +01:00
Michael Friedrich 18e162da5e Build fix
refs 
2015-11-05 11:55:07 +01:00
Michael Friedrich 5d46f661ea Implement 'console' cli command using the API
fixes 
2015-11-04 16:01:06 +01:00
Gunnar Beutner 9c5758958c Fix crash in JsonRpcClient::DataAvailableHandler
fixes 
2015-11-02 17:45:44 +01:00
Michael Friedrich 6f8e25a349 Add doc URL to /v1 info page
refs 
2015-10-29 18:59:30 +01:00
Gunnar Beutner 050c520b2a Convert Comment/Downtime to config objects
fixes 
2015-10-28 17:56:29 +01:00
Gunnar Beutner 4763dea571 Fix incorrect URL check in the InfoHandler class
refs 
2015-10-28 07:46:04 +01:00
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 
2015-10-27 15:26:19 +01:00
Gunnar Beutner dd77863910 Implement Array::ToString and Dictionary::ToString
fixes 
2015-10-26 11:05:24 +01:00
Gunnar Beutner 618e031f46 Handle exceptions for NetString::WriteStringToStream in ApiListener::ReplayLog
fixes 
2015-10-26 07:56:58 +01:00
Michael Friedrich d516d16c9a Fix restore_attribute not working in clusters
fixes 
2015-10-22 14:50:43 +02:00
Gunnar Beutner 1b8fd9637f Add redirect for /
refs 
2015-10-22 13:29:31 +02:00
Gunnar Beutner 10bd3ed9b7 Implement URL handler for /v1
refs 
2015-10-22 12:15:32 +02:00
Gunnar Beutner 4aa0165701 Add getter for endpoint 'connected' attribute
fixes 
2015-10-22 10:52:38 +02:00
Michael Friedrich cb99402766 Fix filter permissions in event streams
refs 
2015-10-21 15:38:26 +02:00
Michael Friedrich 286538c17e Implement api event streams
Documentation is not yet complete.

refs 
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 
2015-10-20 08:25:10 +02:00
Michael Friedrich f51a76e13d Log a warning message on unauthorized http request
fixes 
2015-10-16 15:32:35 +02:00
Michael Friedrich 10c306673d Fix wrong connection log message for global zones
fixes 
2015-10-15 17:15:19 +02:00
Michael Friedrich 934fb64b9e Fix log message formatting for object version
refs 
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 
2015-10-15 14:05:39 +02:00
Michael Friedrich a0631cd351 Fix wrong type for object version
refs 
2015-10-15 11:11:07 +02:00
Gunnar Beutner 4f647527fd Fix: ApiListener::SyncRelayMessage doesn't send message to all zone members
fixes 
2015-10-15 09:28:20 +02:00