Skip to content

Commit 2e351ee

Browse files
committed
Set encoding, add modelVersion
1 parent 6dc3294 commit 2e351ee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/mdo/settings-security.mdo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
<description>encrypted master password</description>
4242
</field>
4343

44+
<field>
45+
<name>modelVersion</name>
46+
<version>3.0.0+</version>
47+
<type>String</type>
48+
<description>The version of the model</description>
49+
</field>
50+
4451
<field>
4552
<name>masterSource</name>
4653
<version>3.0.0+</version>

src/test/java/org/codehaus/plexus/components/secdispatcher/internal/DefaultSecDispatcherTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public class DefaultSecDispatcherTest {
4444

4545
private void saveSec(String masterSource) throws Exception {
4646
SettingsSecurity sec = new SettingsSecurity();
47+
sec.setModelEncoding(StandardCharsets.UTF_8.name());
48+
sec.setModelVersion(SecDispatcher.class.getPackage().getSpecificationVersion());
4749
sec.setMasterSource(masterSource);
4850
sec.setMasterCipher(AESGCMNoPadding.CIPHER_ALG);
4951

0 commit comments

Comments
 (0)