12868 Commits

Author SHA1 Message Date
Johannes Meyer
6a5e12af04 LdapUserGroupBackend: Properly handle multi-valued names 2021-02-23 08:22:58 +01:00
Johannes Meyer
4d4f5b3a69 js: Don't serve scripts utilizing ECMA2016+ features
i.e. library javascript assets
2021-02-22 16:01:42 +01:00
Johannes Meyer
64d1574972 JavaScript: Load minified library assets if available 2021-02-22 15:09:59 +01:00
Johannes Meyer
5c5e83a700 loader.js: Don't use the regex DotAll modifier, it's ES2018+ only
i.e. not supported by Microsoft Edge
2021-02-22 15:07:55 +01:00
Johannes Meyer
9dae3bdf88 loader.js: Only abort GET autorefresh requests 2021-02-18 14:10:02 +01:00
sukhwinder33445
ab97b6fdf0
Enforce database as configuration backend (#4135) 2021-02-18 12:31:21 +01:00
Johannes Meyer
91d4669dcb
Merge pull request #4285 from Icinga/bugfix/curl-monitoring-service-show-4281
CheckNowCommandForm#init(): set submit label
2021-02-18 12:21:50 +01:00
Johannes Meyer
16be5f9572 Form: Add some todos regarding the handling of "api targets"
I've added them only for our future "migration" to `ipl\html\Form`.
We MUST NOT migrate this flawed handling of API targets.
2021-02-18 12:16:43 +01:00
Johannes Meyer
923060a91e
Merge pull request #4306 from Icinga/feature/authorization-enhancements
Authorization enhancements
2021-02-18 11:51:48 +01:00
Johannes Meyer
cc65164a67 Adjust global permissions 2021-02-18 11:11:39 +01:00
Johannes Meyer
429a70f05f Auth: Allow to ignore any and all restrictions 2021-02-18 11:11:39 +01:00
Johannes Meyer
155604e5b1 docs: Update security chapter 2021-02-18 11:11:39 +01:00
Johannes Meyer
6eb0139446 User: Move $user:local_name$ handling to class AdmissionLoader
This way it also adjusts the roles directly, and not just their
copies for the user object
2021-02-18 11:11:39 +01:00
Johannes Meyer
bdd0f204f0 Auth: Support single inheritance in roles 2021-02-18 11:11:39 +01:00
Johannes Meyer
87d741265e Auth: Add support for denied permissions 2021-02-18 11:11:39 +01:00
Johannes Meyer
b2f7c3788d test: Roles have permissions, not users 2021-02-18 11:11:39 +01:00
Johannes Meyer
c0541d70e9 Move permission match code from class User to Role 2021-02-18 11:11:39 +01:00
Johannes Meyer
57b4a31bc3 js: Don't navigate right when opening a modal
Isn't the prettiest fix. I would have liked to completely
remove the target preparation from `getLinkTargetFor`.
But this is the easiest fix since it's only for modals
that preparation is not desired. It's also the most
compatible change.
2021-02-17 12:51:26 +01:00
Johannes Meyer
712e74b3ce
Merge pull request #4317 from Icinga/fix/newlines-in-plugin-output-4297
Fix that subsequent escaped newlines are not transformed in plugin output
2021-02-15 11:34:32 +01:00
Johannes Meyer
e01f51ffc7 PluginOutput: Fix that subsequent escaped newlines are not transformed
fixes #4297
2021-02-15 11:23:36 +01:00
Johannes Meyer
a6e4307886 ModuleCommand: Disable dependency checks for the enable command
refs #4284
2021-02-12 09:56:00 +01:00
Johannes Meyer
60d61a8fe7 Response: Only apply showCompact=1 to redirects for GET requests 2021-02-09 15:59:42 +01:00
Johannes Meyer
defd8132aa form.js: Don't abort content updates in case of auto submits 2021-02-09 09:13:11 +01:00
Johannes Meyer
f2e53d420b js: Don't mark requests caused by __BACK__ as autorefresh
It's not an autorefresh and causes issues with form.js otherwise.
2021-02-05 16:38:17 +01:00
Johannes Meyer
11223aaf91
Merge pull request #4311 from Icinga/feature/report-downtime-removal-errors-4303
Show error notification if downtime removal is not successful
2021-02-03 15:50:09 +01:00
Johannes Meyer
77ca3e0c31 DeleteDowntimeCommandForm: Show error notification if not successful
resolves #4303
2021-02-03 15:42:13 +01:00
Johannes Meyer
5be964f989
Merge pull request #4304 from Icinga/do-not-abort-less-compilation-due-to-missing-vars-and-mixins
Do not abort LESS compilation due to missing variables and mixins
2021-01-25 09:20:21 +01:00
Johannes Meyer
f4a8599193 Introduce and utilize class Icinga\Util\LessParser 2021-01-25 09:15:53 +01:00
Johannes Meyer
36003df087
Merge pull request #4300 from Icinga/preserve-show-compact-during-redirects
Automatically preserve showCompact parameter when redirecting
2021-01-15 16:53:28 +01:00
Johannes Meyer
500696c767 Response: Set showCompact=1 on a redirect url..
..if compact layout has been requested.

refs #4164
fixes Icinga/icingadb-web#125
2021-01-15 16:50:00 +01:00
Johannes Meyer
a3db4d1a5b
Merge pull request #4293 from Icinga/fix/actioncontroller-setAutorefreshInterval
Drop new parameter from ActionController::setAutorefreshInterval()
2021-01-15 15:13:00 +01:00
Johannes Meyer
accbd9d847 ApplicationStateController: Initalize $autorefreshInterval
Instead of defining it with the setter. This prevents the
user's preferences from having an effect on this route.
2021-01-15 15:08:48 +01:00
Johannes Meyer
f1dd69d877 ActionController: Set autorefresh interval on view as late as possible
This allows to initialize property `$autorefreshInterval` and have it
take an effect on non-XHR requests.
2021-01-15 15:08:48 +01:00
Johannes Meyer
765557af69 ActionController: Drop new param in method setAutorefreshInterval() 2021-01-15 15:08:48 +01:00
Johannes Meyer
6024e84663
Merge pull request #4259 from Icinga/feature/add-input-enrichment-behavior
Add input enrichment behavior
2021-01-14 12:13:49 +01:00
Johannes Meyer
eff5c4e1d1 input-enrichment.js: Import required classes with require() 2021-01-14 11:57:24 +01:00
Johannes Meyer
dc5e39ef1c input-enrichment.js: Add method update() 2021-01-14 11:57:24 +01:00
Johannes Meyer
67de8a079a js: Initialize all types of input enrichments 2021-01-14 11:57:24 +01:00
Johannes Meyer
fcd0a0a698 complete.js: Keep IE11 compatibility 2021-01-14 11:57:06 +01:00
Johannes Meyer
4019522da1 loader.js: Disable inputs in forms not having role search
Previously only the `#search` input wasn't disabled, now also
the new filter input isn't. This is required to re-focus the
input after submission as disabled elements loose focus.
2021-01-14 11:57:06 +01:00
Johannes Meyer
3c41c14653 complete.js: Properly manage enrichment persistence 2021-01-14 11:57:06 +01:00
Johannes Meyer
d19a55311b complete.js: Keep used terms in case of an autorefresh 2021-01-14 11:57:06 +01:00
Johannes Meyer
5924d610a1 js: Provide additional parameters for events beforerender and rendered
beforerender: content, action, autorefresh, scripted
rendered: autorefresh, scripted
2021-01-14 11:57:05 +01:00
Johannes Meyer
cb24eafdb5 JavaScript: Load behavior complete.js 2021-01-14 11:57:05 +01:00
Johannes Meyer
dad0122f11 js: Introduce behavior complete.js 2021-01-14 11:56:06 +01:00
Johannes Meyer
5b000a2768 css: Only apply control specific form styles to .icinga-controls 2021-01-13 17:20:51 +01:00
Johannes Meyer
cb9ccc68f7 Url: Drop unwanted boolean parameters in method onlyWith() 2021-01-13 17:20:22 +01:00
Johannes Meyer
46769b9be2 js: Add .impact to .content if a control is automatically submitted 2021-01-13 17:19:39 +01:00
Johannes Meyer
6197d5f0af form.js: Only track real value changes and reset upon reverts 2021-01-13 17:19:18 +01:00
Johannes Meyer
ca74e14812 ui.js: Don't require jQuery objects in getUniqueContainerId 2021-01-13 17:18:55 +01:00