From 151657e32b4a0ec0ba72a4d9702188f852dee06a Mon Sep 17 00:00:00 2001 From: helge Date: Fri, 24 Sep 2004 15:35:15 +0000 Subject: [PATCH] improved SOPE security exceptions git-svn-id: http://svn.opengroupware.org/SOPE/trunk@167 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 +++++ .../NGObjWeb/SoObjects/SoSecurityManager.m | 16 ++++++++++++---- sope-appserver/NGObjWeb/Version | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) 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 -- 2.39.5