fix(dav): return 405 when collection already exists

See https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1
This commit is contained in:
Francis Lachapelle
2022-08-09 12:17:55 -04:00
parent efe78c5179
commit 95eecc402a
8 changed files with 42 additions and 21 deletions
@@ -3076,15 +3076,15 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
}
/* folder management */
- (BOOL) create
- (NSException *) create
{
BOOL rc;
SOGoUserSettings *userSettings;
NSMutableDictionary *calendarSettings;
NSException *error;
SOGoUser *ownerUser;
rc = [super create];
if (rc)
error = [super create];
if (!error)
{
ownerUser = [SOGoUser userWithLogin: [self ownerInContext: context]];
userSettings = [ownerUser userSettings];
@@ -3097,7 +3097,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
[userSettings synchronize];
}
return rc;
return error;
}
- (void) removeFolderSettings: (NSMutableDictionary *) moduleSettings