From: helge Date: Fri, 24 Sep 2004 15:35:15 +0000 (+0000) Subject: improved SOPE security exceptions X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=151657e32b4a0ec0ba72a4d9702188f852dee06a;p=sope improved SOPE security exceptions git-svn-id: http://svn.opengroupware.org/SOPE/trunk@167 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 19af8e53..dcd8d506 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2004-09-24 Helge Hess + + * SoObjects/SoSecurityManager.m: improved reason string of security + exceptions (v4.3.44) + 2004-09-23 Helge Hess * v4.3.43 diff --git a/sope-appserver/NGObjWeb/SoObjects/SoSecurityManager.m b/sope-appserver/NGObjWeb/SoObjects/SoSecurityManager.m index fb1bd254..fc038e82 100644 --- a/sope-appserver/NGObjWeb/SoObjects/SoSecurityManager.m +++ b/sope-appserver/NGObjWeb/SoObjects/SoSecurityManager.m @@ -83,14 +83,22 @@ static int debugOn = -1; } - (NSException *)isPrivateExceptionForObject:(id)_object { - return [self makeExceptionForObject:_object - reason:@"tried to access private object"]; + NSString *r; + + r = [NSString stringWithFormat:@"tried to access private object " + @"(0x%08X, SoClass=%@)", + _object, [[_object soClass] className]]; + return [self makeExceptionForObject:_object reason:r]; } - (NSException *)missingPermissionException:(NSString *)_perm forObject:(id)_object { - return [self makeExceptionForObject:_object - reason:@"missing object permission"]; + NSString *r; + + r = [NSString stringWithFormat:@"missing permission '%@' on object " + @"(0x%08X, SoClass=%@)", + _perm, _object, [[_object soClass] className]]; + return [self makeExceptionForObject:_object reason:r]; } - (NSException *)isPrivateKeyException:(NSString *)_key ofObject:(id)_object { diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index 1920b68b..b626b7e3 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=43 +SUBMINOR_VERSION:=44 # v4.3.42 requires libNGExtensions v4.3.116 # v4.3.40 requires libNGExtensions v4.3.115