Open gbrown-gis opened 2 years ago
Describe the bug as a Story After importing https://raw.githubusercontent.com/GSA/fedramp-automation/master/dist/content/baselines/rev4/json/FedRAMP_rev4_MODERATE-baseline-resolved-profile_catalog.json into GUI: Database Administration -> Catalog datas, going to "Control" tab results in "Exception Type: KeyError at /controls/"
To Reproduce Steps to reproduce the behavior:
Expected behavior An imported catalog listed in the results
Screenshots
Desktop (please complete the following information):
9823f1db (HEAD -> main, origin/main, origin/HEAD, lib-fix) main@{0}: clone: from github.com:GovReady/govready-q.git
Environment:
Request Method: GET Request URL: http://127.0.0.1:8000/controls/ Django Version: 3.2.5 Python Version: 3.9.9
Error
Traceback (most recent call last): File "/Users/XXXX/Library/Python/3.9/lib/python/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Users/XXXX/Library/Python/3.9/lib/python/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/XXXX/Development/github/govready-q/controls/views.py", line 70, in catalogs "catalogs": Catalogs(), File "/Users/XXXX/Development/github/govready-q/controls/oscal.py", line 43, in init self.index = self._build_index() File "/Users/XXXX/Development/github/govready-q/controls/oscal.py", line 58, in build_index {'id': catalog['id'], 'catalog_key': catalog_key, 'catalog_key_display': catalog_key.replace("", " "), Exception Type: KeyError at /controls/ Exception Value: 'id'
GIVEN I import a OSCAL 1.0.0 Catalog and compatible Baseline into database catalog such as https://raw.githubusercontent.com/GSA/fedramp-automation/master/dist/content/baselines/rev4/json/FedRAMP_rev4_MODERATE-baseline-resolved-profile_catalog.json WHEN I click on "Controls" THEN The imported catalog should appear.
Additional context Add any other context about the problem here.
@gbrown-gis were you able to resolve this ?
Describe the bug as a Story After importing https://raw.githubusercontent.com/GSA/fedramp-automation/master/dist/content/baselines/rev4/json/FedRAMP_rev4_MODERATE-baseline-resolved-profile_catalog.json into GUI: Database Administration -> Catalog datas, going to "Control" tab results in "Exception Type: KeyError at /controls/"
To Reproduce Steps to reproduce the behavior:
Expected behavior An imported catalog listed in the results
Screenshots
Desktop (please complete the following information):
Developer hints
9823f1db (HEAD -> main, origin/main, origin/HEAD, lib-fix) main@{0}: clone: from github.com:GovReady/govready-q.git
Environment:
Error
Acceptance criteria
GIVEN I import a OSCAL 1.0.0 Catalog and compatible Baseline into database catalog such as https://raw.githubusercontent.com/GSA/fedramp-automation/master/dist/content/baselines/rev4/json/FedRAMP_rev4_MODERATE-baseline-resolved-profile_catalog.json WHEN I click on "Controls" THEN The imported catalog should appear.
Additional context Add any other context about the problem here.
Links referenced in issue