diff --git a/ChangeLog b/ChangeLog index 18126fe70..b3d437c12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,7 +2,13 @@ * Dropped worthless tools * Fixed tons of compiler warnings - + * SoObjects/Contacts/SOGoContactLDAPFolder.m + ([SOGoContactLDAPFolder appendObject:withBaseURL: + toREPORTResponse:]): We now check if we've got + an exception when looking up contacts and the LDAP-part + of SOGo is misconfigured and warn the admin (by adding + a log entry) about it. + 2009-03-31 Francis Lachapelle * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions diff --git a/SoObjects/Contacts/SOGoContactLDAPFolder.m b/SoObjects/Contacts/SOGoContactLDAPFolder.m index c7a406541..a55464386 100644 --- a/SoObjects/Contacts/SOGoContactLDAPFolder.m +++ b/SoObjects/Contacts/SOGoContactLDAPFolder.m @@ -1,6 +1,6 @@ /* SOGoContactLDAPFolder.m - this file is part of SOGo * - * Copyright (C) 2006-2008 Inverse inc. + * Copyright (C) 2006-2009 Inverse inc. * * Author: Wolfgang Sourdeau * @@ -35,6 +35,7 @@ #import #import #import +#import #import #import @@ -61,6 +62,12 @@ { component = [self lookupName: name inContext: context acquire: NO]; + if ([component isKindOfClass: [NSException class]]) + { + [self logWithFormat: @"Object with name '%@' not found. You likely have a LDAP configuration issue.", name]; + return; + } + [r appendContentString: @" \r\n"]; [r appendContentString: @" "]; [r appendContentString: baseURL]; diff --git a/sogo.spec b/sogo.spec index ef5b7b99b..5ceaadb20 100644 --- a/sogo.spec +++ b/sogo.spec @@ -59,19 +59,6 @@ This package contains the header files for SOPE's GDLContentStore library. SOPE is a framework for developing web applications and services. The name "SOPE" (SKYRiX Object Publishing Environment) is inspired by ZOPE. - -%package -n sope%{sope_major_version}%{sope_minor_version}-gdl1-tools -Summary: Tools (gcs_cat/gcs_gensql/gcs_ls/gcs_mkdir/gcs_recreatequick) -Group: Development/Libraries/Objective C -Requires: sope%{sope_major_version}%{sope_minor_version}-gdl1 -AutoReqProv: off - -%description -n sope%{sope_major_version}%{sope_minor_version}-gdl1-tools -Various tools around the GDLContentStore. - -SOPE is a framework for developing web applications and services. The -name "SOPE" (SKYRiX Object Publishing Environment) is inspired by ZOPE. - %package -n sope%{sope_major_version}%{sope_minor_version}-cards Summary: SOPE versit parsing library for iCal and VCard formats Group: Development/Libraries/Objective C @@ -193,14 +180,6 @@ rm -fr ${RPM_BUILD_ROOT} %{prefix}/Library/Headers/GDLContentStore %{prefix}/Library/Libraries/libGDLContentStore*.so -%files -n sope%{sope_major_version}%{sope_minor_version}-gdl1-tools -%defattr(-,root,root,-) -%{prefix}/Tools/gcs_cat -%{prefix}/Tools/gcs_gensql -%{prefix}/Tools/gcs_ls -%{prefix}/Tools/gcs_mkdir -%{prefix}/Tools/gcs_recreatequick - %files -n sope%{sope_major_version}%{sope_minor_version}-cards %{prefix}/Library/Libraries/libNGCards.so.* %{prefix}/Library/SaxDrivers-%{sope_major_version}.%{sope_minor_version}/*.sax