From ce0c5187ee09772812f3be9c525522e2d2b33cb6 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 16 Jun 2004 16:06:59 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/trunk@43 d1b88da0-ebda-0310-925b-ed51d893ca5b --- dbd/DSoAuthenticator.m | 10 ++++++++++ dbd/MainPage.m | 2 ++ dbd/README | 10 ++++++++++ 3 files changed, 22 insertions(+) diff --git a/dbd/DSoAuthenticator.m b/dbd/DSoAuthenticator.m index 5b872393..5d2eadeb 100644 --- a/dbd/DSoAuthenticator.m +++ b/dbd/DSoAuthenticator.m @@ -34,6 +34,8 @@ @implementation DSoAuthenticator +static BOOL debugOn = YES; + // TODO: might want to cache authenticator objects ... - (id)initWithHostName:(NSString *)_hostname port:(int)_port @@ -132,8 +134,16 @@ if ((ok = [adch openChannel])) [adch closeChannel]; + else + [self debugWithFormat:@"could not open the channel."]; return ok; } +/* debugging */ + +- (BOOL)isDebuggingEnabled { + return debugOn; +} + @end /* DSoAuthenticator */ diff --git a/dbd/MainPage.m b/dbd/MainPage.m index 18f18a91..db09860c 100644 --- a/dbd/MainPage.m +++ b/dbd/MainPage.m @@ -59,6 +59,8 @@ url = [url stringByAppendingString: [[self databaseName] stringByEscapingURL]]; } + if (![url hasSuffix:@"/"]) + url = [url stringByAppendingString:@"/"]; url = [[self context] urlWithRequestHandlerKey:@"so" path:url queryString:nil]; diff --git a/dbd/README b/dbd/README index 68d151d8..6bca429c 100644 --- a/dbd/README +++ b/dbd/README @@ -62,3 +62,13 @@ Tricks used collections - we could create an EOAdaptor and connect it to 'template1', but this would result in one unnecessary DB connection? + - Note: this is not a problem for methods which are registered in + products.plist - those are found in the SoClass. But the system + checks for some keys during its traversal process (and expects + getting a nil if the key does not exist). + +- when redirecting to the DSoHost object, we need to ensure that we add a slash + - otherwise the relative URLs will be broken! + - in theory SOPE should make a redirect to the default method, not sure why + this isn't happening + - ZideStore always makes such a redirect? -- 2.39.5