4120 Commits

Author SHA1 Message Date
Sukhwinder Dhillon
acc2d2d852 Database: Read sql config from section [db] of config.ini
Since the whole `resources.ini` should be stored in the db in the future,
the main configuration of the icingaweb2 database is moved to the `config.ini`.
2022-05-19 09:56:11 +02:00
Sukhwinder Dhillon
9eea738540 Remove not required column type from configScope table 2022-05-19 09:52:16 +02:00
Johannes Meyer
f9ee442274 db: Add tables and models for config storage 2022-05-10 15:34:08 +02:00
Sukhwinder Dhillon
67285ce262
Update dompdf to v1.2.1 (#4759) 2022-05-06 09:37:48 +02:00
Sukhwinder Dhillon
1b1eb3436f sql: Change charset to utf8mb4
fixes https://github.com/Icinga/icingaweb2/issues/4680
2022-05-02 15:36:31 +02:00
raviks789
199ea6f965 Prevent use of empty filters in FilterChain::toQueryString()
Due to instantiation of filters using Filter::matchAll() in ObjectList::getFilter(), we get an empty FilterAnd instance when
$this->filter is null. This prepends unnecessary separator '&' to the query string during conversion of filter to querystring.
This breaks the state badge links for host and service lists.
2022-04-29 10:38:26 +02:00
Johannes Meyer
bc6b17b850 Revert "ActionController: Don't override X-Icinga-Title when it's already set"
This reverts commit 4cff1feb8fe2231df6568e9d1d711540984c80fe.

It's broken and obsolete since https://github.com/Icinga/ipl-web/pull/72.
2022-04-12 14:56:28 +02:00
Alexander Aleksandrovič Klimov
2fcee6a073 ConfigObject#get(): reduce code complexity
and save a few CPU cycles.
2022-04-11 13:31:16 +02:00
Alexander Aleksandrovič Klimov
874af33d81 Correct Auth#getUser() type spec
Doc says it may be null.
2022-04-11 13:30:24 +02:00
Alexander Aleksandrovič Klimov
32e958e4da Fix typo 2022-04-11 13:29:41 +02:00
Yonas Habteab
4cff1feb8f ActionController: Don't override X-Icinga-Title when it's already set 2022-04-11 13:26:08 +02:00
Johannes Meyer
9225462262 Fix that false values in dropdowns get ignored
plus some more fixes in the same area
2022-04-06 16:34:34 +02:00
Johannes Meyer
95d0ac018c Raise version to 2.10.1 2022-04-06 09:34:11 +02:00
Johannes Meyer
38103bed83 Add missing php 8.1 change... 2022-03-24 15:41:16 +01:00
Johannes Meyer
8dbbe26a1a Use type declarations for all translation helpers 2022-03-24 12:29:06 +01:00
Thomas Gelf
83567ebad2 Avoid passing null to non-nullable arguments 2022-03-24 12:29:06 +01:00
Johannes Meyer
3dc384fb58 Avoid passing null to non-nullable arguments 2022-03-24 12:29:06 +01:00
Johannes Meyer
dd3ceaa637 Implementing Serializable requires now __serialize and __unserialize 2022-03-24 12:29:06 +01:00
Johannes Meyer
c038e84fc2 Ensure Return Type Compatibility with Internal Classes 2022-03-24 12:29:06 +01:00
Johannes Meyer
42815f02e6 Drop class Icinga\File\Storage\LocalFileStorageIterator 2022-03-24 12:27:20 +01:00
Johannes Meyer
d0677a127f Release version 2.10.0 2022-03-23 11:49:06 +01:00
Florian Strohmaier
fab84e3a7d StyleSheet: Use php-diff.less 2022-03-14 16:05:02 +01:00
Johannes Meyer
0d032989e6 Fix style issues in recent security fixes 2022-03-08 15:20:16 +01:00
Johannes Meyer
f21200f167 Release version 2.9.6 2022-03-08 15:12:52 +01:00
Johannes Meyer
b7c31eb922
Merge pull request from GHSA-5p3f-rh28-8frw
Only serve existing static library assets, really!?
2022-03-08 12:01:34 +01:00
Johannes Meyer
1e6639971f StyleSheet: Only set theme on the compiler if it exists
The compiler itself can handle invalid themes, but doesn't
log the user name which makes it hard to track the cause down.
2022-03-02 09:44:49 +01:00
Johannes Meyer
c5343f5575 css: Remove solarized-dark theme 2022-03-02 08:37:10 +01:00
Johannes Meyer
85c42f8400 Enhance page layout when exporting to PDF using dompdf
It's still not perfect. But better than previously.
Using the pdfexport module is still recommended though.
2022-03-01 17:04:38 +01:00
Johannes Meyer
b50d68553f ActionController: Utilize Icinga\Common\PdfExport 2022-03-01 17:00:58 +01:00
Johannes Meyer
466a6189a7 Introduce trait Icinga\Common\PdfExport 2022-02-28 17:30:44 +01:00
Johannes Meyer
3c48d693ff about: Fix documentation link and use a version dependent one 2022-02-25 12:27:08 +01:00
Johannes Meyer
379ddb91f0 Only serve existing static library assets, really!? 2022-02-23 17:18:16 +01:00
Johannes Meyer
f16a54242a DbQuery: Account for daylight savings in timestampForSql()
fixes #4568
2022-02-10 16:48:36 +01:00
Johannes Meyer
74971359a3 css: Change mode detection to look for @light-mode 2022-02-10 11:11:06 +01:00
Johannes Meyer
55330c81c4 css: Drop explicit dark mode 2022-02-10 11:11:06 +01:00
Johannes Meyer
6dc5c50618 LessCompiler: Catch only parser exceptions 2022-02-10 11:00:06 +01:00
Johannes Meyer
6516eafc6c LessParser: Remove custom function extract-variable-default 2022-02-10 11:00:06 +01:00
Eric Lippmann
baeca33789 Don't support dark/light mode for IE 2022-02-10 10:47:24 +01:00
Eric Lippmann
f1c984cd65 Add license header 2022-02-10 10:47:24 +01:00
Eric Lippmann
0ce968bfda Deny light-mode definitions in selectors 2022-02-09 21:35:12 +01:00
Eric Lippmann
25acc9602e Fix PHP compat 2022-02-09 21:35:12 +01:00
Eric Lippmann
19f57644e8 Generate light mode calls from their definitions 2022-02-09 21:35:12 +01:00
Eric Lippmann
5f46493148 Code quality and documentation 2022-02-09 21:35:09 +01:00
Eric Lippmann
a775ae5f66 Also process mixin rules 2022-02-09 21:20:33 +01:00
Eric Lippmann
517b0353bc Support variable variables 2022-02-09 21:20:33 +01:00
Eric Lippmann
853fa93ea5 Support mixins 2022-02-09 21:20:33 +01:00
Eric Lippmann
d82fc24766 Replace compiled Less colors with CSS var() function calls 2022-02-09 21:20:31 +01:00
Johannes Meyer
d7d31d00ea Drop expandable.js 2022-02-07 14:11:48 +01:00
Johannes Meyer
7f0ddd931c Form: Create CSRFTokens in way that ensures id uniqueness 2022-02-04 17:20:48 +01:00
Johannes Meyer
d78bb02b41 Module: Parse requirements in metadata correctly 2022-02-04 16:17:54 +01:00