Hi there,
I have a site with a separate database.config file to change the database connection for a staging server:
The Database.config contains just the connection info, like so:
<?xml version="1.0"?>
<Globalsettings>
<System>
<Database>
<Password>
</Password>
<Type>
</Type>
<UserName>
</UserName>
<Database>Swift-122
</Database>
<SQLServer>.
</SQLServer>
<DWWebIP>
</DWWebIP>
<SQLServer2>
</SQLServer2>
<Database2>
</Database2>
<UserName2>
</UserName2>
<Password2>
</Password2>
<IntegratedSecurity>True</IntegratedSecurity>
<ConnectionString>
</ConnectionString>
<ConnectionString2>
</ConnectionString2>
</Database>
</System>
</Globalsettings>
That all works fine (and has been since forever I think).
However, when I now make changes to settings, they are stored in the database.config file, not in GlobalSettings.config. I changed for example the SMTP settings and now database.config looks as follows:
<?xml version="1.0"?>
<Globalsettings>
<System>
<Database>
<Password>
</Password>
<Type>
</Type>
<UserName>
</UserName>
<Database>Swift-122
</Database>
<SQLServer>.
</SQLServer>
<DWWebIP>
</DWWebIP>
<SQLServer2>
</SQLServer2>
<Database2>
</Database2>
<UserName2>
</UserName2>
<Password2>
</Password2>
<IntegratedSecurity>True</IntegratedSecurity>
<ConnectionString>
</ConnectionString>
<ConnectionString2>
</ConnectionString2>
</Database>
<MailServer>
<SaveAllMailsToDisk>True</SaveAllMailsToDisk>
<ByPassRecipients>True</ByPassRecipients>
<ByPassRecipientsSendTo>you@example.com</ByPassRecipientsSendTo>
<ByPassMailFrom>
</ByPassMailFrom>
</MailServer>
</System>
</Globalsettings>
Now I have my settings in two files which make it hard to refresh staging with a copy of production without changing the database config file.
Is this a bug? It reproduces for me on 9.16.3 and 9.17.2 at least.
Imar