]> granicus.if.org Git - icinga2/log
icinga2
6 years agoFix ES 5 support
Jean Flach [Wed, 11 Apr 2018 12:04:39 +0000 (14:04 +0200)]
Fix ES 5 support

6 years agoMove _type into url
Jean Flach [Fri, 6 Apr 2018 13:24:43 +0000 (15:24 +0200)]
Move _type into url

6 years agoFix Elastic 6 support
Michael Friedrich [Thu, 8 Feb 2018 17:00:00 +0000 (18:00 +0100)]
Fix Elastic 6 support

fixes #5905

6 years agoMerge pull request #6230 from jbeich/boost-1.67
Jean Flach [Mon, 16 Apr 2018 07:36:44 +0000 (09:36 +0200)]
Merge pull request #6230 from jbeich/boost-1.67

Unbreak build against Boost 1.67

6 years agoExplicitly use long with boost::posix_time 6230/head
Jan Beich [Sun, 15 Apr 2018 04:02:42 +0000 (04:02 +0000)]
Explicitly use long with boost::posix_time

In file included from lib/base/base_unity.cpp:61:
lib/base/timer.cpp:295:31: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
                        l_TimerCV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000));
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from lib/remote/remote_unity.cpp:19:
lib/remote/eventqueue.cpp:111:30: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
                if (!m_CV.timed_wait(lock, boost::posix_time::milliseconds(timeout * 1000)))
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from lib/checker/checker_unity.cpp:1:
lib/checker/checkercomponent.cpp:128:26: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
                        m_CV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000));
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>' for 1st argument
  class BOOST_SYMBOL_VISIBLE subsecond_duration : public base_duration
                             ^
/usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>' for 1st argument
/usr/local/include/boost/date_time/time_duration.hpp:286:59: note: candidate template ignored: disabled by 'enable_if' [with T = double]
                                typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :
                                                          ^

6 years agoMerge pull request #6227 from Icinga/fix/docs-config-validation
Michael Friedrich [Thu, 12 Apr 2018 17:13:58 +0000 (19:13 +0200)]
Merge pull request #6227 from Icinga/fix/docs-config-validation

Fix missing anchors in CLI commands chapter

6 years agoFix missing anchors in CLI commands chapter 6227/head
Michael Friedrich [Thu, 12 Apr 2018 17:12:37 +0000 (19:12 +0200)]
Fix missing anchors in CLI commands chapter

6 years agoMerge pull request #6224 from Icinga/fix/volatile-docs
Michael Friedrich [Thu, 12 Apr 2018 17:02:07 +0000 (19:02 +0200)]
Merge pull request #6224 from Icinga/fix/volatile-docs

Update volatile docs

6 years agoMerge pull request #6226 from Icinga/fix/docs-broken-anchor
Michael Friedrich [Thu, 12 Apr 2018 17:01:43 +0000 (19:01 +0200)]
Merge pull request #6226 from Icinga/fix/docs-broken-anchor

Fix broken SELinux anchor in the documentation

6 years agoFix broken SELinux anchor in the documentation 6226/head
Michael Friedrich [Thu, 12 Apr 2018 16:15:05 +0000 (18:15 +0200)]
Fix broken SELinux anchor in the documentation

6 years agoUpdate volatile docs 6224/head
Jean Flach [Thu, 12 Apr 2018 15:29:36 +0000 (17:29 +0200)]
Update volatile docs

6 years agoMerge pull request #6218 from terra-nova/issue-5277
Jean Flach [Thu, 12 Apr 2018 12:50:11 +0000 (14:50 +0200)]
Merge pull request #6218 from terra-nova/issue-5277

Fix issue #5277

6 years agoMerge pull request #6209 from Icinga/feature/unify-master-zone-names
Michael Friedrich [Wed, 11 Apr 2018 18:10:39 +0000 (20:10 +0200)]
Merge pull request #6209 from Icinga/feature/unify-master-zone-names

Unify zone name settings in node setup/wizard; add connection-less mode for node setup

6 years agoAdd 'node setup' parameter changes to upgrading docs 6209/head
Michael Friedrich [Wed, 11 Apr 2018 17:39:39 +0000 (19:39 +0200)]
Add 'node setup' parameter changes to upgrading docs

6 years agofix bug in Downtime::IsInEffect() method that would always return false if the trigge... 6218/head
fbachmann [Tue, 10 Apr 2018 18:16:09 +0000 (20:16 +0200)]
fix bug in Downtime::IsInEffect() method that would always return false if the triggering window for a flexible downtime had passed

