Delete Feature Leaves Rows in mp_ModuleDefinitionSettings

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/2/2011 9:53:00 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Delete Feature Leaves Rows in mp_ModuleDefinitionSettings

I have been playing a lot with adding, administration, and deleting of features in mojoPortal, basically so I better understand how it works. I ran into an issue where if I had a feature installed, delete it through Feature Installation and Configuration and then later re-installed it through the Setup process none of that Feature's Settings would be loaded (Would get NPE's when attempting to view the feature on a page, and on the ModuleDefinitionSettings.aspx page none of the modules settings would be listed). So I did some investigation in the database and found rows for the Feature's settings (matching FeatureGuid) in mp_ModuleDefinitionSettings, but the ModuleDefID value was for a ModuleDefinition that no longer was in the mp_ModuleDefinition table.

I did some testing and found that the row for the Feature is deleted in the mp_ModuleDefinition table when a feature is deleted via the Feature Installation and Configuration page, but not the rows in mp_ModuleDefinitionSettings. I would assume these rows should be deleted as well during this process, right?

FYI: I recreated this with code Revision 2580 (updated this morning).

Thanks!

9/2/2011 11:32:05 AM
Gravatar
Total Posts 18439

Re: Delete Feature Leaves Rows in mp_ModuleDefinitionSettings

Hi Kerry,

Thanks, I've added a to do item in our project tracker to fix this for the next release.

Best,

Joe

10/27/2011 9:33:25 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Delete Feature Leaves Rows in mp_ModuleDefinitionSettings

In the 2.3.7.0 version this is fixed with a MSSQL build, but this issue still exists in the MySql build. Not sure about other database configurations as I have not gone beyond MSSQL and MySql yet.

Thanks!

10/27/2011 9:53:28 AM
Gravatar
Total Posts 18439

Re: Delete Feature Leaves Rows in mp_ModuleDefinitionSettings

I just tested it here locally with MySql and it seems to work fine. I had a feature with one setting, I deleted the feature and the setting also disappeared.

Best,

Joe

10/27/2011 10:44:32 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Delete Feature Leaves Rows in mp_ModuleDefinitionSettings

Nevermind... I figured out what I was thinking was an issue, but it is not.

You must sign in to post in the forums. This thread is closed to new posts.