Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building a new asset that has more than one source duplicate the asset #12

Open
z1pti3 opened this issue Jun 27, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@z1pti3
Copy link
Owner

z1pti3 commented Jun 27, 2021

If you build a new asset for the first time that has more than one source it results in the asset being duplicated until the assetUpdate for the same asset is run again. When assetUpdate is run again it removes the duplicate but does not initially merge the results leaving the asset with only one source.

You can recreate this issue with:
image

Exported Flow

{ "flow": [ { "flowID": "7035e62c-9a35-4123-851e-02e12f9794a7", "next": [ { "flowID": "0440295a-694c-4a7f-ac9d-dd71def8524e", "logic": true, "order": 0 }, { "flowID": "60ad1a35-35ea-4418-85d9-fb61d858db17", "logic": true, "order": 0 } ], "type": "trigger", "subtype": "testFireTrigger", "triggerID": "60ce076f2e3d63f71e417895" }, { "flowID": "0440295a-694c-4a7f-ac9d-dd71def8524e", "next": [], "type": "action", "subtype": "assetUpdate", "actionID": "60ce07ce2e3d63f71e41789a" }, { "flowID": "60ad1a35-35ea-4418-85d9-fb61d858db17", "type": "action", "next": [], "actionID": "60ce081e2e3d63f71e41789f" } ], "action": { "60ce07ce2e3d63f71e41789a": { "className": "assetUpdate", "_id": "60ce07ce2e3d63f71e41789a", "assetEntity": "Some Company", "assetFields": { "ip": "%%data[event][ip]%%", "os": "%%data[event][os]%%" }, "assetName": "%%data[event][name]%%", "assetType": "computer", "comment": "", "createdBy": "", "delayedUpdate": 0, "logicString": "", "name": "Update Computer Asset AD", "scope": 0, "seen": [], "sourcePriority": 10, "sourcePriorityMaxAge": 86400, "updateSource": "Active Directory", "updateTime": "%%now()%%", "varDefinitions": {} }, "60ce081e2e3d63f71e41789f": { "className": "assetUpdate", "_id": "60ce081e2e3d63f71e41789f", "assetEntity": "Some Company", "assetFields": { "ip": "%%data[event][ip]%%", "user": "%%data[event][user]%%", "os": "%%data[event][os]%%" }, "assetName": "%%data[event][name]%%", "assetType": "computer", "comment": "", "createdBy": "", "delayedUpdate": 0, "logicString": "", "name": "Update Computer Asset AV", "scope": 0, "seen": [], "sourcePriority": 20, "sourcePriorityMaxAge": 86400, "updateSource": "Microsoft Defender", "updateTime": "%%now()%%", "varDefinitions": {} } }, "trigger": { "60ce076f2e3d63f71e417895": { "className": "testFireTrigger", "_id": "60ce076f2e3d63f71e417895", "attemptCount": 0, "autoRestartCount": 3, "clusterSet": 0, "comment": "", "concurrency": 0, "createdBy": "", "events": [ { "name": "ws-19522", "ip": "172.16.7.44", "user": "john.doh", "os": "Windows 10 Pro" }, { "name": "ws-72512", "ip": "172.16.1.104", "user": "tim.smith", "os": "Windows 7 Pro" } ], "lastCheck": 1624812183.2694452, "logicString": "", "maxDuration": 60, "name": "Build Computer Assets", "schedule": "60-300s", "scope": 0, "startTime": 0.0, "systemIndex": 0, "varDefinitions": {} } }, "ui": { "7035e62c-9a35-4123-851e-02e12f9794a7": { "x": -1472, "y": -572, "title": "Build Computer Assets" }, "0440295a-694c-4a7f-ac9d-dd71def8524e": { "x": -1171, "y": -623, "title": "Update Computer Asset AD" }, "60ad1a35-35ea-4418-85d9-fb61d858db17": { "x": -1166, "y": -534, "title": "Update Computer Asset AV" } } }
@z1pti3 z1pti3 added the bug Something isn't working label Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant