cmsgov / ato-blueprint Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Describe the bug as a Story
As a system owner, in order to properly categorize my system with a FIPS-199-styled review and select the relevant controls and potentially tailor them, I would like to select the impact level of my system (even if it already is low) and review that to adjust it accordingly.
Using 22c6106, I try to create a new system with "General IT System ATO for 800-53 (low) " startpack. When selecting the gear next to FISMA Impact Level: Undetermined, the service throwns an exception and presents a stacktrace.
To Reproduce
Steps to reproduce the behavior:
Environment:
Request Method: GET
Request URL: http://localhost:8000/projects/2/general-it-system-ato-for-800-53-low-2/settings
Django Version: 3.2.5
Python Version: 3.8.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.staticfiles',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.humanize',
'django.contrib.admindocs',
'django.contrib.postgres',
'session_security',
'bootstrap3',
'allauth',
'allauth.account',
'allauth.socialaccount',
'simple_history',
'rest_framework',
'django_json_widget',
'debug_toolbar',
'django_extensions',
'htmlemailer',
'notifications',
'dbstorage',
'guardian',
'siteapp',
'guidedmodules',
'discussion',
'controls',
'system_settings',
'loadtesting',
'nplusone.ext.django']
Installed Middleware:
['querycount.middleware.QueryCountMiddleware',
'nplusone.ext.django.NPlusOneMiddleware',
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'siteapp.middleware.HealthCheckMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'simple_history.middleware.HistoryRequestMiddleware',
'session_security.middleware.SessionSecurityMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'siteapp.middleware.ContentSecurityPolicyMiddleware',
'guidedmodules.middleware.InstrumentQuestionPageLoadTimes']
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/usr/local/lib/python3.8/dist-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/src/app/siteapp/views.py", line 886, in g
return f(request, project)
File "/usr/src/app/siteapp/views.py", line 1174, in project_settings
'system_info_edit': system_info_edit,
Exception Type: UnboundLocalError at /projects/2/general-it-system-ato-for-800-53-low-2/settings
Exception Value: local variable 'system_info_edit' referenced before assignment
Expected behavior
I want to be able to edit the impact level of the system.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
docker-compose
TBD, I will investigate further later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.