Matthias Jentsch
c17cd2df34
Fix layout of GridChart
...
Introduce diagonal layout for x-axis, use bigger fonts and set the bar-rendering
to use a bigger default-width
fixes #5672
2014-02-18 18:44:42 +01:00
Eric Lippmann
8edf421c45
Replace debug log with respecting log priorities
...
refs #5638
fixes #5522
2014-02-18 14:46:15 +01:00
Markus Frosch
971a87c608
Fixed executable flags on normal files.
...
Refs #5040
2014-02-18 09:42:13 +01:00
Eric Lippmann
69a482d106
Auth: Connect only when a authentication backend is used. Fix log in error messages
...
refs #5506
refs #5638
fixes #4931
2014-02-18 09:33:33 +01:00
Eric Lippmann
35fc451115
Rework save preferences
2014-02-17 14:11:55 +01:00
Eric Lippmann
08d7edebfc
Decouple (automatic) preferences storage from user preferences (WIP)
...
DbStore, persisting preferences and tests not yet reworked.
2014-02-14 17:28:11 +01:00
Thomas Gelf
9647c37516
Fix LDAP DN concatenation, allow to define a search base
2014-02-14 14:38:52 +00:00
Thomas Gelf
7a02d278ce
We don't want others to care about our bootstrap dependencies
2014-02-14 14:12:12 +00:00
Thomas Gelf
d63fee064d
Make sure DB profiler is disabled per default to avoid memory leaks
2014-02-14 13:51:28 +00:00
Thomas Gelf
e115d8e893
Sample module metadata implementation
2014-02-14 13:48:51 +00:00
Thomas Gelf
cb923453c9
getCssFilename signature added
2014-02-14 13:42:57 +00:00
Thomas Gelf
6b027a0dc3
Make module CSS (less) filename accessible
2014-02-14 13:41:03 +00:00
Thomas Gelf
3cfa05d420
Static controller parameter must match registered route
2014-02-14 13:40:10 +00:00
Thomas Gelf
db6dbdd381
Autoloader should not fail on missing module library directory
2014-02-14 13:38:55 +00:00
Thomas Gelf
7dbede12fb
Remove obsolete register script traces
2014-02-14 13:37:45 +00:00
Thomas Gelf
c68bce2f3d
Embedded "light" web bootstrapping adapted new module loading
2014-02-14 13:22:15 +00:00
Thomas Gelf
6096b23a76
CLI fix for --watch, hide autocomplete documentation
2014-02-14 13:19:56 +00:00
Eric Lippmann
41ffa1d7c2
Fix PHP Fatal error: Class 'Icinga\Authentication\Membership' not found in ManagerTest.php
2014-02-14 12:11:49 +01:00
Eric Lippmann
d6768872c7
Revert "Change setup behavior of the AuthenticationManager to a lazy approach"
...
This reverts commit 226eb4eded
.
Conflicts:
library/Icinga/Authentication/Manager.php
This fix is not appropriate
refs #5506
2014-02-14 11:20:33 +01:00
Eric Lippmann
9cbfe88ea6
Do not exit the application when the logger has errors logged during bootstrap and stop preference loading on every request
...
Only fatals should exit the application.
Preferences must be loaded only once after login.
2014-02-14 10:56:29 +01:00
Eric Lippmann
3e04122e34
Do not set UTC in index.php
...
refs #5638
fixes #5530
2014-02-14 10:56:29 +01:00
Eric Lippmann
a630a96e01
Do not require ApplicationBootstrap in index.php
...
refs #5638
fixes #5529
2014-02-14 10:56:29 +01:00
Marius Hein
8a604f1c2c
Implement structures for permissions, restrictions and membership
...
refs #4624
2014-02-12 17:03:18 +01:00
Matthias Jentsch
342a9375de
Move pdf.css into different directory to prevent it from being loaded during
...
regular requests.
refs #5644
2014-02-12 15:44:02 +01:00
Matthias Jentsch
4e5569371f
Show only mainDetailGrid in pdf and move css fixes to less-directory
...
refs #4356
2014-02-12 12:11:49 +01:00
Matthias Jentsch
a064ef520d
Fix page-break on table rows
...
The dompdf library messes up the document layout, when page breaks reach over
several sites and will eventually even crash completely. Add a function to
split up tables in different chunks to fix this issue.
refs #4356
2014-02-12 12:11:49 +01:00
Matthias Jentsch
db0f61fff1
Convert the opened view to pdf
...
refs #4356
2014-02-12 12:11:49 +01:00
Matthias Jentsch
80488644d4
Add pdf export functions
...
refs #4356
2014-02-12 12:09:33 +01:00
Marius Hein
1a6d1a20fb
Fix: Simplify TopBar hook
...
refs #5597
2014-02-12 09:58:59 +01:00
Marius Hein
51188daa45
Implenent TopBar hook and status summary as hook in monitoring
...
refs #5597
2014-02-11 17:12:17 +01:00
Marius Hein
7b55f3a2bd
Implement register and run php scripts for modules
...
refs #5597
2014-02-11 17:12:17 +01:00
Eric Lippmann
1caacbf20f
Modules/Doc: Set rel="nofollow" on header links missing a user-specified id
...
refs #4820
2014-02-11 15:27:42 +01:00
Eric Lippmann
75577cec51
Modules/doc: Replace Michelf/Markdown with Parsedown
...
refs #4820
2014-02-11 15:09:03 +01:00
Thomas Gelf
89f6bedb10
Afoid flickering on CLI when using --watch
2014-02-07 10:23:29 +00:00
Thomas Gelf
3d636423c8
MenuItem renamed, small fixes
...
* One less namespace, better naming
* hasItem() added
* throws Exception when trying to access invalid Items
* Automagically creates missing parents when adding named childs
2014-02-03 14:16:17 +00:00
Johannes Meyer
56abc53a2b
Properly fix the default locale issue
2014-02-03 12:22:13 +01:00
Johannes Meyer
3aee13cd9b
Fix that en_US is used as default locale
...
Using this locale is not an issue, but it might not be available in a user's environment
2014-02-03 11:05:28 +01:00
Johannes Meyer
85639a3990
Add language selection to general config and preference forms
...
refs #5533
2014-01-30 13:17:15 +01:00
Johannes Meyer
005c52bb4a
Refactor translation cli commands and implement po-file compilation
...
refs #5533
2014-01-30 10:51:10 +01:00
Johannes Meyer
bd34669357
Refactor i18n implementation
...
One can now use $this->translate(msg) in a view or controller without the
need to pass the module domain (web&cli). Forms still need to be built
with _t(msg) and _mt(dom, msg).
refs #5533
2014-01-29 16:25:08 +01:00
Johannes Meyer
f4a00d24e5
Fix exception when a module has no menu configuration
2014-01-29 12:09:35 +01:00
Johannes Meyer
0b28bd31e5
Fix exception when the password of a valid ldap user is invalid
2014-01-29 10:41:17 +01:00
Eric Lippmann
77f7c9c1a6
Fix menu throwing an exception when a parent menu item does not exist
...
refs #3759
2014-01-28 14:43:43 +01:00
Eric Lippmann
48f5eebd53
Menu: Fix code compliance
...
refs #3759
2014-01-28 13:34:57 +01:00
Chris Rüll
c4a00b8d31
Menu Configuration
...
Rework the Menu.Ini files and Include a new class to create a menu inside the project
2014-01-28 13:34:57 +01:00
Eric Lippmann
71c3fd831f
Fix Call to a member function getPreferences() on a non-object when not logged in
2014-01-27 13:22:29 +01:00
Johannes Meyer
1b5b26c2bb
Add window awareness
...
refs #5510
2014-01-24 14:44:19 +01:00
Johannes Meyer
2bf9b96aab
Extend functionality of session namespaces and add tests
...
refs #5510
2014-01-24 14:44:19 +01:00
Johannes Meyer
efa23ad422
Allow sessions to be reopened
...
refs #5510
2014-01-24 14:44:19 +01:00
Johannes Meyer
cf778d4609
Implement session namespaces
...
refs #5510
2014-01-24 14:44:19 +01:00
Johannes Meyer
ac0b041523
Remove session handling from the authentication manager
...
refs #5510
2014-01-24 14:44:19 +01:00
Alexander Klimov
fc1fb60b01
Re-add benchmark helper
...
Enable benchmark via user preferences
resolves #5508
2014-01-24 12:20:13 +01:00
Thomas Gelf
e0af544c14
Multiple installations paths for all Bootstrappers
...
No longer instantiating moduleManager twice, now the CLI is also
able to benefit from multiple module installation paths. Modules
lists are now sorted.
2014-01-24 09:48:30 +00:00
Eric Lippmann
2242973568
XHR: Force redirect to login if session is expired
...
resolves #5507
2014-01-23 16:03:47 +01:00
Matthias Jentsch
5d8081ad09
Add support for multiple module installation paths
...
Read the module paths from the configuration file and add form fields
to edit the path from the web interface.
refs #4607
2014-01-22 18:28:19 +01:00
Thomas Gelf
bb1c560e22
Splitted module manager setup and module loading in bootstrap code
...
Allows different implementations (Web, Cli...) to behave differently
without duplicating code
2014-01-22 17:11:26 +00:00
Thomas Gelf
977b360b66
Url::create has been renamed, was still in use in File\Pdf
...
refs #4356
2014-01-22 15:20:04 +00:00
Thomas Gelf
6ef87f4644
Example showing restriction usage in the monitoring module
...
fixes #4108
2014-01-22 13:34:39 +00:00
Thomas Gelf
0f565aae6a
Added permission handlers and related sample config reader
...
Please see feature #4108 for sample usage
refs #4108
2014-01-22 13:06:59 +00:00
Thomas Gelf
32c897c0c9
Added some benchmark noise to DB queries
...
We need this to track down current performance issues, refs #5534
2014-01-22 12:36:44 +00:00
Thomas Gelf
ad7e4451eb
There is no "The" and no "Optional" Data class
2014-01-22 12:34:46 +00:00
Thomas Gelf
2288751aaf
Better error message in LDAP connection capability test
2014-01-22 12:30:02 +00:00
Matthias Jentsch
14ff354a76
Merge branch 'master' of git.icinga.org:icingaweb2
2014-01-22 13:08:54 +01:00
Thomas Gelf
5661e41c73
Trace option for CLI commands
...
Added --trace to show full stack trace if an exception is thrown
fixes #5555
2014-01-22 12:08:20 +00:00
Matthias Jentsch
226eb4eded
Change setup behavior of the AuthenticationManager to a lazy approach
...
The authentication manager should only try to set up all backends when
necessary. Remove the backend setup from the constructor and call it only when it is actually needed.
fixes #5506
2014-01-22 13:04:11 +01:00
Matthias Jentsch
85dbd86e5b
Change all UserBackends to a lazy connection-behavior
...
refs #5506
2014-01-22 13:04:11 +01:00
Thomas Gelf
ad56868af5
Fix Stream writer, has been broken with syslog fix
2014-01-22 12:02:25 +00:00
Thomas Gelf
3008527b41
Autocompletion for the BASH
...
Implemented in a dedicated Icinga Web CLI command, bash config snippet
is therefore pretty compact.
fixes #5520
2014-01-22 11:45:42 +00:00
Thomas Gelf
ba5ea18adf
CLI should load modules and not enable them
...
fixes #5527
2014-01-22 11:36:11 +00:00
Thomas Gelf
6e3e9b46a4
Last commit was incomplete
...
refs #4108
2014-01-22 10:31:24 +00:00
Thomas Gelf
c29e742570
Module configuration script can provide restrictions and permissions
...
Extended the module, created CLI commands showing available permissions
and restrictions, added a sample configuration.php to the monitoring
module.
refs #4108
2014-01-22 10:26:18 +00:00
Thomas Gelf
30208c3a30
Internally rename module registerscript to runScript
...
We will probably rename the 'register' script itself, as we need to
distinct between setup/configuration-related tasks and tasks that need
to be executed with each single click.
refs #4108
2014-01-22 09:54:59 +00:00
Thomas Gelf
aa1a2316cb
Avoid syslog-related exceptions
...
refs #5522
2014-01-22 09:26:45 +00:00
Marius Hein
afbe8f0fcb
Implement move on LDAP Connection
...
refs #5202
Conflicts:
library/Icinga/Protocol/Ldap/Connection.php
2013-12-17 14:32:48 +01:00
Marius Hein
f7324e73a3
User class bugfix
...
refs #5151
2013-11-28 17:31:41 +01:00
Marius Hein
263f09a94c
Add email column to extensible features
...
refs #5151
2013-11-28 17:23:55 +01:00
Marius Hein
93d233f37d
Make DbUserBackend extensible
...
Fix: Swap hmac secret key
refs #5151
2013-11-27 11:10:07 +01:00
Matthias Jentsch
cd0194e20f
Fetch and clean user messages lazily, to ensure that only shown messages are removed
...
This will make the code of the ConfigController way easier, as messages can be
send from everywhere and there is no need to consider consquences of
redirections.
refs #5100
2013-11-26 10:41:51 +01:00
Matthias Jentsch
2a0add3ec3
Fix messages in ConfigController
...
Store messages in the current user session to be able to fetch messages from
other controllers, so that the use can be redirected back to the index, instead
of staying in the original action
refs #5100
2013-11-20 19:10:38 +01:00
Matthias Jentsch
941ce6d68e
Fix bug that caused ajax-request to override values written to the session
...
Authentication/Session.php and its Subclasses do not have a open/closed -state
anymore. Read will refresh the session, write will always write the changes,
and opening/closing will be handled internally.
refs #5101
2013-11-20 12:01:40 +01:00
Matthias Jentsch
d65bd33205
Add configuration for resources
...
Add views and controller to handle resource configuration. Add form to edit
several resource types at once.
refs #4786
2013-11-13 18:12:00 +01:00
Matthias Jentsch
2cf154310b
Add controller to handle resource configuration
...
Add the controller, forms and views to handle the resource configuration.
refs #4786
2013-11-06 19:02:30 +01:00
Matthias Jentsch
bd38e998d7
Provide a cleaner interface for the Authentication Backends
...
refs #4786
2013-11-06 14:49:16 +01:00
Matthias Jentsch
59d4baff0b
Fix remaining references to DbUserBackend and refresh the documentation.
...
refs #4786
2013-11-06 13:31:07 +01:00
Matthias Jentsch
ad08691362
Extend resources.ini to contain all resources, including ldap
...
Remove the old calls to DbAdapterFactory and use ResourceFactory instead. Remove
the DbAdapterFactory and fix all unit tests that have been broken due to the changes.
Change the functionality of the ResourceFactory to also handle LdapConnections
resolves #4587
2013-11-06 10:20:15 +01:00
Eric Lippmann
2387380399
Statusdat: Set default cachepath to '/tmp'; disable caching when path is not writable
2013-10-28 12:46:19 +01:00
Eric Lippmann
a9086c5388
Redirect to /index after login
2013-10-23 16:02:08 +02:00
Eric Lippmann
ca1d50ae53
Rename Icinga 2 Web to Icinga Web 2
2013-10-23 15:11:06 +02:00
Jannis Moßhammer
1a95e48deb
Fix row style, add dashboard as default route
2013-10-23 14:20:32 +02:00
Jannis Moßhammer
8eea09ab53
Add default dashboard, fix componentLoader issue introduced before
2013-10-23 13:06:09 +02:00
Jannis Moßhammer
dc5182d4bf
CommandHandler now uses Status/HostView, fix sql IN-Query bug
2013-10-23 10:19:55 +02:00
Thomas Gelf
5d3fbd1cdf
We need a Livestatus factory
2013-10-22 20:21:03 +00:00
Thomas Gelf
e57b75b354
Cleaning up ugly path
2013-10-22 20:20:06 +00:00
Marius Hein
bd6c1c7864
Merge branch 'bugfix/installation-fixes-4941'
...
Important vagrant changes:
- Drop databases and users for icingaweb
- Run vagrant provision to apply changes
fixes #4941
2013-10-22 17:55:15 +02:00
Thomas Gelf
92ced41a77
A few new ANSI screen helpers
2013-10-22 15:52:13 +00:00
Marius Hein
dd214bbe16
Implement disable flag for authentication backends
...
refs #4941
2013-10-22 17:50:21 +02:00
Marius Hein
b9f03e27b7
Fix backend configuration while installation
...
refs #4941
2013-10-22 17:50:21 +02:00
Marius Hein
439168ecfb
Fix ldap connection port setting
...
refs #4941
2013-10-22 17:50:21 +02:00
Marius Hein
9ebd2c0478
Fix port for internal db
...
Fix db factory to use that port
refs #4941
2013-10-22 17:50:20 +02:00
Marius Hein
6017432750
Logger: Same default file names as installes
...
refs #4941
2013-10-22 17:50:20 +02:00
Thomas Gelf
a3099c82f2
CLI parameters override log config, writer is STDERR
2013-10-22 14:15:49 +00:00
Thomas Gelf
add8c4094b
Do not create STDIN/STDOUT streams
2013-10-22 14:15:49 +00:00
Jannis Moßhammer
16124989dd
Various style fixes, changed icon size, fixed show/service
2013-10-22 15:58:24 +02:00
Thomas Gelf
88223acc47
Allow 'false' lookup components, improve help
2013-10-22 13:52:00 +00:00
Thomas Gelf
b6ee15a37f
Allow access to "route" discovered by CLI Loader
2013-10-22 13:48:25 +00:00
Eric Lippmann
5abac6f2f4
Cli/Screen: Fix strict standard violation
2013-10-22 15:11:08 +02:00
Eric Lippmann
30b37aa1e5
Statusdat/Query::fetchRow: Fix strict standards violation
2013-10-22 15:11:07 +02:00
Thomas Gelf
a25cd80ec0
CLI interface: initial import
2013-10-22 12:26:45 +00:00
Thomas Gelf
b6e7d5c4c1
NRPE Protocol: shorter timeout, fail-safe disconnect
2013-10-22 12:22:20 +00:00
Jannis Moßhammer
f7c0eaa7c4
Fix/Reimplement dashboard
...
refs #4532
2013-10-22 12:10:12 +02:00
Jannis Moßhammer
c4f3e78c02
Fix filter behaviour, fix statusdat filter
...
refs #4469
2013-10-21 17:04:39 +02:00
Marius Hein
1a73747740
Implement bootstrap datepicker
...
refs #4929
2013-10-21 11:32:24 +02:00
Marius Hein
a49691068e
Add datepicker
...
refs #4929
2013-10-21 10:32:53 +02:00
Eric Lippmann
077c2a078e
Modules: Catch and log register.php exceptions
2013-10-20 16:40:57 +02:00
Matthias Jentsch
6062d5f716
Add the html-anchor from the url to the login redirection
...
Change the Url class to support html anchors and add JavaScript to
fetch the anchor from the URL, as it is regularly not send to the
server.
refs #4833
2013-10-20 16:31:56 +02:00
Eric Lippmann
36e9cdb549
Monitoring/register: Add status summary to the top bar
2013-10-20 16:08:53 +02:00
Jannis Moßhammer
278f975c48
Fix downtime query and schedule downtime
2013-10-20 16:00:56 +02:00
Jannis Moßhammer
f3bbf09bae
Status.dat query fixes and documentation after rebase
...
refs #3801
2013-10-20 15:16:44 +02:00
Jannis Moßhammer
f350011028
Add Status.dat backend
...
refs #3801
2013-10-20 15:16:44 +02:00
Marius Hein
53ab6dbbf1
Implement global command toggle form in process view
...
refs #4918
2013-10-19 15:28:51 +02:00
Marius Hein
73e8d60060
Implement global commands
...
resolves #4142
2013-10-19 13:25:18 +02:00
Matthias Jentsch
1d07a766d9
Add form classes to handle the configuration
...
Add a tri-state form element to handle the configuration flags and add the form
to the controllers
refs #3788
2013-10-18 16:44:02 +02:00
Jannis Moßhammer
6095a71a8d
CS Fixes
...
refs #4868
2013-10-17 21:40:02 +02:00
Jannis Moßhammer
4a95ba3468
Change url handling to detail on hashtag, add service filter
...
The url is now
http://%mainUrl%#%anchor%!detail=%detailUrl%
which allows us to better support IE and prevents
the detail url from appearing on the server side.
refs #4868
2013-10-17 19:55:00 +02:00
Jannis Moßhammer
c034a5eff8
Fix tests and a few member access issues
...
refs #3801
2013-10-17 19:55:00 +02:00
Jannis Moßhammer
44be5e85da
Refactoring and Query and IDO code,
...
the Monitoring/View code was completly dropped in favor of
the DataView implementations, as new Backends otherwise
would require to implement two seperate query logics
refs #3801
2013-10-17 19:54:58 +02:00
Jannis Moßhammer
d33cec78de
Semantic search implementation
...
- Only implemented for hosts as an example
- URL behaviour still has to be normalized
refs #4469
2013-10-17 19:52:52 +02:00
Jannis Moßhammer
dac61eda19
Implement Filter to IDO Sql parser
...
refs #4469
2013-10-17 19:52:25 +02:00
Jannis Moßhammer
24da98be83
Implement base filter library and tests
...
refs #4469
2013-10-17 19:52:25 +02:00
Marius Hein
c624921792
Add error handling for less compiler
...
refs #4892
2013-10-16 15:52:12 +02:00
Marius Hein
6f26df60f3
Apply less mixins
...
refs #4895
2013-10-16 15:37:44 +02:00
Marius Hein
cc8ecf262f
Reorganized styles
...
refs #4895
2013-10-16 14:49:03 +02:00
Marius Hein
460e0fe242
Implement on-the-fly less compilation
...
refs #4892
2013-10-16 12:00:09 +02:00
Marius Hein
7a406b313f
Adjusted buttons and a tags
...
refs #4869
2013-10-15 18:10:36 +02:00
Marius Hein
15f0f1aa59
Status view and icons
...
refs #4824
2013-10-14 13:27:43 +02:00
Eric Lippmann
1ea5778981
Temporary overwrite front controller's request when dispatching detail (WIP)
...
refs #4823
2013-10-14 12:57:26 +02:00
Eric Lippmann
d479ab3536
Widget/Tab: Allow additional a tag attributes
...
refs #4823
2013-10-14 12:57:26 +02:00
Eric Lippmann
a42668edb8
Fix tests
...
refs #4663
2013-10-09 09:20:17 +02:00
Eric Lippmann
b89d61add3
Monitoring: Refactor data views (WIP)
...
refs #4663
2013-10-09 09:20:16 +02:00
Matthias Jentsch
ec2ffcabdf
Add redirection to AuthenticationController
...
refs #4670
2013-10-04 15:43:02 +02:00
Marius Hein
c6838f67a1
Icinga/Chart: Fixes typo, doc, interfaces, inspection warnings
...
refs #4614
2013-09-25 16:32:28 +02:00
Jannis Moßhammer
7690b0ec7f
Add basic tests and meta attributes for graphs
...
refs #4614
2013-09-25 14:24:26 +02:00
Jannis Moßhammer
b78d1a236a
Finish graphing library and add documentation
...
refs #4614
2013-09-25 14:24:26 +02:00
Eric Lippmann
45bf37b085
Add library/Icinga/Chart skeleton
...
refs #4614
2013-09-25 14:24:26 +02:00
Marius Hein
e7696bec89
CS: Fixes for controllers: Static, Action, List and Show
...
refs #4611
2013-09-24 12:52:00 +02:00
Jannis Moßhammer
b4000d34fb
CS: Fixed styles, add codingStandardsIgnore for helper
...
refs #4611
2013-09-23 13:56:59 +02:00
Jannis Moßhammer
6d26240d6d
Add Main detail state to url, renderhelper, container tests
...
- The ActionController is now able to render a seperate detail view
- All list scripts select the currently active row from the detail view with
the 'active' class
- Autosubmit is now again attached to the onchange attribute (to prevent issues
when js can't load correctly)
- Logout is now recognized and causes a page refresh (will be made more generic)
- Add history mock for testing url changes
- Update all grids to implement the app/mainDetailGrid component
refs #4611
2013-09-23 13:56:57 +02:00
Eric Lippmann
24f64e6d30
Fix conflicts from rebase, using inet_aton with pgsql, PHP strict standards violations, CS compliance
...
refs #4255
2013-09-17 15:12:18 +02:00
Thomas Gelf
c9ce7c53b0
Paginator may be ready for QueryInterface
2013-09-17 10:46:32 +02:00
Thomas Gelf
c75a83d1d2
PDF fixes
2013-09-17 10:46:32 +02:00
Thomas Gelf
2ff5455018
First attempt to write a backend-independent Pivot-Table implementation
2013-09-17 10:41:02 +02:00
Thomas Gelf
dc34905315
Moved Data\Array to DataArray
2013-09-17 10:36:04 +02:00
Thomas Gelf
1eb0fcdff8
AbstractQuery implements QueryInterface, added addColumn, fixed sort
2013-09-17 10:36:04 +02:00
Thomas Gelf
86945152b4
QueryInterface, initial commit
2013-09-17 10:36:04 +02:00
Thomas Gelf
1d1214b8b9
Implemented conservative count, implemented count 'cache'
2013-09-17 10:36:04 +02:00
Thomas Gelf
0f48d0e2d6
Added fetchColumn, it was missing
2013-09-16 17:02:30 +02:00
Thomas Gelf
103ed266c5
Typo
2013-09-16 17:02:30 +02:00
Thomas Gelf
3908974698
We need to set Db fetchMode as it has previously been done
2013-09-16 17:02:30 +02:00
Thomas Gelf
d181e8018b
Prefs fail if configDir is not writable
2013-09-16 16:51:54 +02:00
Thomas Gelf
4237e3e53e
modules/README triggers pointless warning
2013-09-16 16:38:51 +02:00
root
72df979791
Zend_Db::FETCH_MODE is not available before ZF 1.11 (ZF-6620)
...
* TODO: Check whether passing 'fetchMode' really works?!
2013-09-16 16:38:50 +02:00
Eric Lippmann
f76f5b1c1d
Command: Fix docstring for excludeHost
...
refs #4580
2013-09-16 14:59:45 +02:00
Eric Lippmann
8baa2dec54
Command: Rename getParameters to getArguments
...
refs #4580
2013-09-16 14:46:18 +02:00
Eric Lippmann
a47db3497e
Rename BaseCommand to Command
...
refs #4580
2013-09-16 14:44:59 +02:00
Eric Lippmann
bf012fbd7e
Remove CommandType interface
...
Moved BaseCommand from the monitoring module to the application's library.
refs #4580
2013-09-16 14:39:14 +02:00
Johannes Meyer
7045148f93
Adjust submitpassivecheckresult command handling
...
refs #4580
2013-09-16 13:14:29 +02:00
Johannes Meyer
fef8370d5f
Adjust reschedulecheck command handling
...
refs #4580
2013-09-16 13:14:28 +02:00
Johannes Meyer
e9dc895b37
Adjust delay notification handling
...
refs #4580
2013-09-16 13:14:28 +02:00
Johannes Meyer
36424b508b
Adjust custom notification handling
...
refs #4580
2013-09-16 13:14:28 +02:00
Johannes Meyer
ba7f455643
Adjust schedule downtime handling (WIP)
...
refs #4580
2013-09-16 13:14:28 +02:00
Johannes Meyer
8022bf57af
Some doc fixes and other improvements
...
refs #4580
2013-09-16 13:14:28 +02:00
Eric Lippmann
cabe2ccbee
Widget/Tabs: Show caret
2013-09-05 14:15:29 +02:00
Eric Lippmann
a5908c9553
CS: Replace multiple empty lines with one
...
find application/ library/Icinga/ test/ modules/ -name *.php | xargs sed -i '/^$/N;/^\n$/D'
2013-09-04 18:36:10 +02:00
Eric Lippmann
b5e93afd86
CS: Add newline at end of file
...
find application/ library/ test/ modules/ -name *.php | xargs sed -i '$a\'
2013-09-04 18:28:35 +02:00
Eric Lippmann
35fd9fd391
CS: Remove whitespaces at end of line
...
find application/ library/ test/ modules/ -name *.php | xargs sed -i 's/\s\+$//'
2013-09-04 18:27:16 +02:00
Eric Lippmann
95e9117325
Fix SortBox not keeping Sort By input after submission
2013-09-04 18:21:10 +02:00
Jannis Moßhammer
7f4e1936f7
Fix trigger downtime default value issing, docstring fixes
...
refs #4580
2013-09-04 18:08:00 +02:00
Johannes Meyer
b74e264f01
Refactor comment command handling
...
- Refactored Comment class
- Dropped IComment interface
- Added AddCommentCommand class
- Updated CommentForm
refs #4580
2013-09-04 18:08:00 +02:00
Johannes Meyer
9a476f16f4
Re-refactor dispatch process of commands and acknowledgement handling
...
refs #4580
2013-09-04 18:08:00 +02:00
Johannes Meyer
79eb6588c5
Restructure dispatch process of commands
...
refs #4580
2013-09-04 18:07:59 +02:00
Eric Lippmann
05d08fb0b8
Fix Bootstrap typed wrong
...
refs #4601
2013-09-04 17:12:44 +02:00
Jannis Moßhammer
b1df9fa67d
Readd import in BaseTestCase that got lost during rebase
...
refs #4601
2013-09-04 15:22:01 +02:00
Jannis Moßhammer
d27e34cef8
Codestyle and Test fixes for SortBox
...
refs #4601
2013-09-04 15:22:00 +02:00
Jannis Moßhammer
57e66c247a
Add sort widget, change js path from module to app, small style fixes
...
refs #4601
2013-09-04 15:22:00 +02:00
Eric Lippmann
6afeaac6b2
Make 'ini' in descriptions uppercase, add comment to index.php about date_default_timezone_set
...
refs #4529
2013-09-04 14:56:55 +02:00
Jannis Moßhammer
c9673bfea3
Catch database errors, set fallback tz
...
The fallback timezone is set in case an error occurs
before setupTimezone() is entered. In this case the user
is presented with an warning about missing timezone settings
if the php.ini doesn't contain timezone information
refs #4529
2013-09-04 14:27:37 +02:00
Jannis Moßhammer
95bc8a2f4f
Add NullStore as preference fallback
...
refs #4529
2013-09-04 14:27:37 +02:00
Eric Lippmann
1b858cbdb4
Monitoring: Fix remaining usages of namespace Monitoring without Icinga\Module prefix
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
6f383abdd1
Tests: Let the BaseTestCase require db and form libraries once it's being required
...
Further add function t() and mt() to the global namespace when requiring BaseTestCase
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
74b9731df5
Remove auto class requirement from BaseTestCase::createForm()
...
The tests for the respective forms must require the form class.
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
092c5780ea
CS: Fix violations for overdue files
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
03f081ce33
Module/Autoloader: Register Icinga\Module\<module> namespace
...
refs #4586
2013-09-04 11:21:11 +02:00
Jannis Moßhammer
a0e63a1320
Fix error message and move validation in own DateTimeValidator
...
refs #4581
refs #4632
2013-09-04 11:06:36 +02:00
Johannes Meyer
23f0962da1
Adjust command forms and tests
...
Made those command forms using the DateTimePicker
element compatible with its new validation.
refs #4581
2013-09-03 09:27:02 +02:00
Johannes Meyer
368bd3c9c7
Refactor datetime validation
...
The DateTimePicker form element needs to know from now on,
how user input can be formatted when validating.
refs #4581
2013-09-03 09:27:02 +02:00
Johannes Meyer
1a003f8c8b
Move configuration and preference handling to Form base class
...
Moved setConfiguration, setUserPreferences and getUserPreferences
to our Form base class due to some redundancies.
refs #4581
2013-09-03 09:27:02 +02:00
Eric Lippmann
b09b3676de
Rename determineAuthenticationState to requiresLogin
...
refs #4572
2013-09-02 18:42:05 +02:00
Jannis Moßhammer
9f923b4940
Fix pagination and remove ModuleController, rename handlesAuth
...
This commit introduces the following changes:
- Count is now performed after joins are added to the selection query,
therefore returning the correct number
- MonitoringControllerTest now needn't to mock ModuleActionController (which is now removed)
- handlesAuthentication is now requiresAuthentication
- Redirection to login is now directly handled in the ActionController constructor,
so we don't need to overwrite the preDispatch method
refs #4589
refs #4591
refs #4572
2013-09-02 18:42:05 +02:00
Jannis Moßhammer
aac1d69ed2
Fix count query ignoring joins
...
Count queries were created before the required columns were added,
so they often returned more values than a resultset really offers
refs #4589
2013-09-02 18:42:05 +02:00
Marius Hein
b99b9a7ca8
ModuleManager: Throw module dir exceptions later
...
This is important for bootstrap to detect configuration
errors.
refs #4604
2013-09-02 12:52:51 +02:00
Marius Hein
b6eb19ce6a
Module enable/disable: Better error messages
...
refs #4604
2013-09-02 12:52:51 +02:00
Marius Hein
439fade88d
Simplify SystemPermissionException
...
refs #4606
2013-09-02 12:52:51 +02:00
Jannis Moßhammer
18d021d104
Fix logger not testing if it's disabled
...
refs #4595
2013-09-02 12:16:05 +02:00
Jannis Moßhammer
c5fde2324e
Generalize form handling in Icinga\Web Form & Tests
...
configForm.js is now form.js and applied on all forms,
the autosubmit is now a special attribute for input fields,
so the PHP code doesn't create JS snippets anymore
refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer
978b3519f6
Add configform js component (will be renamed later)
...
refs #4622
2013-09-02 10:59:05 +02:00
Marius Hein
446da85a88
UserBackend: Fix interface in test
...
refs #4593
2013-08-30 15:32:06 +02:00
Marius Hein
e2e744a424
Fix authentication chain
...
refs #4593
2013-08-30 14:46:52 +02:00
Marius Hein
845f181001
CS: Fix UserBackend interface
...
refs #4641
2013-08-30 12:50:57 +02:00
Marius Hein
bed759d597
CS: Fix session classes
...
refs #4641
2013-08-30 12:50:57 +02:00
Marius Hein
7765877318
CS: Fix LdapUserBackend
...
refs #4641
2013-08-30 12:50:57 +02:00
Marius Hein
c77a48ff1f
CS: Fix DbUserBackend
...
refs #4641
2013-08-30 12:50:57 +02:00
Marius Hein
7c8252a983
Rename class Credentials to Credential
...
refs #4641
2013-08-30 12:50:57 +02:00
Marius Hein
83d20a6175
AuthManager: Fix tests
...
refs #4641
2013-08-30 12:50:28 +02:00
Marius Hein
dfb7238b81
AuthManager: Implement backend chain
...
refs #4641
refs #4590
refs #4593
2013-08-30 12:50:28 +02:00
Johannes Meyer
28bd27d904
Fix user preference access when not authenticated
...
refs #4609
2013-08-29 15:08:31 +02:00
Johannes Meyer
f4272f482d
Apply user defined timezone during bootstrap
...
refs #4609
refs #4552
2013-08-29 15:08:31 +02:00
Johannes Meyer
a82abbe2f6
Fix misplaced/redundant imports
...
refs #4648
2013-08-29 14:45:02 +02:00
Marius Hein
7be7335bdd
Preferences: Fix error messages and convenience configuration
...
refs #4648
2013-08-29 14:45:02 +02:00
Jannis Moßhammer
2c97ab26a4
Code style, Form tests and bugfixes
...
This commit summarizes the bugfixes made in this branch. As the frontend the fixes required a lot of stuff to be fixed afterwards and #4602 was used as a larger example regression test, this affects a few tickets:
- (Bug 4491) Frontend tests will hang randomly: CasperJS now operates on the installed version, so this shouldn't happen anymore
- (Bug 4602) Configuration Interface - Authentication: Backends moved when pushing enter: The authentication interface is reworked and does not persist a state over pages
- (Bug 4605) /tmp should not be the default log path: Now it is the application relative var/log path
- (Bug 4606) Configuration: Show message that changes were saved successfully: Implemented and tested with casperjs
- (Bug 4641) Installation/Testing fix configure/make: This has been reworked
- (Bug 4642) Allow Application placeholder in config: This was required for implementimg 4605
- (Bug 4643) Application doesn't work with older Zend Versions: A fallback __call has been implemented for this
refs #4491
refs #4602
refs #4605
refs #4606
refs #4641
refs #4642
refs #4643
2013-08-29 11:48:33 +02:00
Jannis Moßhammer
ec359c76d8
Chmod after file creation
...
This allows the www-group to edit logs and preferences
refs #4491
2013-08-29 11:48:33 +02:00
Jannis Moßhammer
3d3fa45838
Fix ActionController compatibility with older Zend Versions
...
refs #4643
2013-08-29 11:48:33 +02:00
Jannis Moßhammer
0b515e39ac
Implement {app} placeholder and Icinga\Config::resolvePath()
...
refs #4642
2013-08-29 11:48:32 +02:00
Jannis Moßhammer
d0ac97f335
Configure fixes, regression test for 4606
...
The configure routine still has to be improved, right now unused
authentication backends are commented out
refs #4491
refs #4606
refs #4640
2013-08-29 11:48:32 +02:00
Jannis Moßhammer
4e41ce5cdc
Add logic validation for database authentication backends
...
refs #4546
2013-08-29 11:48:32 +02:00
Jannis Moßhammer
17e6402aa9
Split up authentication form, logic connectivity check
...
refs #4606
refs #4622
refs #4602
refs #4546
2013-08-29 11:48:29 +02:00
Jannis Moßhammer
4527aaf57a
Smaller fixes in phpdoc style
...
refs #4566
2013-08-28 14:42:31 +02:00
Johannes Meyer
7fab739efd
Fix styles in Form.php
...
refs #4566
2013-08-28 09:08:37 +02:00
Johannes Meyer
13e4efa221
Make use of the helptext decorator if suitable
...
Refactored some uses of the form element Note so that
each one is properly attached to its input element.
refs #4566
2013-08-28 08:57:46 +02:00
Jannis Moßhammer
e3f9d1b6bd
Replace "\n" with PHP_EOL
...
refs #4615
2013-08-27 18:49:30 +02:00
Matthias Jentsch
874b163009
Fix comment padding and some coding-style issues in the test classes
...
refs #4615
2013-08-27 18:28:21 +02:00
Matthias Jentsch
5b58d5488b
Add support for section reordering and formatting options to the PreservingIniWriter
...
The PreservingIniWriter needs to be aware of the the order of the sections and
update the section declarations in the configuration file when the order has
changed. Therefore add functions to correctly reorder sections.
refs #4615
2013-08-27 18:28:21 +02:00
Marius Hein
c5bea04909
BaseTestCase: User response, CS and typo
...
refs #4608
2013-08-27 10:37:35 +02:00
Marius Hein
dc71885eac
Fix icinga application forms using BaseTestCase now
...
refs #4608
2013-08-26 13:25:20 +02:00
Marius Hein
1130376ad6
BaseTest: Create class and tests
...
refs #4608
2013-08-26 11:15:27 +02:00
Marius Hein
0c69dbf482
CS: Fix for DbAdapter, Auth/Manager and Preferences/DbStore
...
refs #4596
2013-08-26 11:09:37 +02:00
Matthias Jentsch
49cf62a9dc
Fix database related bugs
...
Fix coding standards in database schemes. Use DbAdapterFactory in all unit
tests instead of creating own adapters. Fix DbUserBackend and DbStore to use
FETCH_OBJ, instead of FETCH_ASSOC, to handle it consistently in the whole
application. Remove unnecessary table columns from the "account" scheme.
refs #4577
refs #4578
refs #4596
refs #4599
refs #4627
2013-08-26 11:09:37 +02:00
Marius Hein
afc302d45c
Bootstrap: Safe application start
...
Log exceptions and inform user if something goes wrong.
refs #4625
refs #4592
2013-08-23 17:28:13 +02:00
Marius Hein
2debc7826b
Deactivate group backend initializing
...
refs #4624
2013-08-23 17:28:12 +02:00
Marius Hein
c65f9d51ee
Fix static preferences path overwriting configuration path
...
refs #4598
2013-08-23 17:28:12 +02:00
Jannis Moßhammer
895976550c
Fix templates, capitalization and icons in php files
...
refs #4550
refs #4584
2013-08-23 10:28:48 +02:00
Jannis Moßhammer
015a914aab
Fix template code style, use Bootstrap 3, remove icons
...
- Icons have now the {{XY_ICON}} format
- custom classes are removed
- A few typos are fixed
- Capitalization
refs #4550
refs #4621
refs #4584
2013-08-23 10:28:48 +02:00
Jannis Moßhammer
dc2aad75d1
Modify application templates for proper bootstrap usage
...
refs #4550
2013-08-23 10:27:16 +02:00
Eric Lippmann
d813ca62c5
Db: Set MySQL server SQL modes to behave closer to ANSI SQL
...
Was already implemented but someone dropped it accidentally
2013-08-21 14:40:37 +02:00
Eric Lippmann
cd2ae0450a
Config: Hint that moduleFolder directive is currently not in use
...
refs #3776
2013-08-21 14:22:31 +02:00
Eric Lippmann
8ac914b29a
Fix ActionController missing use Icinga\Web\Url
...
refs #3776
2013-08-21 14:22:31 +02:00
Eric Lippmann
edb06ea8ea
CS: Fix viloations for touched files in branch feature/backend-configuration-ui-3776
...
refs #3776
2013-08-21 14:22:31 +02:00
Jannis Moßhammer
83d053965f
Implement monitoring instance and backend configuration forms
...
refs #3776
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
4c5d26fe9a
Fix Codestyle/PHPDoc, fix configPath being Overwritten
...
Also removed possibility to disable debugging as there's no use case for this
refs #4525
refs #4598
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
a6ff6ecadd
Fix Codestyle/PHPDoc, fix configPath being Overwritten
...
Also removed possibility to disable debugging as there's no use case for this
refs #4525
refs #4598
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
972bc9853e
Configuration interfaces for logging, authentication and general configuration
...
- Added HelpText decorator
- Added Time and DateFormatValidator
- Added tests
refs #3777
2013-08-21 14:22:30 +02:00