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
The ComplexDataFacade for the Dataset is returning wrong empty values in the getArrayValues method I suppose.
If there is no value for the given property the values array is added by an empty array. This is not correct, the value should be skipped in that case.
In case there is a value (from preg_match) this is added to the values array and this is a string value (preg_match). So an empty array does not match a string value, an empty string would maybe be okay. But I think, the value should just be skipped in that case.
Describe the bug
I cannot give an indication whether this is somewhere making problems currently in DKAN. I came across this in #4115, where it poses an issue in some circumstances. Nonetheless I think the logic is generally not correct (string vs array) and it is not caused specifically by #4115.
Steps To Reproduce
no way (that I know of) to reproduce this in plain DKANv2
Expected behavior
The text was updated successfully, but these errors were encountered:
The ComplexDataFacade for the Dataset is returning wrong empty values in the getArrayValues method I suppose.
If there is no value for the given property the values array is added by an empty array. This is not correct, the value should be skipped in that case.
In case there is a value (from preg_match) this is added to the values array and this is a string value (preg_match). So an empty array does not match a string value, an empty string would maybe be okay. But I think, the value should just be skipped in that case.
Describe the bug
I cannot give an indication whether this is somewhere making problems currently in DKAN. I came across this in #4115, where it poses an issue in some circumstances. Nonetheless I think the logic is generally not correct (string vs array) and it is not caused specifically by #4115.
Steps To Reproduce
no way (that I know of) to reproduce this in plain DKANv2
Expected behavior
The text was updated successfully, but these errors were encountered: