Monotone-Parent: 72e1b73ecd70270e80d3a060fabe219cfcdd21cd

Monotone-Revision: 9f8af75f69269845084162a8844a51cf065ae8fc

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-19T16:53:51
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-11-19 16:53:51 +00:00
parent 972aa027d9
commit 81997a8c8a
2 changed files with 14 additions and 3 deletions
+9 -3
View File
@@ -30,6 +30,7 @@
#import <NGObjWeb/SoSecurityManager.h>
#import <NGObjWeb/WOContext+SoObjects.h>
#import <NGObjWeb/WOMessage.h>
#import <NGObjWeb/WORequest.h>
#import <NGExtensions/NSObject+Logs.h>
#import <GDLContentStore/GCSChannelManager.h>
#import <GDLContentStore/GCSFolderManager.h>
@@ -422,9 +423,14 @@ static SoSecurityManager *sm = nil;
{
NSMutableArray *ma;
NSException *error;
NSString *requestMethod;
BOOL isPropfind;
requestMethod = [[context request] method];
isPropfind = [requestMethod isEqualToString: @"PROPFIND"];
error = [self initSubFolders];
if (error)
if (error && isPropfind)
{
/* We exceptionnally raise the exception here because doPROPFIND:
will not care for errors in its response from
@@ -432,9 +438,9 @@ static SoSecurityManager *sm = nil;
disappearance of user folders in the SOGo extensions. */
[error raise];
}
error = [self initSubscribedSubFolders];
if (error)
if (error && isPropfind)
[error raise];
ma = [NSMutableArray arrayWithArray: [subFolders allValues]];