Commit Graph

14067 Commits

Author SHA1 Message Date
Sukhwinder Dhillon 804f28ea8a CommentParser: Add var type hint 2024-02-09 14:05:22 +01:00
Sukhwinder Dhillon 31e3455c79 LdapConnection: Fix ldap return type issues
ldap_connect() in php >= 8.1 returns `LDAP\Connection` instead of `resource` and all ldap_*() methods expects the returned type. But function defined return type and $ds type confuses phpstan, so i removed the hardcoded type hint.
2024-02-09 14:05:22 +01:00
Sukhwinder Dhillon b270161455 phpstan: Streamline vendor file location with local dev-env
phpstan is not run with an action anymore, as the action runs
it its own docker container and hence has no access to files
outside the repository root. A side-effect of this is, that
phpstan now **really** runs with the php version set up by
the matrix.
2024-01-22 09:49:41 +01:00
Johannes Meyer cd2daeb2cb
Release v2.12.1 (#5150) 2023-11-15 12:50:13 +01:00
Johannes Meyer b23cbd796f Raise version to 2.12.1 2023-11-15 12:22:46 +01:00
Johannes Meyer 3042d7e973 Update CHANGELOG.md 2023-11-15 12:21:57 +01:00
Alexander Aleksandrovič Klimov 50f6f4d1c5 RELEASE.md: remove obsolete Docker section
Our GHA are going to create all Docker tags by themselves, no manual action needed.
2023-11-14 11:23:48 +01:00
Alexander Aleksandrovič Klimov d3f64604a3
Support PHP 8.3 (#5137)
fixes #5136
2023-11-14 11:22:54 +01:00
Johannes Meyer f676685876
migrate: Deprecate `navigation` command (#5148) 2023-11-13 16:45:40 +01:00
Johannes Meyer c88c1ba635 Update phpstan-baseline.neon 2023-11-10 15:59:00 +01:00
Johannes Meyer 529616d1f1 migrate: Deprecate `navigation` command 2023-11-10 15:52:09 +01:00
Johannes Meyer a1cd968579
Fix redirection loop (#5143)
fixes #5133
2023-10-27 10:21:40 +02:00
Johannes Meyer a2c143d75e Response: Only preserve `showCompact` for explicit redirects
In case of a `__SELF__` redirect, the client should still have
the parameter in the location and its preserved this way then.
2023-10-27 10:15:47 +02:00
Johannes Meyer 30b540952a loader.js: Don't consider redirected form submits as auto submits
A redirect caused by a form submit is **never** an automatic submit.
Unless I'm missing something here. There is one way this may be true,
as ipl forms without a submit button are indeed successful due to a
autosubmit element, but they don't redirect by default. So if the
controller redirects in such a case, the form should have a submit
button, I guess..

Anyway, this is necessary due to the previous commit as this may
otherwise cause form submits, that re-render layout during a redirect,
are considered being auto submitted. (Such as the login form)
2023-10-27 10:15:47 +02:00
Johannes Meyer 4743c5f5c8 loader.js: Really don't push redirects to history
refs #4879
2023-10-27 10:15:47 +02:00
Johannes Meyer e4e23a3abc doc: Fix link pointing to graphite's CSP support release 2023-10-27 10:15:21 +02:00
Johannes Meyer 2fb36c0c8a
Fix `PostgreSQL` grants (#5130)
fixes #5129
2023-10-27 08:01:36 +02:00
Yonas Habteab ae9575e7e4 DbResourcePage: Don't fail validation if connecting to pgsql wasn't successfull 2023-10-26 17:07:17 +02:00
Yonas Habteab bcdad8c9b3 MigrationManager: Enhance how pgsql privileges are checked
For mysql it's just enough to check whether the privileges are granted
at database or table label, but for PostgreSQL it's necessary that the
privileges are granted at database and at table level.
2023-10-26 17:07:17 +02: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 fca2323b1c Update phpstan-baseline.neon 2023-10-26 13:17:16 +02:00
Johannes Meyer e5f6fc276a ActionController: Always reload window when redirecting to the login
This ensures that, if CSP is enabled, the newly created token on the
login is accepted by the browser. A small, but IMHO desired, side
effect is that the login now always appears in the default theme.

fixes #5126
2023-09-28 10:35:18 +02:00
raviks789 610bc5a4fe AdminAccountPage: Fix LDAP setup error 2023-09-28 10:35:03 +02:00
Johannes Meyer 9194378c3c js: Don't refresh twice upon `__BACK__` 2023-09-26 15:04:07 +02:00
Johannes Meyer 7cd79a5c7f
Release v2.12.0 (#5120) 2023-09-21 16:40:28 +02:00
Johannes Meyer 2432d055e6 Raise library requirements 2023-09-21 16:35:31 +02:00
Johannes Meyer 21d631ad7e Raise version to 2.12.0 2023-09-21 16:35:31 +02:00
Johannes Meyer 9f5f043d49 Update CHANGELOG.md 2023-09-21 16:35:31 +02:00
Johannes Meyer db58b3b489 Update AUTHORS 2023-09-21 16:35:31 +02:00
Johannes Meyer 9036c37679 Use `main` instead of `master` as default branch name 2023-09-21 16:35:08 +02:00
Yonas Habteab c3eef5f607 DbMigrationHook: Pad matching groups to the desired length before using them 2023-09-20 15:35:39 +02:00
Johannes Meyer e4c9266da2
Provide migration hook (#5046)
resolves #5043
2023-09-19 14:46:44 +02:00
Johannes Meyer 9c6d930e17 MigrationManager: Also check table privileges 2023-09-19 14:37:55 +02:00
Johannes Meyer 4a8d171aec migrations/index: Let the migrate all button submit the migration form 2023-09-19 14:37:55 +02:00
Johannes Meyer 8a1c224461 WebWizard: Grant permission for DDL statements by default 2023-09-19 14:37:55 +02:00
Yonas Habteab 167ff54947 Enhance logging 2023-09-19 14:37:55 +02:00
Yonas Habteab 47b214ee1b Use `PDO::fetchColumn()` where applicable 2023-09-19 14:37:55 +02:00
Yonas Habteab d2ce60d4c0 Always right align `control-label-group` 2023-09-19 14:37:55 +02:00
Yonas Habteab 99e8a2322d Don't render migrate button in detailed file list view 2023-09-19 14:37:55 +02:00
Yonas Habteab 501ab81416 docs: Add missing grants in MYSQL manual setup examples 2023-09-19 14:37:55 +02:00
Yonas Habteab 2505e79a2d DbMigration: Check for mysql collation name whether to check 2.11 is migrated 2023-09-19 14:37:55 +02:00
Yonas Habteab 3f372330b3 CSS: Remove obsolete `icinga-form` styles & store max view width in a variable 2023-09-19 14:37:55 +02:00
Yonas Habteab 6a4314120b Don't use `IF (NOT) EXITS` SQL commands in upgrade scripts 2023-09-19 14:37:55 +02:00
Yonas Habteab dc738ec4ce `DbMigrationHook`: Adjust regex pattern & add missing argument docs 2023-09-19 14:37:55 +02:00
Yonas Habteab 96a6321569 DbMigration: Adjust usage of `Database::getDb()` 2023-09-19 14:37:55 +02:00
Yonas Habteab fac3855a86 DbMigrationStep: Don't cache sql statements unnecessarily 2023-09-19 14:37:55 +02:00
Yonas Habteab 864a78302f Make sql schema files consistent 2023-09-19 14:37:55 +02:00
Yonas Habteab 26cae8b882 Rename `MigrationHook` -> `DbMigrationHook` 2023-09-19 14:37:55 +02:00
Yonas Habteab ce89d4a7cb Rename `Common\DbMigration` -> `DbMigrationStep` 2023-09-19 14:37:55 +02:00