12884 Commits

Author SHA1 Message Date
Johannes Meyer
07251e6d5e modal.js: Really only close the modal if the user clicks outside of it
The click event fires only after the mouse button is released, which
may happen on the outside, after the user tried to select something
and overrun accidentally. A close is then not desired as the user
may loose input. The mousedown event fires right when the button
is pressed and suffices on the outside of the modal.
2021-03-09 08:52:10 +01:00
Johannes Meyer
7790a72efa js: Only close a modal if an ESC press is not handled otherwise 2021-03-09 08:52:10 +01:00
Johannes Meyer
59e6ec4035 JavaScript: Ensure that $baseFiles are loaded first if minified 2021-03-09 08:52:10 +01:00
Johannes Meyer
b4531b6b45 js: Add support for the search-editor input enrichment
Also makes it possible to enrich inputs in modals
2021-03-09 08:52:10 +01:00
Johannes Meyer
4a2ab4740c JavaScript: Enhance DEFINE_RE to broaden supported syntaxes 2021-03-09 08:52:10 +01:00
Johannes Meyer
b17be671bc js: Accept non-jQuery nodes in method EventListener.bind() 2021-03-09 08:52:10 +01:00
Johannes Meyer
e4ff391b1a js: Trigger a rendered event if SearchBar editor is opened 2021-03-09 08:52:10 +01:00
Johannes Meyer
f44ea884bd js: Suspend auto refresh once search-bar enrichment opens its editor 2021-03-09 08:52:10 +01:00
Johannes Meyer
1f29c4a2fe js: Allow to suspend auto refresh for individual containers 2021-03-09 08:52:10 +01:00
Johannes Meyer
4366f93127 js: Support new input enrichment type search-bar 2021-03-09 08:52:10 +01:00
Johannes Meyer
027e468943 js: Update a form's action if it's a auto submit response with X-Icinga-Location-Query 2021-03-09 08:52:10 +01:00
Johannes Meyer
43dd89f946 js: Also support _self and such target ids for response header X-Icinga-Container
The server can now instruct the client to render the response in a different container
2021-03-09 08:52:10 +01:00
Johannes Meyer
6e8ca9cdda js: Add method identifyLinkTarget() to the loader 2021-03-09 08:52:10 +01:00
Johannes Meyer
4f57aa68cd js: Transmit X-Icinga-Container for all requests
This tells the server which container the client will use
to render the response in
2021-03-09 08:52:10 +01:00
Johannes Meyer
293021b200
Merge pull request #4276 from Icinga/fix/handling-of-multi-valued-ldap-attributes-4213
Fix handling of multi valued ldap attributes
2021-02-23 08:35:01 +01:00
Johannes Meyer
d6722c7772 LdapQuery: Compare multi-valued attributes as rfc2891 suggests 2021-02-23 08:22:58 +01:00
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