6 years agoMerge pull request #6207 from Icinga/fix/nscp-api-multiple-params
Michael Friedrich [Mon, 9 Apr 2018 08:07:04 +0000 (10:07 +0200)]
Merge pull request #6207 from Icinga/fix/nscp-api-multiple-params

Fix multiple parameter problems for check_nscp_api

6 years agoUpdate the documentation for zone name setting in setups and connection-less node...
Michael Friedrich [Fri, 6 Apr 2018 18:19:43 +0000 (20:19 +0200)]
Update the documentation for zone name setting in setups and connection-less node setup

6 years agoImplement support for connection-less node setup (no csr auto-signing connect)
Michael Friedrich [Fri, 6 Apr 2018 17:49:01 +0000 (19:49 +0200)]
Implement support for connection-less node setup (no csr auto-signing connect)

6 years agoUnify setting the local and parent zone names for node wizard/setup
Michael Friedrich [Fri, 6 Apr 2018 17:18:19 +0000 (19:18 +0200)]
Unify setting the local and parent zone names for node wizard/setup

6 years agoUnify setting the master zone name for 'node wizard|setup` in master mode
Michael Friedrich [Fri, 6 Apr 2018 15:29:37 +0000 (17:29 +0200)]
Unify setting the master zone name for 'node wizard|setup` in master mode

6 years agoFix check_nscp_api for multiple URL parameter usage 6207/head
Michael Friedrich [Fri, 6 Apr 2018 13:23:31 +0000 (15:23 +0200)]
Fix check_nscp_api for multiple URL parameter usage

NSClient++ doesn't support the bracket notation.

refs #5706

6 years agoAllow to disable brackets for the Url class and Format()
Michael Friedrich [Fri, 6 Apr 2018 12:49:15 +0000 (14:49 +0200)]
Allow to disable brackets for the Url class and Format()

This commit also adds unit tests.

refs #5706

6 years agoMerge pull request #6206 from Icinga/feature/app-version-constant
Noah Hilverling [Fri, 6 Apr 2018 12:14:16 +0000 (14:14 +0200)]
Merge pull request #6206 from Icinga/feature/app-version-constant

Add ApplicationVersion built-in constant

6 years agoAdd ApplicationVersion built-in constant 6206/head
Michael Friedrich [Fri, 6 Apr 2018 11:25:48 +0000 (13:25 +0200)]
Add ApplicationVersion built-in constant

refs #5784

6 years agoMerge pull request #6204 from Icinga/fix/api-create-object-exists-errors
Noah Hilverling [Fri, 6 Apr 2018 10:47:31 +0000 (12:47 +0200)]
Merge pull request #6204 from Icinga/fix/api-create-object-exists-errors

API: Check if objects exists and return proper error message

6 years agoAPI: Check if objects exists and return proper error message 6204/head
Michael Friedrich [Fri, 6 Apr 2018 10:32:27 +0000 (12:32 +0200)]
API: Check if objects exists and return proper error message

6 years agoMerge pull request #6199 from Icinga/fix/action-http-code
Jean Flach [Fri, 6 Apr 2018 09:20:43 +0000 (11:20 +0200)]
Merge pull request #6199 from Icinga/fix/action-http-code

Return 500 when no api action is successful

6 years agoMerge pull request #6201 from Icinga/fix/x509-exception
Jean Flach [Fri, 6 Apr 2018 08:56:27 +0000 (10:56 +0200)]
Merge pull request #6201 from Icinga/fix/x509-exception

Handle exceptions from X509Certificate2

6 years agoBuild fix 6199/head
Jean Flach [Fri, 6 Apr 2018 08:43:33 +0000 (10:43 +0200)]
Build fix

6 years agoFix API action status codes
Noah Hilverling [Fri, 6 Apr 2018 08:03:09 +0000 (10:03 +0200)]
Fix API action status codes

6 years agoMerge pull request #6202 from Icinga/feature/use-version-file
Noah Hilverling [Fri, 6 Apr 2018 06:18:03 +0000 (08:18 +0200)]
Merge pull request #6202 from Icinga/feature/use-version-file

Use VERSION instead of icinga2.spec

6 years agoMerge pull request #6203 from Icinga/feature/docs-script-debugger-api
Michael Friedrich [Thu, 5 Apr 2018 19:02:19 +0000 (21:02 +0200)]
Merge pull request #6203 from Icinga/feature/docs-script-debugger-api

Add docs for script debugger and API filters

