Commit Graph

4365 Commits

Author SHA1 Message Date
Johannes Meyer 65b3006adf Check if `\Throwable` instead of `\Exception`..
..everywhere else...

fixes #5079
2023-08-10 14:12:06 +02:00
Johannes Meyer 0a6db983f3 IcingaException: Expect `\Throwable` instead `\Exception` 2023-08-09 15:53:49 +02:00
raviks789 8a17c56345 Remove requiring vendor dependencies
Also avoid autoloading vendor.
2023-08-09 15:16:16 +02:00
raviks789 50bd5cfdc9 Remove `librarary/vendor` directory
The vendor dependencies will be moved to `composer.json` in `icinga-php-thirdparty`.
2023-08-09 15:16:16 +02:00
Johannes Meyer 597cb5c94d tests: Use a real app for bootstrapping
Makes the tests less isolated, but streamlines
the autoloading and other stuff in a way that's
more maintainable than before.
2023-07-05 09:24:49 +02:00
Johannes Meyer 82d39be642 BaseTestCase: Refactor request and response mocking 2023-07-04 17:05:06 +02:00
Johannes Meyer 08bfc4f596 BaseTestCase: Drop timezone setup, the app will do it 2023-07-04 17:05:06 +02:00
Johannes Meyer 531479a92e BaseTestCase: Deprecate directory properties 2023-07-04 17:05:06 +02:00
Johannes Meyer 3f447cb954 BaseTestCase: Remove `t` and `mt` function declarations 2023-07-04 17:05:06 +02:00
Johannes Meyer e7adc06497 ApplicationBootstrap: Process `ICINGAWEB_MODULES_DIR` by default 2023-07-04 16:08:41 +02:00
Sukhwinder Dhillon 5000d3117b IcingaException: Only use `vsprintf()` if `$args` given
If the passed message contains a `%`, but no `$args`, `vsprintf()` throws an error.
2023-06-22 15:03:14 +02:00
raviks789 f74041e00a Javascript: Add `copy-to-clipboard` behavior
Utilizes `CopyToClipboard.js` from ipl-web
2023-06-20 12:06:27 +02:00
Johannes Meyer 693bed1710 Raise version to 2.11.4 2023-01-26 09:42:18 +01:00
Johannes Meyer 0803a1bbdc test: Support multiple paths in `ICINGAWEB_MODULES_DIR` 2023-01-18 12:07:11 +01:00
Yonas Habteab 6d2a585de9 TemporaryLocalFileStorage: Fix unexpected crash in destructor 2023-01-16 14:15:43 +01:00
Johannes Meyer 8837fea7a4 Libraries: Only attempt a partial match if the library name contains a slash
fixes #4971
2023-01-12 09:54:42 +01:00
Valentina Da Rold 963c3168b1 Check if url is external in validation function
refs: #4970
2023-01-11 14:09:43 +01:00
Johannes Meyer d0a83a646c Release version 2.11.3 2022-12-14 13:21:01 +01:00
Johannes Meyer f67499c74d Pdf: Use dompdf's new autoloader 2022-12-07 15:03:58 +01:00
Johannes Meyer bb54956dbb vendor: Upgrade dompdf to v2.0.1 2022-12-07 15:03:58 +01:00
Johannes Meyer d53d730aa3 HTMLPurifier: Fix file flags 2022-12-07 14:59:44 +01:00
Johannes Meyer 7df5045420 vendor: Upgrade HTMLPurifier to v4.16.0 2022-12-07 14:52:32 +01:00
Johannes Meyer b89da2f865 Visitor: Force light mode when printing pages 2022-12-07 11:57:48 +01:00
Johannes Meyer b1574e4bee ConfigMenu: Fix incorrect shared navigation url
fixes #4953
2022-12-07 11:57:23 +01:00
Johannes Meyer 3187a4e549 InternalUrlValidator: Also check the scheme 2022-12-07 11:56:43 +01:00
mrzo2s45 bdb9fd299b Fix missing escape of double quotes in CSV output.
refs #4910
2022-11-07 12:59:28 +01:00
Johannes Meyer 6ef968bb96 Raise version to v2.11.2 2022-11-04 12:14:40 +01:00
Yonas Habteab 8cb0976c5b CommentParser: Wrap descriptions after the available screen columns
Well, what should I say, the PHP code sniffer allows us up to 120 characters
line length and when you code/format based on these rules, e.g the description
of a cli command, it will mess everything up when you run `icingacli module --help`.
So, we can just wrap the output after the available screen columns.
2022-10-25 08:47:38 +02:00
Johannes Meyer 314545f3a7 PrivilegeAudit: Expand defined privileges when exporting to PDF
refs #4862
2022-10-10 10:42:45 +02:00
Johannes Meyer 503f9b7316 PrivilegeAudit: Use the `<details>` tag 2022-10-10 10:42:45 +02:00
Johannes Meyer 78f5fd4648 Dashlet: Drop `view` parameter from title urls
refs https://github.com/Icinga/icingadb-web/issues/463
2022-10-10 10:39:47 +02:00
Eric Lippmann c133cbe4f8
Fix LDAP pagination for PHP7.3+ (#4901)
* Ldap: Read and update cookie values for paged requests also with PHP 7.3+

* Ldap: Provide server-side sort control directly with the request with PHP 7.3+
2022-10-10 09:55:47 +02:00
Johannes Meyer 225d43b45f Release version 2.11.1 2022-07-06 14:48:48 +02:00
Sukhwinder Dhillon 21e4c68a58 Format.php: Handle null values 2022-07-06 14:43:16 +02:00
Sukhwinder Dhillon f0f2835708 Module: Don't pass null as param to `class_exists()` 2022-07-05 15:42:15 +02:00
Johannes Meyer 947aa91c48 DbQuery: Don't call `timestampForSql()` in `valueToTimestamp()`
We can't call it implicitly, not all filter columns support
date time strings, especially in postgresql..
2022-07-05 09:55:32 +02:00
Johannes Meyer dcf194bc4c Raise version to 2.11.0 2022-06-30 13:47:07 +02:00
Yonas Habteab c29ac9842d Call: Don't precompile arg values when it's not an array
The CSS/LESS callable argument values may not always be an array, but also an object or whateever,
in this case we don't need to precompile the values as they could never be a variable.
2022-06-30 12:15:01 +02:00
Yonas Habteab 9ac1a00e94 Remove some unused codes & adjust the license headers 2022-06-30 12:15:01 +02:00
Yonas Habteab 5a04480245 Check for deferred color prop when defining variable variable & some fixlets for naming issue 2022-06-30 12:15:01 +02:00
Yonas Habteab a2932bd5ce Visitor: Transform less tree calls & variable definitions into our own classes 2022-06-30 12:15:00 +02:00
Yonas Habteab 7ac2dccbd1 Introduce `DeferredColorProp` class 2022-06-30 12:15:00 +02:00
Yonas Habteab b10261b444 Introduce own `Call` class for less tree calls 2022-06-30 12:15:00 +02:00
Johannes Meyer 95ea071a89 DbQuery: Accept any type in method `valueToTimestamp()` 2022-06-30 08:37:14 +02:00
Sukhwinder Dhillon 3482ef9e65
Fix that navbar forgets active state after refresh (#4831) 2022-06-29 14:58:02 +02:00
Johannes Meyer db2c30d418 ConfigMenu: Use absolute URLs in nav items 2022-06-15 08:39:55 +02:00
Johannes Meyer 457eb52e2c ConfigMenu: Add missing application_log entry
fixes #4824
2022-06-15 08:39:09 +02:00
Johannes Meyer c65ba3c2fc Stylesheet: Don't parse library CSS as LESS 2022-06-14 15:12:26 +02:00
Johannes Meyer 0490a2dfe4 Drop class `Icinga\Web\Hook\GrapherHook` 2022-06-14 14:24:30 +02:00
Johannes Meyer d25854ebce Drop class `Icinga\Web\Hook\TicketHook` 2022-06-14 14:24:30 +02:00
Johannes Meyer 9ef344d3b2 Really mark class `Icinga\Web\Hook` deprecated -.-
I would have removed it, but the deprecation notice wasn't
defined properly and so not visible for more than six years.
Now even our own projects make still use of it thoroughly..
2022-06-14 14:24:30 +02:00
Johannes Meyer f8e1137060 Remove restriction macro `user:local_name` 2022-06-14 14:24:30 +02:00
Johannes Meyer 46a21d9709 Drop method `DbQuery::whereToSql()`
It's been used by `DbQuery::renderFilter()` rather
exclusively. So if removing one, both need to go.
2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 846a90301d DbQuery: Replace deprecated method `renderFilter()` and remove it 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon bba77b52e7 LdapConnection: Remove deprecated method `connect()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon b47298fffe SimpleQuery: Remove deprecated method `paginate()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 8f0ac0492d Replace deprecated method `DbConnection::getConnection()` with `DbConnection::getDbAdapter()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon aded6a055e DbConnection: Remove deprecated method `getConnection()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon eb768b4fce Remove deprecated method `ApplicationBootstrap::setupZendAutoloader()` and its uses 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 58ac2a97c2 InlinPie: Remove deprecated method `disableNoScript()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon a9af8f2e1a Url: Remove deprecated methods `setBaseUrl()` and `getBaseUrl()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 55d23a531f Module: Remove deprecated method `registerHook()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 479bec6fb4 ApplicationBootstrap: Remove deprecated method `listLocales()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon b1f723318f Web: Remove deprecated method `getMenu()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 8fc50645c4 AesCrypt: Remove deprecated methods `encryptToBase64()` and `decryptFromBase64()` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 3113dc06ac Remove deprecated class `Icinga/Util/Translator` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 423c58d710 Remove deprecated class `Icinga/Util/String` 2022-06-14 14:24:30 +02:00
Johannes Meyer 60938b58c6 Remove jQuery
It's now part of icinga-php-thirdparty
2022-06-14 14:07:20 +02:00
Sukhwinder Dhillon a38d5ccac6 Revert "Form: Process request parameter _frameUpload"
This reverts commit fc481e527b.
2022-06-13 15:50:52 +02:00
Sukhwinder Dhillon e4450e7368 Revert "js: Don't serve scripts utilizing ECMA2016+ features"
This reverts commit 4d4f5b3a69.
2022-06-13 15:50:52 +02:00
Sukhwinder Dhillon f1e8280c3e Revert "Don't support dark/light mode for IE"
This reverts commit baeca33789.
2022-06-13 15:50:52 +02:00
Johannes Meyer d663fe84c3 DbConnection: Fix that unequal is handled as equal...
refs #4814
2022-06-13 15:05:24 +02:00
Johannes Meyer 1bee2db583 DbConnection: Only ignore the `*` for equal/unequal conditions
fixes #4813
2022-06-13 14:38:51 +02:00
Sukhwinder Dhillon c0d247613d Manager: Ensure enableModule dir has correct permission when created 2022-06-13 11:44:40 +02:00
Johannes Meyer 77060ed312
Merge pull request #4799 from Icinga/php-81-support
Fix PHP 8.1 deprecation errors
2022-06-07 15:11:44 +02:00
raviks789 f33566be1c Avoid passing null as hastack to `strpos` in library/vendor/Zend/Form::_dissolveArrayValue() 2022-06-07 14:09:37 +02:00
Yonas Habteab 8e6d4a6b46 LinearUnit: Make Iterator methods compatible with the parent methods 2022-06-02 16:19:42 +02:00
Yonas Habteab 4782df4fee Form: Fix don't pass null values to strtolower() error 2022-05-30 14:00:01 +02:00
Yonas Habteab 2279502265 SingleValueSearchControl: Add default class to the search suggestions 2022-05-27 14:26:16 +02:00
Sukhwinder Dhillon 26f3fa0dc1 PdfExport: Show decoded url in pdf footer 2022-05-27 14:20:15 +02:00
Sukhwinder Dhillon aad2419545 Remove obsolete `config_backend` option and not required code
The user preferences backend is now always a `db`.
2022-05-27 14:02:11 +02:00
Sukhwinder Dhillon e7c368b09d PreferencesStore: Fix syntax 2022-05-27 14:02:11 +02:00
Sukhwinder Dhillon 0eb3b27e68 PreferencesStore: Remove not required method `setTable()` 2022-05-27 13:55:48 +02:00
Sukhwinder Dhillon fa7f100c03 PreferencesStore: Add new syntax 2022-05-27 13:55:48 +02:00
Sukhwinder Dhillon 566f5db8cf Add all `DbStore.php` class code to `PreferencesStore.php`
Remove `DbStore.php`

Since all user preferences must be stored in the database, it is
not necessary to have a child class.
2022-05-27 13:55:48 +02:00
Sukhwinder Dhillon 8ff1a22df7 Set preferences store type to `Db` and make it non-configurable 2022-05-27 13:55:48 +02:00
Sukhwinder Dhillon 9c6fda7b33 Remove `IniStore.php` 2022-05-27 13:55:48 +02:00
Yonas Habteab 340364ee9c Json: Fix trying to decode null data deprecation error 2022-05-24 14:49:07 +02:00
Johannes Meyer 74022ae4e0
Merge pull request #4697 from Icinga/feature/redesigned-user-menu-new
Feature/redesigned user menu
2022-05-16 09:04:26 +02:00
Johannes Meyer 644d5eaba7 DbConnection: Ensure compat with PHP 8.1 in `renderFilterExpression` 2022-05-13 16:54:19 +02:00
Johannes Meyer 03e7041ccb DbConnection: Support wildcards in arrays in `renderFilterExpression` 2022-05-13 16:54:19 +02:00
raviks789 8898ed85ab Change FilterMatch to FilterEqual class for single object filter on object name.
Correspondingly the DbConnection::renderFilter() (as DbQuery::renderFilter() is deprecated and will be removed, hence no modifications here)
is also modified to render accordingly.
This correctly selects the host, service or contact in case the object name contains wild card characters like "\*".
2022-05-12 16:28:35 +02:00
Florian Strohmaier df788ac0ef BadgeNavigationItemRenderer: Add `$cssClass` on autorefresh 2022-05-12 15:13:16 +02:00
Florian Strohmaier c68fbb662e Menu.php: Add classes for nav-items to only be shown on mobile 2022-05-12 15:13:16 +02:00
Florian Strohmaier eeeca5a204 ConfigMenu: create Configmenu class 2022-05-12 11:10:59 +02:00
Florian Strohmaier 29ef96349c Stylesheet: load configmenu.less 2022-05-12 11:10:59 +02:00
Johannes Meyer 2a80e8bca6 Introduce new hook `ThemeLoader` 2022-05-11 14:37:07 +02:00
Johannes Meyer 0b9eecbabc ActionController: Don't override reload rules in `redirectXhr()`
`postDispatchXhr()` also only overrides them if enabled.
2022-05-11 14:26:09 +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 4cff1feb8f.

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
Johannes Meyer 57e8e41089 Manager: Parse version suffixes with decimals correctly 2022-02-04 16:17:54 +01:00
Johannes Meyer 6b0f3f69c3 LinkTransformer: Don't load any external url in an iframe 2022-02-04 16:04:26 +01:00
Johannes Meyer baf2f1bbde LinkTransformer: Use a more reliable extention detection 2022-02-04 16:04:26 +01:00
Johannes Meyer c42653a9b0 Drop core locales 2022-02-04 15:58:06 +01:00
Johannes Meyer ffaf6e5f04 Remove module asset support 2022-02-04 15:57:15 +01:00
Johannes Meyer ffc977846a StyleSheet: Use an absolute path to load responsive login orbs 2022-01-11 12:53:57 +01:00
Johannes Meyer 316885b271
Merge pull request #4498 from Icinga/bugfix/tactical-4494
/monitoring/tactical: fall back to unknown services if none critical
2021-12-14 10:24:57 +01:00
Sukhwinder Dhillon c30df56de4 Release version 2.9.5 2021-11-17 16:51:55 +01:00
Johannes Meyer 81f6116f3f Release version 2.9.4 2021-11-10 10:17:35 +01:00
Sukhwinder Dhillon 2c01f38dec Add icingadb as OR dependecy
Add only if the given module supports icingadb and has monitoring as a requirement
2021-11-10 09:33:48 +01:00
Johannes Meyer 8d047b6ffd LessCompiler: Show more details for parsing exceptions 2021-11-03 16:23:22 +01:00
Johannes Meyer fd4ab2babc StyleSheet: Handle missing themes gracefully 2021-11-02 15:09:52 +01:00
Ravi Kumar Kempapura Srinivasa 685f1f90bc Handle non `.js` files in asset/js and non `.css` or `.less` in asset/css folder
Non javascript files in asset/js folder or non css or less files in asset/css folder causes minfier to throw error. This is handled here.
2021-11-02 08:58:58 +01:00
Ravi Kumar Kempapura Srinivasa be3a722a28 Compress comment detail in Hosts detail and Comments list. 2021-10-07 10:44:10 +02:00
Alexander A. Klimov 8b651d5f13 Donut: allow big label to indicate a specific state
refs #4494
2021-09-23 15:17:33 +02:00
Ravi Kumar Kempapura Srinivasa bbd36d5f83 Check if the column in the row is set for filters
When the column is not set for the filters undefined property exception is thrown in icinga-director. This is a quick fix to solve the issue.
2021-08-24 09:34:26 +02:00
Johannes Meyer b2274a5589 Release version 2.9.3 2021-08-10 10:11:44 +02:00
Johannes Meyer 24c1618793 LoginForm: Also disable stay logged in case of no encryption method 2021-08-10 10:09:15 +02:00
Johannes Meyer a00166f15b Javascript: Enhance optimization
* Don't try to optimize non-icinga define calls
* Don't optimize `exports` dependency
* Log errors to debug log, it's stuff for devs
2021-08-10 09:23:45 +02:00
Sukhwinder Dhillon 8c22514758 Utilize multiple encryption ciphers for remember me 2021-08-09 16:58:58 +02:00
Johannes Meyer 907f7826b2 Release version 2.9.2 2021-07-28 09:33:41 +02:00
Johannes Meyer 0b6f71c446 If enforcing a charset, DO IT ONLY IF THE DB TYPE IS CORRECT 2021-07-28 09:04:28 +02:00
Johannes Meyer 1b2cd8fdf3 Release version 2.9.1 2021-07-27 15:22:32 +02:00
Sukhwinder Dhillon 645c0770a2
Rememberme compatibility with php version 5.6+ (#4472) 2021-07-26 17:37:38 +02:00
Johannes Meyer aee82ad342 Database: Always use `utf8mb4` as connection charset 2021-07-26 16:37:41 +02:00
Johannes Meyer 62f1fe2c3f PreferencesStore: Always use `utf8` as db connection charset 2021-07-26 16:37:41 +02:00
Johannes Meyer 517c108cc4 UserGroupBackend: Always use `utf8` as db connection charset 2021-07-26 16:37:41 +02:00
Johannes Meyer 7ce3778378 UserBackend: Always use `utf8` as db connection charset 2021-07-26 16:37:35 +02:00
Johannes Meyer 7b9cb7f9fb SVGRenderer: Set correct input encoding
fixes #4462
2021-07-26 11:57:45 +02:00
Johannes Meyer c38a7b5cf3 css: Disable login orb animation and all orbs for themes
fixes #4437
2021-07-26 11:54:28 +02:00
Johannes Meyer b8b77332c4 Database: Only use `PDO::MYSQL_ATTR_INIT_COMMAND` for mysql connections
fixes #4441
2021-07-21 09:19:43 +02:00
Johannes Meyer b39d9d6746 LinkTransformer: Don't open external urls in iFrames
fixes #4449
2021-07-21 09:17:23 +02:00
Johannes Meyer f73614be4d Raise version to 2.9.0 2021-07-12 10:35:56 +02:00
Johannes Meyer 1fd00dcf1c We drop support for the `INI` config backend type with v2.11 2021-07-12 10:35:56 +02:00
Johannes Meyer 228e503131 js: Allow to reload the window 2021-07-07 09:41:48 +02:00
Johannes Meyer 9e0785b0b4 AppHealth: Fix typo 2021-07-06 15:18:16 +02:00
Johannes Meyer ff30bf2393 IcingaCheckbox: Use css class `sr-only` again
`hidden=true` also hides elements from screen readers.
`sr-only` is now fixed for chrome.
`aria-hidden` true has been added because it suits
and was previosly missing.

fixes #4411
2021-07-01 11:16:55 +02:00
Johannes Meyer 53c0d6de86 Wizard: Transform emtpy page data values to null
Previously the wizard wrote empty strings to config files.
2021-06-30 18:53:41 +02:00
Johannes Meyer 2be1ed3878
Merge pull request #4400 from Icinga/feature/username-in-navigation-items
Support $user.local_name$ macro in navigation items
2021-06-29 12:55:12 +02:00
Eric Lippmann d1aaaf7fb0 Replace user:local_name with user.local_name macro in restrictions 2021-06-28 15:16:56 +02:00
Eric Lippmann 7e7e2415dc Support $user.local_name$ macro in navigation items 2021-06-28 14:26:38 +02:00
Johannes Meyer 889c0a749c Module: Report `ipl` and `reactbundle` as library requirements
This way modules with the legacy requirement definition
can still be enabled without the modules in place.
2021-06-28 10:55:45 +02:00
Johannes Meyer 82485236f7 Auth: Also reload theme mode if no theme is active
refs #4390
2021-06-24 09:44:28 +02:00
Johannes Meyer b59f26879e LessParser: Add custom function `extract-variable-default` 2021-06-23 17:40:06 +02:00
Sukhwinder Dhillon 492a9ec229 Auth: Reload CSS if mode change 2021-06-23 17:34:27 +02:00
Sukhwinder Dhillon 8b24e3bffe Stylesheet: Collect and load theme mode files 2021-06-23 17:34:27 +02:00
Sukhwinder Dhillon b291d7ce3d Add new less lib 2021-06-23 16:13:49 +02:00
Johannes Meyer 6a0da10473 Manager: Don't register the ipl and reactbundle module
Both are superseded by their respective library. This
way we make sure there are no competing auto loaders.
2021-06-22 12:50:59 +02:00
Johannes Meyer bc88e8d62b SingleValueSearchControl: Use strict interfaces..
..to construct ipl\Html objects
2021-06-21 16:11:55 +02:00
Johannes Meyer ed009bb032 PrivilegeAudit: Use strict interfaces to contruct ipl\Html objects 2021-06-21 16:11:30 +02:00
Johannes Meyer f400f4d96d AppHealth: Use strict interfaces to construct ipl\Html objects 2021-06-21 16:10:55 +02:00
Johannes Meyer 35659c8d51
Merge pull request #4391 from Icinga/improve-cache-handling
Improve cache handling
2021-06-18 13:57:30 +02:00
Johannes Meyer 0756797fbb Make configuration of custom user-group backends possible
refs #2840
2021-06-18 10:41:39 +02:00
Gianluca Piccolo 1e7f700102 Make configuration of custom user backends possible
refs Icinga/icingaweb2#2840
2021-06-18 10:28:35 +02:00
Johannes Meyer 870c3e0e5b Force clients to ask us if their cached CSS is valid 2021-06-16 14:58:44 +02:00