You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have an existing site that is upgraded to 8.0.x, you will get an exception when saving module settings. The exception doesn't really affect behavior unless you are using the module for a social group rather than standard forums.
Software Versions
DNN: 09.12.00
Module: 08.00.01
Version 8.0 added a new feature for banning users (PR #257), which required an additional security property "ModUser" to allow moderators to change users' settings (and ban them). This was added to security settings in the control panel (for standard forums) and module settings (for a social group forum) and to the configuration file used for new sites. The security settings are still stored as a module setting ("ForumConfig") -- even when the module is not used for a social group. However, for existing sites there were upgraded, the module setting was not updated. The result is that, when you switch the module settings from "standard" to "social group" on an upgraded site, you see a missing column on the right:
On a new install, it looks like this:
In addition, when the module settings are saved for an upgraded site, there is an exception in the admin log:
When run in the debugger, shows that this is caused by an incomplete list of security properties:
The text was updated successfully, but these errors were encountered:
@WillStrohl wanted to get an opinion on this one. I've figured this out and have a code change ready. But as always, this uncovers a different but related issue. There are four settings (this being one) that are stored (intentionally, if you look at the code) into TabModuleSettings but because they are properties in the module settings, they end up getting stored in both TabModuleSettings and ModuleSettings. My intuition is to leave them in ModuleSettings and change to no longer store in TabModuleSettings. Since the module is not sharable on other pages/tabs, storing settings in TabModuleSettings really doesn't make any sense. What do you think?
Describe the bug
If you have an existing site that is upgraded to 8.0.x, you will get an exception when saving module settings. The exception doesn't really affect behavior unless you are using the module for a social group rather than standard forums.
Software Versions
Version 8.0 added a new feature for banning users (PR #257), which required an additional security property "ModUser" to allow moderators to change users' settings (and ban them). This was added to security settings in the control panel (for standard forums) and module settings (for a social group forum) and to the configuration file used for new sites. The security settings are still stored as a module setting ("ForumConfig") -- even when the module is not used for a social group. However, for existing sites there were upgraded, the module setting was not updated. The result is that, when you switch the module settings from "standard" to "social group" on an upgraded site, you see a missing column on the right:
![image](https://private-user-images.githubusercontent.com/9553126/325236772-750fac50-47b0-40ea-a52c-b74949deec02.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwMDE1MDMsIm5iZiI6MTcyMTAwMTIwMywicGF0aCI6Ii85NTUzMTI2LzMyNTIzNjc3Mi03NTBmYWM1MC00N2IwLTQwZWEtYTUyYy1iNzQ5NDlkZWVjMDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMjM1MzIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Zjc5ODgwYTA3OTM1MzNkYzM0MDAyNjBjZjdhZmFmOTNjYTU0YTAxOTc4YmYzNTk1MGRiOWZhMWMyYWRiOWI5ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.vKN1iVynHVB_-R8-krNxZOaw6cYxtKKIlwgR-Uj0SMc)
On a new install, it looks like this:
![image](https://private-user-images.githubusercontent.com/9553126/325237033-180fb03f-d0c7-4e85-8515-f1758e612d9a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwMDE1MDMsIm5iZiI6MTcyMTAwMTIwMywicGF0aCI6Ii85NTUzMTI2LzMyNTIzNzAzMy0xODBmYjAzZi1kMGM3LTRlODUtODUxNS1mMTc1OGU2MTJkOWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMjM1MzIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2U0N2M0ZDEzMTYxZWFiMzZhMzBhZWRiMDU0NWVjOTM2ZDBjNjI5OTA5YzdlZGE4YTRhMmJhNzExMGUzMzU4NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.I8DqTUwfNCM5LbIuwXGy2IF-37vgQzFhw2rTz6bsI9Y)
In addition, when the module settings are saved for an upgraded site, there is an exception in the admin log:
![image](https://private-user-images.githubusercontent.com/9553126/325233665-f7fc7a5b-5419-4ab1-a2cf-2a28664b350b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwMDE1MDMsIm5iZiI6MTcyMTAwMTIwMywicGF0aCI6Ii85NTUzMTI2LzMyNTIzMzY2NS1mN2ZjN2E1Yi01NDE5LTRhYjEtYTJjZi0yYTI4NjY0YjM1MGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMjM1MzIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmE4YmU3MzgyZmI4ZTNiMzQwZjhhMDdhNmM0ZDlmNDRkNDVmNTdkY2ZjMzljZTY5NmUxNGFlZGFiMGUzYzM2MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.tJDe3RDATxmg2VPwPJhXT-lUUVKxuZOWT0DbKNqbbck)
When run in the debugger, shows that this is caused by an incomplete list of security properties:
![image](https://private-user-images.githubusercontent.com/9553126/325234398-a2924c19-ca06-4a7b-a15e-ad592da6928f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwMDE1MDMsIm5iZiI6MTcyMTAwMTIwMywicGF0aCI6Ii85NTUzMTI2LzMyNTIzNDM5OC1hMjkyNGMxOS1jYTA2LTRhN2ItYTE1ZS1hZDU5MmRhNjkyOGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMjM1MzIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmNhNmJiNTc1ZGY4MTBjYzU3Njk4NmYzNjU0Y2E4NDhjYTQyOTJmYWQ5ZTJjMjQ5MmFmMmExZDkwOWZiNjczNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.GBiuBdhbtBO5VXEMoLK4xOls770TDllxDzfrPkJfm80)
The text was updated successfully, but these errors were encountered: