[icinga-checkins] icinga.org: icinga-web/master: * Added additional exception handling to dispatcher(import user) fixes #2267

git at icinga.org git at icinga.org
Thu Feb 23 13:10:05 CET 2012


Module: icinga-web
Branch: master
Commit: bba40e363c614a38e53169271406ccd1ee43a16b
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=bba40e363c614a38e53169271406ccd1ee43a16b

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Thu Feb 23 13:09:27 2012 +0100

* Added additional exception handling to dispatcher(import user) fixes #2267

---

 .../AppKit/models/Auth/DispatchModel.class.php     |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/modules/AppKit/models/Auth/DispatchModel.class.php b/app/modules/AppKit/models/Auth/DispatchModel.class.php
index beeb923..7b2bab3 100644
--- a/app/modules/AppKit/models/Auth/DispatchModel.class.php
+++ b/app/modules/AppKit/models/Auth/DispatchModel.class.php
@@ -314,7 +314,6 @@ class AppKit_Auth_DispatchModel extends AppKitBaseModel implements AgaviISinglet
                             array(),
                             array()
                         );
-
                         $user->save();
 
                         $this->log(
@@ -330,6 +329,8 @@ class AppKit_Auth_DispatchModel extends AppKitBaseModel implements AgaviISinglet
 
                 } catch (AgaviSecurityException $e) {
                     $this->log('Auth.Dispatch/import: Import failed (provider=%s,msg=%s)', $provider->getProviderName(), $e->getMessage(), AgaviLogger::ERROR);
+                } catch(Exception $e) {
+                   $this->log('Auth.Dispatch/import failed: Import failed: (provider=%s, msg=%s)', $provider->getProviderName(),$e->getMessage,AgaviLogger::ERROR);
                 }
             }
         }





More information about the icinga-checkins mailing list