Error with custom editor options

Mar 16, 2010 at 4:23 PM

I found that clicking "Custom editor options" threw an error: "StartIndex cannot be less than zero. Parameter name: startIndex"

I tracked this down to the way in which toolbar sets are recorded in the HostSettings table.

HostSettings > SettingName has a max length of 512 characters.

Strangely the string of all my security roles was being truncated after 256 characters.

It turned out that the sprocs "AddHostSetting" and "UpdateHostSetting" were only accepting values 256 characters in length.

I have fixed the problem by setting the SettingName field to being nVarChar(max) and updating the sprocs accordingly.

Is there somewhere else that you can store the list of security roles? or perhaps store them by id and not their name?



Mar 16, 2010 at 6:30 PM

Thats funny i was thinking about this problem this morning, and now you report it.

I am changing the way the editor store the settings, maybe an own sql table. I report back when i find a solution

Mar 19, 2010 at 1:47 PM
Ok the roles are now stored separately and as ids in the next version (1.9), so this is not an issue anymore.
Mar 19, 2010 at 3:30 PM

That's great! - Thanks very much :)