mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
skip nodeRequests with empty name or id
This commit is contained in:
parent
69dec41605
commit
1b7aa6475e
Binary file not shown.
@ -93,6 +93,7 @@ func (repo *Repo) _updateDimension(dimension string, newNode *content.RepoNode)
|
||||
|
||||
// ---------------------------------------------
|
||||
|
||||
// copy old datastructure to prevent concurrent map access
|
||||
// collect other dimension in the Directory
|
||||
newRepoDirectory := map[string]*Dimension{}
|
||||
for d, D := range repo.Directory {
|
||||
|
||||
@ -96,6 +96,11 @@ func (repo *Repo) getNodes(nodeRequests map[string]*requests.Node, env *requests
|
||||
path = []*content.Item{}
|
||||
)
|
||||
for nodeName, nodeRequest := range nodeRequests {
|
||||
|
||||
if nodeName == "" || nodeRequest.ID == "" {
|
||||
Log.Error("invalid node request", zap.Error(errors.New("nodeName or nodeRequest.ID empty")))
|
||||
continue
|
||||
}
|
||||
Log.Debug("adding node", zap.String("name", nodeName), zap.String("requestID", nodeRequest.ID))
|
||||
|
||||
groups := env.Groups
|
||||
|
||||
Loading…
Reference in New Issue
Block a user