diff --git a/rest/api_test.go b/rest/api_test.go index 34716ba59e..fda718d33e 100644 --- a/rest/api_test.go +++ b/rest/api_test.go @@ -2746,6 +2746,10 @@ func TestNullDocHandlingForMutable1xBody(t *testing.T) { assert.Contains(t, err.Error(), "null doc body for doc") } +// TestDatabaseXattrConfigHandlingForDBConfigUpdate: +// - Create database with xattrs enabled +// - Test updating the config to disable the use of xattrs in this database through replacing + upserting the config +// - Assert error code is returned and response contains error string func TestDatabaseXattrConfigHandlingForDBConfigUpdate(t *testing.T) { base.LongRunningTest(t) const ( @@ -2794,6 +2798,9 @@ func TestDatabaseXattrConfigHandlingForDBConfigUpdate(t *testing.T) { } } +// TestCreateDBWithXattrsDisbaled: +// - Test that you cannot create a database with xattrs disabled +// - Assert error code is returned and response contains error string func TestCreateDBWithXattrsDisbaled(t *testing.T) { rt := NewRestTester(t, &RestTesterConfig{ PersistentConfig: true, diff --git a/rest/server_context.go b/rest/server_context.go index d799b044a7..0ac57ff935 100644 --- a/rest/server_context.go +++ b/rest/server_context.go @@ -1237,7 +1237,7 @@ func dbcOptionsFromConfig(ctx context.Context, sc *ServerContext, config *DbConf LocalJWTConfig: config.LocalJWTConfig, DBOnlineCallback: dbOnlineCallback, ImportOptions: *importOptions, - EnableXattr: config.UseXattrs(), // + EnableXattr: config.UseXattrs(), SecureCookieOverride: secureCookieOverride, SessionCookieName: config.SessionCookieName, SessionCookieHttpOnly: base.BoolDefault(config.SessionCookieHTTPOnly, false),