-
Notifications
You must be signed in to change notification settings - Fork 123
gopts: Wrong type detected too late #4043
Comments
It does. But: The opts library seems to not copy the meta-keys from the keys within spec:/ to the keys within proc: . Once E.g. for @kodebach Do you remember if the meta-keys are not copied from spec:/ to proc:/ on purpose? Would the fix be to
|
(mentioning @markus2330 as discussed.) |
Addendum: libelektra/src/plugins/type/type.c Lines 305 to 312 in 6701d9e
The wrong type is then noticed later, when the exact key is retrieved using the |
The Can you verify whether |
No, the order is gopts, type, spec!
Call stacksgoptstypespec |
Well, that will never work... But in that case it also shouldn't work, if you manually edit the config file. I had a quick look at the source of libelektra/src/libs/elektra/kdb.c Lines 1436 to 1447 in 74012fa
immediately after the two calls to // ...
if (/* big condition with POSTGETSTORAGE and PROCGETSTORAGE */)
{
// other stuff
splitMergeBackends (split, ks);
// THE SNIPPET ABOVE
clearError (parentKey);
// other stuff
}
else
{
// other stuff
splitMergeBackends (split, ks);
// THE SNIPPET ABOVE
}
keySetName (parentKey, keyName (initialParent));
// SNIPPET REMOVED HERE
if (handle->globalPlugins[POSTGETCACHE][MAXONCE])
// ... If this doesn't work, I fear you'll have to wait until I've finished #3693 |
Yes, after this change, the order is now @kodebach Can you please make sure that this is indeed a good fix for the problem and create a PR for it? |
@markus2330 I've discovered another problem in |
Forked from #4029.
This is "Class 2: wrong type".
Steps to Reproduce the Problem
see #4029
Expected Result
see #4029
Actual Result
see #4029
System Information
see #4029
The text was updated successfully, but these errors were encountered: