mitre / mitre/cascade-server

Importing bson issue

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
274
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Good morning Cascade team,

I am getting an issue when trying to import a session to cascade.

I exported a session as a bson a while back and tried to import it today, but getting this error in the terminal running cascade:

`
raise DuplicateKeyError(error.get("errmsg"), 11000, error)

uuid_1 dup key: { : "DataModelEvent.FileEvent-blue-win10-file-create-
2018-07-03t13:40:23-c:\windows\microsoft.net\ngennicupdateclock.dat" }
`

The terminal will alaso ask if you'd like to overwrite existing documents in data-model-events, but it doesn't work regardless of Y/N.

Thanks for your time!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the BSON session import and tracing the DuplicateKeyError for the data-model-events collection. Check why choosing either overwrite response does not change the result. Done means an exported session imports successfully when matching documents already exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.