6 years agoAdd docs for script debugger and API filters 6203/head
Michael Friedrich [Thu, 5 Apr 2018 18:55:33 +0000 (20:55 +0200)]
Add docs for script debugger and API filters

6 years agoUse VERSION instead of icinga2.spec 6202/head
Michael Friedrich [Thu, 5 Apr 2018 14:41:10 +0000 (16:41 +0200)]
Use VERSION instead of icinga2.spec

6 years agoReturn 500 when no api action is successful
Jean Flach [Thu, 5 Apr 2018 08:47:17 +0000 (10:47 +0200)]
Return 500 when no api action is successful

fixes #5095

6 years agoMerge pull request #6195 from Icinga/fix/api-console-crash
Michael Friedrich [Thu, 5 Apr 2018 13:34:47 +0000 (15:34 +0200)]
Merge pull request #6195 from Icinga/fix/api-console-crash

Fix crash in remote api console

6 years agoMerge pull request #6198 from Icinga/deprecate-statusdatawriter
Michael Friedrich [Thu, 5 Apr 2018 13:32:32 +0000 (15:32 +0200)]
Merge pull request #6198 from Icinga/deprecate-statusdatawriter

Deprecate Statusdatawriter

6 years agoMerge pull request #6196 from Icinga/fix/influxdb-escaping
Michael Friedrich [Thu, 5 Apr 2018 13:27:06 +0000 (15:27 +0200)]
Merge pull request #6196 from Icinga/fix/influxdb-escaping

Fix InfluxDB backslash escaping

6 years agoHandle exceptions from X092certificate2 6201/head
Jean Flach [Thu, 5 Apr 2018 11:36:12 +0000 (13:36 +0200)]
Handle exceptions from X092certificate2

refs #6200

6 years agoDeprecate Statusdatawriter 6198/head
Jean Flach [Thu, 5 Apr 2018 07:32:07 +0000 (09:32 +0200)]
Deprecate Statusdatawriter

refs #6033

6 years agoFix InfluxDB backslash escaping 6196/head
Noah Hilverling [Wed, 4 Apr 2018 11:02:48 +0000 (13:02 +0200)]
Fix InfluxDB backslash escaping

fixes #6182

6 years agoFix crash in remote api console 6195/head
Jean Flach [Wed, 4 Apr 2018 10:23:45 +0000 (12:23 +0200)]
Fix crash in remote api console

6 years agoMerge pull request #6170 from Icinga/feature/windows-global-zones
Michael Friedrich [Tue, 3 Apr 2018 15:19:49 +0000 (17:19 +0200)]
Merge pull request #6170 from Icinga/feature/windows-global-zones

Add option to windows installer to add global zones

6 years agoMerge pull request #6163 from Icinga/fix/handle-restart
Michael Friedrich [Tue, 3 Apr 2018 15:18:29 +0000 (17:18 +0200)]
Merge pull request #6163 from Icinga/fix/handle-restart

Fix reload handling by updating the PID file before process overtake

6 years agoMerge pull request #6194 from Icinga/feature/metric-unit-elastic-gelf
Michael Friedrich [Tue, 3 Apr 2018 15:12:29 +0000 (17:12 +0200)]
Merge pull request #6194 from Icinga/feature/metric-unit-elastic-gelf

Elasticsearch/GELF: Add metric unit to performance data fields

6 years agoMerge pull request #6193 from Icinga/fix/gelfwriter-invalid-perfdata-crash
Michael Friedrich [Tue, 3 Apr 2018 12:52:12 +0000 (14:52 +0200)]
Merge pull request #6193 from Icinga/fix/gelfwriter-invalid-perfdata-crash

GelfWriter: Fix crash on invalid performance data metrics

6 years agoMerge pull request #6192 from Icinga/fix/elasticsearch-writer-invalid-perfdata-crash
Michael Friedrich [Tue, 3 Apr 2018 12:51:02 +0000 (14:51 +0200)]
Merge pull request #6192 from Icinga/fix/elasticsearch-writer-invalid-perfdata-crash

Elasticsearch: Fix crash with invalid performance data metrics

6 years agoElasticsearch/GELF: Add metric unit to performance data fields 6194/head
Michael Friedrich [Tue, 3 Apr 2018 12:49:50 +0000 (14:49 +0200)]
Elasticsearch/GELF: Add metric unit to performance data fields

Seen this inside the InfluxDBWriter code, makes sense to store
this in Elasticsearch too.

