Commit d246d73
committed
fix(identify-method): normalize identify_methods when stored as wrong type
When the Nextcloud provisioning API is used to set the identify_methods
config key, it always writes using setValueString(), causing a type
conflict when LibreSign later reads the key with getValueArray().
Catch AppConfigTypeConflictException in getSavedSettings(), read the
raw string value, delete the mistyped key and re-store it as an array
type. This allows invalid string values stored via provisioning API to
be transparently normalized on the next read.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 11f1ab1 commit d246d73
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
135 | 154 | | |
136 | 155 | | |
137 | 156 | | |
| |||
0 commit comments