This snapshot broke my enforced config. Apparently, there's no longer any way to say "Don't ever save this parameter in the regular config, and remove it if you find that it's been saved."
Here are the pieces of the file that it's choking on:
The rectangles in the UI node are saved as strings. Your enforced configuration sets each of them to an empty string, which resets the rectangle; that's ok.
The nodes X, Y, Width and Height in MainWindow store integer values though. An empty string is not a valid integer value. Therefore, an error message is displayed (and this also happens with previous KeePass versions like 2.50). If you want to reset these values, you can use a MergeNodeMode="Remove" attribute; see https://keepass.info/help/kb/config_enf.html#nm
I never really understood all the merge options; I guess I have some studying to do. For example, I've been thinking of trying to restrict some plugins similarly:
I've added this now.
Here's the latest development snapshot for testing:
https://keepass.info/filepool/KeePass_220325.zip
Thanks and best regards,
Dominik
This snapshot broke my enforced config. Apparently, there's no longer any way to say "Don't ever save this parameter in the regular config, and remove it if you find that it's been saved."
Here are the pieces of the file that it's choking on:
The rectangles in the
UInode are saved as strings. Your enforced configuration sets each of them to an empty string, which resets the rectangle; that's ok.The nodes
X,Y,WidthandHeightinMainWindowstore integer values though. An empty string is not a valid integer value. Therefore, an error message is displayed (and this also happens with previous KeePass versions like 2.50). If you want to reset these values, you can use aMergeNodeMode="Remove"attribute; seehttps://keepass.info/help/kb/config_enf.html#nm
Example:
Best regards,
Dominik
I never really understood all the merge options; I guess I have some studying to do. For example, I've been thinking of trying to restrict some plugins similarly:
But, because of the generic manner in which plugin settings are stored, I'm afraid to try this for fear that every plugin's
<Value>s would be removed.Enforcing specific items in
Custom(plugin settings) is possible. These items are identified by theirKeyvalue. See the section 'Lists':https://keepass.info/help/kb/config_enf.html#lists
Best regards,
Dominik