Commit Graph

9484 Commits

Author SHA1 Message Date
Gunnar Beutner 9b0fccfd80
Merge pull request #6153 from Icinga/fix/api-no-packages
Improve error handling for empty packages in /v1/config/packages
2018-03-13 09:23:01 +01:00
Gunnar Beutner 6a444a0fac
Merge pull request #6160 from Icinga/fix/code-style-global-zones
Replace std::vector:push_back calls with initializer list
2018-03-13 09:22:10 +01:00
Michael Insel 592d1c7d7e Replace std::vector:push_back with initializer list
This replaces a few std::vector::push_back calls with initializer lists.
2018-03-12 20:35:49 +01:00
Michael Friedrich 429f518b49 Improve error handling for empty packages in /v1/config/packages
- If there is no package main directory, assume "empty packages".
- Catch exceptions thrown through GlobRecursive() and present a better http 500
to the user.

The packages directory tree is automatically created with the first
package creation, either from the user, or by the `_api` package.

fixes #6129
2018-03-07 13:35:09 +01:00
Gunnar Beutner ddab94feb3 Build fix 2018-03-07 09:57:08 +01:00
Jean Flach f357439485 Code style 2018-03-07 09:57:08 +01:00
Gunnar Beutner 9886f3914c Fix ApiUser unit test 2018-03-06 09:37:23 +01:00
Gunnar Beutner 3043a190ca
Merge pull request #6148 from gunnarbeutner/fix/api-unit-test
Fix ApiUser unit test
2018-03-06 09:36:30 +01:00
Gunnar Beutner 6670024f62 Ensure that SetCorked() works properly 2018-03-06 09:35:57 +01:00
Gunnar Beutner 44ff536645
Merge pull request #6146 from gunnarbeutner/fix/corked-fixes
Ensure that SetCorked() works properly
2018-03-06 09:33:46 +01:00
Gunnar Beutner 70b3d20a7e Fix ApiUser unit test 2018-03-06 09:30:22 +01:00
Gunnar Beutner 9cd5298d8b Ensure that SetCorked() works properly 2018-03-06 09:03:35 +01:00
Gunnar Beutner 0b9869917f Fix incorrect argument type for JsonRpc::SendMessage 2018-03-06 09:02:05 +01:00
Gunnar Beutner c16dbd19c8
Merge pull request #6147 from gunnarbeutner/fix/incorrect-arg-type
Fix incorrect argument type for JsonRpc::SendMessage
2018-03-06 09:01:47 +01:00
Gunnar Beutner b172a67867 Fix incorrect argument type for JsonRpc::SendMessage 2018-03-06 08:58:19 +01:00
Jean Flach fda4faac06 Limit anonymous connections to 25 2018-03-06 08:53:52 +01:00
Noah Hilverling fdf2dc43d5 Limit JSON-RPC message size 2018-03-06 08:53:14 +01:00
Gunnar Beutner 9b72a6c2f3
Merge pull request #6135 from Icinga/fix/limit-api-package-size
Limit JSON RPC message size
2018-03-05 13:24:09 +01:00
Jean Flach 1bdd14b428 Limit anonymous connections to 25 2018-03-05 13:22:43 +01:00
Noah Hilverling 54ff60cd8c Limit JSON-RPC message size 2018-03-05 10:29:05 +01:00
Gunnar Beutner 4a09026466
Merge pull request #6145 from gunnarbeutner/fix/incorrect-parameter-name
Fix incorrect parameter name in the API documentation
2018-03-05 09:00:08 +01:00
Gunnar Beutner 39e303a03b Fix incorrect parameter name in the API documentation
fixes #6140
2018-03-05 08:43:13 +01:00
Gunnar Beutner 84be526b4c
Merge pull request #6139 from Icinga/itl/disk-docker-types
itl/disk: Ignore overlay and netfs filesystems
2018-03-05 08:38:00 +01:00
Markus Frosch fa68c9255b itl: Ignore overlay and netfs filesystems
Usually used by Docker and other containers and namespaces
2018-03-02 12:44:08 +01:00
Noah Hilverling ac6a39b7d4
Merge pull request #6136 from Icinga/feature/counter-for-currently-running-concurrent-checks-4939
Add counter for current concurrent checks to Icinga check
2018-03-01 15:47:25 +01:00
Gunnar Beutner 0c006637ea Clean up the Icinga plugins a bit 2018-03-01 15:27:09 +01:00
Noah Hilverling d0a97ddf64 Add counter for current concurrent checks to Icinga check
fixes #4939
2018-03-01 15:01:55 +01:00
Noah Hilverling 186cad9872 Clean up CORS implementation 2018-03-01 14:04:56 +01:00
Gunnar Beutner 622127276b Fix incorrect HTTP content length limits 2018-02-28 14:17:17 +01:00
Gunnar Beutner d23c03bfa5
Merge pull request #6134 from gunnarbeutner/fix/incorrect-content-length-limits
Fix incorrect HTTP content length limits
2018-02-28 14:16:15 +01:00
Gunnar Beutner 85858e6a36 Add SetCorked() calls to the JsonRpcConnection class 2018-02-28 12:57:22 +01:00
Jean Flach 8b334fe259 Use cork in tlsstream and HTTP connection 2018-02-28 12:57:22 +01:00
Jean Flach 419103b407 Add cork 2018-02-28 12:50:49 +01:00
Gunnar Beutner a3bf8cd26e
Merge pull request #6133 from Icinga/fix/cork-socket
Limit the number of HTTP/JSON-RPC requests we read in parallel
2018-02-28 12:48:06 +01:00
Gunnar Beutner 45c2803f3e Fix incorrect HTTP content length limits 2018-02-28 12:28:02 +01:00
Gunnar Beutner a9fb714578
Merge pull request #6116 from Icinga/fix/windows-service-restart
Fix Windows reload
2018-02-28 12:23:53 +01:00
Gunnar Beutner c1837ea90b
Merge pull request #6131 from Icinga/feature/log-master-ticket-invalid
Log which ticket was invalid on the master
2018-02-28 12:22:34 +01:00
Gunnar Beutner 30ae5154f0
Merge pull request #6132 from gunnarbeutner/fix/http-parser-crash
Fix HTTP parser crash/hang
2018-02-28 12:21:09 +01:00
Gunnar Beutner 6e7421eab0 Fix null ptr dereference in HttpServerConnection::ProcessMessageAsync 2018-02-28 11:54:48 +01:00
Gunnar Beutner 6400a300cd Fix incorrect return value 2018-02-28 11:53:49 +01:00
Gunnar Beutner 6848af50ff Add SetCorked() calls to the JsonRpcConnection class 2018-02-28 11:42:05 +01:00
Jean Flach d0cf7c654e Use cork in tlsstream and HTTP connection 2018-02-28 11:40:58 +01:00
Jean Flach 7d103aaf1b Add cork 2018-02-28 11:40:58 +01:00
Gunnar Beutner a4a73fa67c Fix null ptr dereference in HttpServerConnection::ProcessMessageAsync 2018-02-28 11:07:19 +01:00
Gunnar Beutner 6d01808adf Fix incorrect return value 2018-02-28 10:50:33 +01:00
Michael Friedrich ad31e0d118 Log which ticket was invalid on the master
This helps debugging a lot, especially to reproduce the issue
why the ticket is invalid.
2018-02-28 10:18:29 +01:00
Gunnar Beutner 254bd108df
Merge pull request #6128 from Icinga/fix/doc-adding-global-zones
Adding documentation for configurable global zones during setup
2018-02-28 09:46:45 +01:00
Gunnar Beutner 5089b0dd7c
Merge pull request #6126 from Icinga/fix/require-systemd-libs
Require systemd headers
2018-02-28 09:45:05 +01:00
Michael Insel ecda0691c4 Adding documentation for configurable global zones during setup
This adds the documentation for the configurable global zones during the node wizard/setup.

refs #5767
2018-02-27 21:28:38 +01:00
Jean Flach 01c7f20170 Require systemd headers
Only mandatory if using systemd
2018-02-27 15:54:58 +01:00