Yonas Habteab
fb33a2097a
Defferentiate migrations with no provided descriptions
2023-09-19 14:37:55 +02:00
Yonas Habteab
ce012dcdb2
Hook: Don't abort loading remaining hooks due to one broken hook
...
`Hook::all()` shouldn't abort loading the remaining hooks when one of
the provided hook is broken.
2023-09-19 14:37:55 +02:00
Yonas Habteab
15792fb59a
Provide DbMigration
hook & register when bootstrapping
2023-09-19 14:37:55 +02:00
Yonas Habteab
1da5487066
Introduce MigrationsController
& add pending migrations list in about view
2023-09-19 14:37:55 +02:00
Yonas Habteab
85b63dd067
Introduce migration ListItem
& ItemList
classes
2023-09-19 14:37:55 +02:00
Yonas Habteab
81c9e5cfc5
Introduce MigrationManager
class
2023-09-19 14:37:55 +02:00
Yonas Habteab
babc59437f
Introduce base MigrationHook
class & helpers
2023-09-19 14:37:54 +02:00
Yonas Habteab
21bde13274
Introduce database models required by migration hooks
2023-09-19 14:37:54 +02:00
Yonas Habteab
ab96f66e72
Add never
return type to redirect methods
2023-09-07 15:33:39 +02:00
Johannes Meyer
36d4e6db29
Response: Fix backwards compatibilty for __CLOSE__
...
If the redirect target changes, `__CLOSE__` has no effect
fixes #5081
2023-09-07 13:51:55 +02:00
Eric Lippmann
b693369412
Fix class in Platform::hasOracleSupport()
2023-09-07 08:51:22 +02:00
Johannes Meyer
d8e313af6c
JsonResponse: Fix documentation of sendResponse
2023-09-05 16:19:41 +02:00
Johannes Meyer
c027282d8c
Test: Load a module's composer autoloader
2023-08-31 10:18:37 +02:00
Sukhwinder Dhillon
f283c81ed2
ActionController: Always read icingaweb config for csp
...
Method `$this->Config()` returns config based of current module.
2023-08-30 10:04:46 +02:00
raviks789
33b6c01fe2
Create fake session to write csp nonces to it
...
`Csp::createnonces()` writes to a window aware session and hence a fake base session
is created in `BaseTestCase::setUp()` method
2023-08-28 16:56:51 +02:00
raviks789
282b4d564a
Add style
element to SVGs
...
The ruleset returned by `Styleable::getStyle()` is added to the SVG.
2023-08-28 16:56:51 +02:00
raviks789
97a14d7b18
Modify Styleable
to avoid using static inline styles
...
To prevent CSP violation the following changes has been made in `Styleable::class`:
1) `Styleable::getStyle()` method is modified to return `ipl\Web\Style::class`
2) `Styleable::additionalStyle` property type is changed to array
3) `Styleable::setAdditionalStyle()` parameter type is changed to array
2023-08-28 16:56:49 +02:00
raviks789
33a5f765b9
Use style
element to create css class for dynamic inline style
...
The `style` element with `nonce` attribute is used to create css classes for
inline styles that are not static. This prevents Content-Security-Policy violations.
2023-08-28 16:40:33 +02:00
raviks789
459f4198c3
Replace static inline styles with css class
...
The static inline styles are replaced with css class to avoid Content-Security-Policy violations.
2023-08-28 16:30:12 +02:00
Johannes Meyer
e3ebe109eb
Enable strict CSP if configured
2023-08-28 12:42:32 +02:00
Eric Lippmann
1cd1b500b3
Add helper to enable strict CSP
2023-08-28 12:42:32 +02:00
Sukhwinder Dhillon
3f3f0a1f67
GlobFilter::__construct(): Add possible param type hint
2023-08-23 11:37:00 +02:00
Yonas Habteab
a82e3b2320
Stylable: Fix strokeWidth
type hint declaration
2023-08-23 10:53:15 +02:00
Yonas Habteab
a965b5c44b
Fix argument type hints
2023-08-23 10:53:15 +02:00
raviks789
19151763af
UrlParams
: Fix parameter types of addValues()
method
2023-08-23 10:53:15 +02:00
raviks789
eed1b0a680
Url
: Fix type of parameter $values
of with()
method
2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon
fd984c5798
Loader: Fix Variable '$obj' is probably undefined
2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon
907486ccac
NavigationItemRenderer::setOptions(): Add missing return statement
2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon
66c4fc404e
LocalFileStorage::create(): Add missing return statement
2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon
ee9d139a3a
PhpDoc: Fix incorrect @param
and @return
type hints
2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon
5e671e02af
Wizard: Fix throw exception
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
302bf3ef54
Tabs: Add $tab_class
explicitly as non-dynamic property
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
30b91b9cd2
Tabs: Method render()
does not expect any param and import missing Exception class
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
29b2ed22b9
AbstractWidget: Method render()
does not expect any param
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
e2e582b095
Navigation/-Item: Fix Variable '$classPath' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
eeff32d4ce
AuthBackendController: Fix Variable '$backend' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
d8fe09f368
DirectoryIterator: Fix Variable '$path' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
bdddb88164
DbRepository: Function type()
does not exist, it should be called gettype()
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
d24cd0bf09
Root: Fix Variable '$child' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
be241d5b4e
LdapQuery: Remove obsolete code
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
a7a94d5307
FileReader: Method count()
require no param
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
bdd50bd97d
IniWriter: Variable $dangling is always set, but can be empty
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
80b76c6f7d
IcingaException: Fix Variable '$index' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
6baf3bc80a
DateFormatter: Fix Variable '$formatted' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
dbc8579747
Loader: Define variable $first in method scope
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
53b9774874
Documentation: Add $app, $loader
explicitly as non-dynamic property
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
d13f52c1b2
Documentation: Fix Variable '$obj' is probably undefined
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
a4744833bc
Command: Add PhpDoc
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
1c06aad72f
StaticAxis: Fix incorrect return type of methods
2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon
1271aa8480
(Calender|Logarithmic)Unit: Define return type of overridden methods from Iterator
interface
2023-08-23 10:53:14 +02:00