6 years agoGelfWriter: Fix crash on invalid performance data metrics 6193/head
Michael Friedrich [Tue, 3 Apr 2018 12:43:48 +0000 (14:43 +0200)]
GelfWriter: Fix crash on invalid performance data metrics

Spotted while comparing the source code of several performance data
writer.

refs #6191

6 years agoElasticsearch: Fix crash with invalid performance data metrics 6192/head
Michael Friedrich [Tue, 3 Apr 2018 12:38:25 +0000 (14:38 +0200)]
Elasticsearch: Fix crash with invalid performance data metrics

fixes #6191

6 years agoMerge pull request #6187 from Icinga/fix/remove-studio-images
Jean Flach [Thu, 29 Mar 2018 13:46:35 +0000 (15:46 +0200)]
Merge pull request #6187 from Icinga/fix/remove-studio-images

Remove Icinga Studio Screenshots

6 years agoRemove Icinga Studio Screenshots 6187/head
Michael Insel [Mon, 26 Mar 2018 17:48:57 +0000 (19:48 +0200)]
Remove Icinga Studio Screenshots

This removes unnecessary Icinga Studio screenshots as it has been removed.

6 years agoUpdate Windows wizard documentation for global zones 6170/head
Michael Insel [Mon, 26 Mar 2018 17:30:37 +0000 (19:30 +0200)]
Update Windows wizard documentation for global zones

This updates the screenshots for the windows wizard.

6 years agoMerge pull request #6181 from Icinga/fix/boosttest-fixture-order
Gunnar Beutner [Mon, 26 Mar 2018 12:45:01 +0000 (14:45 +0200)]
Merge pull request #6181 from Icinga/fix/boosttest-fixture-order

tests: Ensure IcingaApplication is initialized before adding config

6 years agotests: Ensure IcingaApplication is initialized before adding config 6181/head
Markus Frosch [Fri, 23 Mar 2018 12:31:34 +0000 (13:31 +0100)]
tests: Ensure IcingaApplication is initialized before adding config

This avoids an ordering problem noticed in Boost 1.55

6 years agotests: Move IcingaApplicationFixture out of test-runner
Markus Frosch [Fri, 23 Mar 2018 12:30:12 +0000 (13:30 +0100)]
tests: Move IcingaApplicationFixture out of test-runner

And make it basically a singleton that would be callable by other test
units.

6 years agoMerge pull request #6180 from mauricemeyer/master
Jean Flach [Mon, 26 Mar 2018 08:04:37 +0000 (10:04 +0200)]
Merge pull request #6180 from mauricemeyer/master

Doc: fixed wrong information about defaulting

6 years agoDoc: fixed wrong information about defaulting 6180/head
Maurice Meyer [Fri, 23 Mar 2018 12:18:15 +0000 (13:18 +0100)]
Doc: fixed wrong information about defaulting

Signed-off-by: Maurice Meyer <morre@mor.re>
6 years agoMerge pull request #6177 from Icinga/fix/doc-api-user
Michael Friedrich [Fri, 23 Mar 2018 11:36:08 +0000 (12:36 +0100)]
Merge pull request #6177 from Icinga/fix/doc-api-user

Doc: Fix typo in API user creation example

6 years agoMerge pull request #6176 from mauricemeyer/master
Michael Friedrich [Fri, 23 Mar 2018 11:34:19 +0000 (12:34 +0100)]
Merge pull request #6176 from mauricemeyer/master

hashed_password -> password_hash. Fixes #6175

6 years agoDoc: Fix typo in API user creation example 6177/head
Michael Insel [Thu, 22 Mar 2018 19:47:15 +0000 (20:47 +0100)]
Doc: Fix typo in API user creation example

This fixes a typo in the API user creation example inside the documentation.

6 years agohashed_password -> password_hash. Fixes #6175 6176/head
Maurice Meyer [Thu, 22 Mar 2018 19:40:46 +0000 (20:40 +0100)]
hashed_password -> password_hash. Fixes #6175

Signed-off-by: Maurice Meyer <morre@mor.re>
6 years agoMerge branch 'support/2.8'
Jean Flach [Thu, 22 Mar 2018 10:29:48 +0000 (11:29 +0100)]
Merge branch 'support/2.8'

6 years agoRelease version 2.8.2
Jean Flach [Thu, 22 Mar 2018 10:17:13 +0000 (11:17 +0100)]
Release version 2.8.2

6 years agoRelease version 2.8.2 v2.8.2
Jean Flach [Thu, 22 Mar 2018 10:17:13 +0000 (11:17 +0100)]
Release version 2.8.2

