You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
As discussed in #4555, the toml storage plugin fails silently, when setting unknown meta keys
Steps to Reproduce the Problem
$ sudo kdb mount test.toml user:/tests/storage/types toml type# RET: 0
$ kdb meta-set user:/tests/storage/types blue blah
# RET: 0
$ kdb meta-get user:/tests/storage/types blue
Key not found
# RET: 2
Expected Result
Should either print an error on kdb meta-set user:/tests/storage/types blue blah and return a non 0 exit code or kdb meta-get user:/tests/storage/types blue should return blah
Actual Result
kdb meta-set user:/tests/storage/types blue blah fails silently and kdb meta-get user:/tests/storage/types blue returns an key not found error
As discussed in #4555, the toml storage plugin fails silently, when setting unknown meta keys
Steps to Reproduce the Problem
Expected Result
Should either print an error on
kdb meta-set user:/tests/storage/types blue blah
and return a non 0 exit code orkdb meta-get user:/tests/storage/types blue
should return blahActual Result
kdb meta-set user:/tests/storage/types blue blah
fails silently andkdb meta-get user:/tests/storage/types blue
returns an key not found errorSystem Information
Operating System:
Arch Linux, Kernel 5.19.13-arch1-1
kdb and plugins version
# kdb --version KDB_VERSION: 0.9.11 SO_VERSION: 5
Relevant Source Code
This happens because both the type and toml plugins only look for meta keys if they are of use for said plugins. If not, they are simply ignored.
libelektra/src/plugins/type/type.c
Line 372 in cf4b6f3
libelektra/src/plugins/type/type.c
Line 65 in cf4b6f3
libelektra/src/plugins/toml/prepare.c
Line 263 in cf4b6f3
libelektra/src/plugins/toml/prepare.c
Line 167 in cf4b6f3
The text was updated successfully, but these errors were encountered: