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
There is no valid reason for a resource to be listed as a sub-resource of itself. How did this situation occur?
Of course, still worth preventing the recursion. However, a fix should probably handle a resource being listed not just as its own sub-resource but also as a sub-resource of one of those resources, etc.
Thanks very much for confirming. I agree duplicate id could be prevented by nmos-cpp model itself or its free functions, need to think about most performant way to achieve this protection.
If a resource is within its subresource there is not limit on recursion:
nmos-cpp/Development/nmos/resources.cpp
Lines 148 to 152 in 6d64db8
Suggested patch:
Before the sugegsted patch stack is filled with (notice the same resource is erased recursively):
The text was updated successfully, but these errors were encountered: