mitre-attack / mitre-attack/mitreattack-python

[Bug] Remove UTF-16 encoding from save/load file in SVGConfig

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
743
Forks
176
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

SVGConfig settings should be successfully loaded from a JSON file encoded using UTF-8 (default encoding).

Actual Behavior

An error is thrown when loading SVGConfig settings from a JSON file if the file is encoded using UTF-8.

Contributor guide

Open the contributing guide

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 at the SVGConfig save/load entry point and inspect how its JSON file encoding is specified. Reproduce loading a UTF-8 JSON file, then verify that SVGConfig saves and loads successfully without requiring UTF-16 encoding.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.