Commit graph

206 commits

Author SHA1 Message Date
Johannes Meyer
b7e01023ab Update required icinga-php-library version 2026-04-17 15:40:21 +02:00
Eric Lippmann
b474b4347d Raise version to 2.13 2026-03-26 21:31:28 +01:00
Eric Lippmann
662de28f85 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-26 17:49:26 +01:00
Eric Lippmann
298f52456f Use Pdo\Mysql driver-specific constants
Replace deprecated `PDO::MYSQL_*` constant usage with the driver-specific
`Pdo\Mysql::ATTR_*` constants introduced in PHP 8.4.

This prepares the code for PHP 8.5, where accessing MySQL driver constants
through the generic `PDO` class is deprecated.

This change requires a compatibility shim on older PHP versions to provide
`Pdo\Mysql` for runtimes that do not expose the driver-specific class yet.  The
shim is provided in `ipl-sql`. As a consequence, the required version of the
Icinga PHP library has been raised.
2026-03-19 22:27:45 +01:00
Bastian Lederer
ea0ce32bc9 Change implicit nullable type declaration to explicit
Since PHP 8.4 implicitly nullable parameter types are deprecated.

Normalize scoped PHPDoc for nullable-parameter updates: use `?Type` instead of
`Type|null`, remove column alignment, and indent continuation lines with 2
spaces.

Co-authored-by: "Eric Lippmann <eric.lippmann@icinga.com>"
2026-03-10 16:40:27 +01:00
Alexander A. Klimov
23288ce749 Require PHP 8.2 2025-11-06 10:28:51 +01:00
Jan Schuppik
73c813eded
Fix/icingacli setup fpm flag (#5411)
resolves #5409

Only use default value for --fpm-url if neither --fpm-url or
--fpm-socket-path is set.
2025-08-20 09:27:31 +02:00
Jan Schuppik
85621487e8
Fix: split fpm-uri flag in socket and url flag (#5364)
fixes #5249
2025-05-06 11:35:10 +02:00
Johannes Meyer
53fa6d57e1 Raise ipl requirement 2025-03-26 10:35:11 +01:00
Johannes Meyer
781b97fc41
removed gendered language (#5169) 2024-08-07 14:40:32 +02:00
Johannes Meyer
ab3c9f326d Require ipl version which provides i18n v0.2.2 2024-08-07 13:19:11 +02:00
alyxbb
5c94bf7bae
removed gendered languaged 2024-01-08 23:55:09 +00:00
Yonas Habteab
329fd9e316 DbTool: Enhance issuing and verifying pgsql privileges 2023-10-26 17:07:17 +02:00
Yonas Habteab
a99f685d15 Add missing pgsql USAGE privilege 2023-10-26 17:07:17 +02:00
Johannes Meyer
2432d055e6 Raise library requirements 2023-09-21 16:35:31 +02:00
Johannes Meyer
8a1c224461 WebWizard: Grant permission for DDL statements by default 2023-09-19 14:37:55 +02:00
Johannes Meyer
c170727fc3 WebWizard: Define icingaweb_schema as database table
fixes #5112
2023-09-14 13:12:29 +02:00
Sukhwinder Dhillon
ee9d139a3a PhpDoc: Fix incorrect @param and @return type hints 2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon
8960324fcd ResourceStep: Fix Variable '$dbHtml, $ldapHtml' are probably undefined 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
e5981ed2b5 GeneralConfigStep: Fix Variable '$typeDescription, $typeSpecificHtml' are probably undefined 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
07e272f3cc RequirementsRenderer: Add $tags explicitly as non-dynamic property 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
8cfc40affe RequirementSet: Fix sprintf args 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
b755650256 Requirement: Fix exception throw 2023-08-23 10:53:14 +02:00
raviks789
209bf62a56 DbTool: Import class Zend_Db_Adapter_Pdo_Abstract
Since `DbTool::zendconn` is of type `Zend_Db_Adapter_Pdo_Abstract`, it has to be imported.
2023-08-23 10:53:13 +02:00
raviks789
9e0c8ef76a RequirementsRenderer: Cast $currentSet to RequirementSet in beginChildren() using inline @var 2023-08-23 10:53:13 +02:00
raviks789
7677a0bc4e WebWizard: Access Form::getName() with correct name case in getNewPage() 2023-08-23 10:53:13 +02:00
raviks789
ea2166be6d WebWizard: Import exception InvalidArgumentException 2023-08-23 10:53:13 +02:00
raviks789
fc321ddc49 WebWizard: Use inline @var to cast setup pages to correct type 2023-08-23 10:53:13 +02:00
raviks789
aa5da53c9d Webserver: Fix name case of return type for createInstance() method 2023-08-23 10:53:13 +02:00
Alexander A. Klimov
0031108160 icingacli setup config webserver apache: add trailing / to Alias dir
if the Alias URI (e.g. /) has a trailing /. Otherwise Apache says 403.
2023-01-18 13:55:45 +01:00
Eric Lippmann
d41ebeb6bc Schema path is now always /usr/share/icingaweb2/schema 2023-01-09 16:14:15 +01: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
48e96ba301 RequirementSet: Fix null returned instead int exception
fixes #4767
2022-05-03 14:08:16 +02:00
Johannes Meyer
d63f645bd8 Update requirements for PHP 8.1 2022-03-24 15:46:26 +01:00
Johannes Meyer
c038e84fc2 Ensure Return Type Compatibility with Internal Classes 2022-03-24 12:29:06 +01:00
Johannes Meyer
523bdfec5e Require PHP 7.2+ 2022-03-24 12:29:05 +01:00
Johannes Meyer
01f67a78c6 Increase required version of the icinga-php-library 2022-03-23 11:49:06 +01:00
Johannes Meyer
253fee0054 WebWizard: Ensure to properly setup table icingaweb_rememberme
fixes #4434
2021-07-21 17:42:59 +02:00
Johannes Meyer
1ed1bfe4b9 WebWizard: Update php module requirements 2021-07-21 17:38:59 +02:00
Johannes Meyer
da950c8559 WebWizard: Remove line break from a requirement message 2021-07-01 13:01:38 +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
c5cb9dc34e Raise minimum required PHP version to 7.3 2021-06-22 12:57:08 +02:00
Johannes Meyer
fa602c3525 WebWizard: Require our new libraries 2021-06-22 12:35:22 +02:00
Johannes Meyer
3b3eca934f WebWizard: Remove Zend_Db_* class requirements
All of our packages (even debian) roll out our own
bundled fork, which containes these classes.
2021-06-22 12:33:15 +02:00
Johannes Meyer
f72a5fbe89 WebWizard: Require storage directory 2021-06-22 12:11:10 +02:00
Johannes Meyer
1a5cedfee1 setup: Skip browser validation when validating a form manually
fixes #4291
2021-04-13 16:57:03 +02:00
sukhwinder33445
ab97b6fdf0
Enforce database as configuration backend (#4135) 2021-02-18 12:31:21 +01:00
Johannes Meyer
01a08d60e1 setup: Don't fail if only a module couldn't be enabled 2020-11-18 13:21:34 +01:00
Johannes Meyer
335dde7b68 WebModuleRequirement: Strip leading v from a module's version 2020-05-05 16:26:39 +02:00
Johannes Meyer
d585a37641 setup: Introduce class WebModuleRequirement 2020-04-30 16:43:24 +02:00