6 years agoUpdate mailmap
Jean Flach [Thu, 22 Mar 2018 09:35:02 +0000 (10:35 +0100)]
Update mailmap

6 years agoMerge pull request #6174 from Icinga/fix/api-crash-no-headeralloworigin
Michael Friedrich [Wed, 21 Mar 2018 19:50:48 +0000 (20:50 +0100)]
Merge pull request #6174 from Icinga/fix/api-crash-no-headeralloworigin

Fix crash without CORS setting

6 years agoFix crash without CORS config settings 6174/head
Michael Friedrich [Wed, 21 Mar 2018 19:41:52 +0000 (20:41 +0100)]
Fix crash without CORS config settings

fixes #6173
refs #6098

6 years agoDocs: Add a note to only query the NSClient++ API from the local Icinga 2 client
Michael Friedrich [Tue, 20 Mar 2018 10:50:52 +0000 (11:50 +0100)]
Docs: Add a note to only query the NSClient++ API from the local Icinga 2 client

refs #6172

6 years agoMerge pull request #6172 from Icinga/fix/docs-nscp-api
Michael Friedrich [Wed, 21 Mar 2018 15:04:39 +0000 (16:04 +0100)]
Merge pull request #6172 from Icinga/fix/docs-nscp-api

Docs: Add a note to only query the NSClient++ API from the local Icinga 2 client

6 years agoDocs: Add a note to only query the NSClient++ API from the local Icinga 2 client 6172/head
Michael Friedrich [Tue, 20 Mar 2018 10:50:52 +0000 (11:50 +0100)]
Docs: Add a note to only query the NSClient++ API from the local Icinga 2 client

6 years agoMerge pull request #6119 from tclh123/dev
Jean Flach [Wed, 21 Mar 2018 08:56:47 +0000 (09:56 +0100)]
Merge pull request #6119 from tclh123/dev

fixup set rlimit stack failed condition

6 years agoMerge pull request #6171 from Icinga/fix/windows-agent-copyright-date
Michael Friedrich [Wed, 21 Mar 2018 07:55:08 +0000 (08:55 +0100)]
Merge pull request #6171 from Icinga/fix/windows-agent-copyright-date

Update copyright of the Windows Agent to 2018

6 years agoUpdate copyright of the Windows Agent to 2018 6171/head
Michael Insel [Tue, 20 Mar 2018 20:03:46 +0000 (21:03 +0100)]
Update copyright of the Windows Agent to 2018

This updates the copyright of the Windows Agent to 2018.

6 years agoMerge pull request #6098 from Icinga/fix/improve-cors-implementation
Michael Friedrich [Mon, 19 Mar 2018 15:00:36 +0000 (16:00 +0100)]
Merge pull request #6098 from Icinga/fix/improve-cors-implementation

Clean up CORS implementation

6 years agoMerge pull request #6058 from gunnarbeutner/feature/clean-up-plugins
Michael Friedrich [Mon, 19 Mar 2018 14:57:57 +0000 (15:57 +0100)]
Merge pull request #6058 from gunnarbeutner/feature/clean-up-plugins

Clean up the Icinga plugins a bit

6 years agoMerge pull request #6016 from Icinga/fix/state-filters-for-custom-notifications
Michael Friedrich [Mon, 19 Mar 2018 14:52:37 +0000 (15:52 +0100)]
Merge pull request #6016 from Icinga/fix/state-filters-for-custom-notifications

Check notification state filters for problems only, not for Custom, etc.

6 years agoAdd option to windows installer to add global zones
Michael Insel [Sun, 18 Mar 2018 15:19:15 +0000 (16:19 +0100)]
Add option to windows installer to add global zones

This implements the option to add global zones to the windows agent
wizard.

6 years agoMerge pull request #6169 from Icinga/appveyor
Jean Flach [Sat, 17 Mar 2018 17:41:00 +0000 (18:41 +0100)]
Merge pull request #6169 from Icinga/appveyor

appveyor: Clean cache when updating appveyor.yml

6 years agoappveyor: Clean cache when updating appveyor.yml 6169/head
Markus Frosch [Fri, 16 Mar 2018 14:09:19 +0000 (15:09 +0100)]
appveyor: Clean cache when updating appveyor.yml

6 years agoMerge pull request #6166 from Icinga/fix/broken-link-readme
Michael Friedrich [Thu, 15 Mar 2018 16:17:29 +0000 (17:17 +0100)]
Merge pull request #6166 from Icinga/fix/broken-link-readme

Fix broken link in README

6 years agoFix broken link in README 6166/head
Michael Insel [Thu, 15 Mar 2018 15:59:41 +0000 (16:59 +0100)]
Fix broken link in README

This fixes the broken documentation link inside the readme.

6 years agoFix reload handling 6163/head
Jean Flach [Wed, 14 Mar 2018 09:01:11 +0000 (10:01 +0100)]
Fix reload handling

Make sure we have written the new PID before letting it take over.

6 years agoImprove error handling for empty packages in /v1/config/packages
Michael Friedrich [Wed, 7 Mar 2018 12:27:31 +0000 (13:27 +0100)]
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

6 years agoAdd CORS notice to 2.9 upgrading docs 6098/head
Noah Hilverling [Thu, 1 Mar 2018 13:07:53 +0000 (14:07 +0100)]
Add CORS notice to 2.9 upgrading docs

6 years agoMerge pull request #6153 from Icinga/fix/api-no-packages
Gunnar Beutner [Tue, 13 Mar 2018 08:23:01 +0000 (09:23 +0100)]
Merge pull request #6153 from Icinga/fix/api-no-packages

Improve error handling for empty packages in /v1/config/packages

6 years agoMerge pull request #6160 from Icinga/fix/code-style-global-zones
Gunnar Beutner [Tue, 13 Mar 2018 08:22:10 +0000 (09:22 +0100)]
Merge pull request #6160 from Icinga/fix/code-style-global-zones

Replace std::vector:push_back calls with initializer list

6 years agoReplace std::vector:push_back with initializer list 6160/head
Michael Insel [Mon, 12 Mar 2018 19:23:21 +0000 (20:23 +0100)]
Replace std::vector:push_back with initializer list

This replaces a few std::vector::push_back calls with initializer lists.

6 years agoImprove error handling for empty packages in /v1/config/packages 6153/head
Michael Friedrich [Wed, 7 Mar 2018 12:27:31 +0000 (13:27 +0100)]
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

6 years agoBuild fix
Gunnar Beutner [Wed, 7 Mar 2018 08:56:42 +0000 (09:56 +0100)]
Build fix

6 years agoCode style
Jean Flach [Fri, 16 Feb 2018 09:31:00 +0000 (10:31 +0100)]
Code style

6 years agoFix ApiUser unit test
Gunnar Beutner [Tue, 6 Mar 2018 08:30:22 +0000 (09:30 +0100)]
Fix ApiUser unit test

6 years agoMerge pull request #6148 from gunnarbeutner/fix/api-unit-test
Gunnar Beutner [Tue, 6 Mar 2018 08:36:30 +0000 (09:36 +0100)]
Merge pull request #6148 from gunnarbeutner/fix/api-unit-test

Fix ApiUser unit test

6 years agoEnsure that SetCorked() works properly
Gunnar Beutner [Tue, 6 Mar 2018 07:49:43 +0000 (08:49 +0100)]
Ensure that SetCorked() works properly

6 years agoMerge pull request #6146 from gunnarbeutner/fix/corked-fixes
Gunnar Beutner [Tue, 6 Mar 2018 08:33:46 +0000 (09:33 +0100)]
Merge pull request #6146 from gunnarbeutner/fix/corked-fixes

Ensure that SetCorked() works properly

6 years agoFix ApiUser unit test 6148/head
Gunnar Beutner [Tue, 6 Mar 2018 08:30:22 +0000 (09:30 +0100)]
Fix ApiUser unit test

6 years agoEnsure that SetCorked() works properly 6146/head
Gunnar Beutner [Tue, 6 Mar 2018 07:49:43 +0000 (08:49 +0100)]
Ensure that SetCorked() works properly

6 years agoFix incorrect argument type for JsonRpc::SendMessage
Gunnar Beutner [Tue, 6 Mar 2018 07:54:47 +0000 (08:54 +0100)]
Fix incorrect argument type for JsonRpc::SendMessage

6 years agoMerge pull request #6147 from gunnarbeutner/fix/incorrect-arg-type
Gunnar Beutner [Tue, 6 Mar 2018 08:01:47 +0000 (09:01 +0100)]
Merge pull request #6147 from gunnarbeutner/fix/incorrect-arg-type

Fix incorrect argument type for JsonRpc::SendMessage

6 years agoFix incorrect argument type for JsonRpc::SendMessage 6147/head
Gunnar Beutner [Tue, 6 Mar 2018 07:54:47 +0000 (08:54 +0100)]
Fix incorrect argument type for JsonRpc::SendMessage