TACC / Core-CMS-Custom

Customized Core CMS code and builds
5 stars 0 forks source link

bug/FP 1974 and 1976 No Whitespace Input on Excp/Ext Forms #140

Closed sophia-massie closed 1 year ago

sophia-massie commented 1 year ago

Overview

To audit form fields to make sure they're not only whitespace submissions

Related

Changes

Testing

  1. In Exception/views.py add the following snippet to the line 105 and 37
submitters = [ (2, 'TESTGOLD', 10000001, 'gmunoz1', 'CHCD'), (3, 'TESTGOLD', 10000002, 'gmunoz1', 'CHCD'), (1, 'TESTGOLD', 10000000, 'gmunoz1', 'CHCD') ]
  1. Go to http://localhost:8000/submissions/threshold-exception/ and http://localhost:8000/submissions/other-exception/
  2. Make sure page looks submits correctly and does not allow whitespace only as input.
  3. In extension/views.py add the following snippet to the line 24
submitters = [ (2, 'TESTGOLD', 10000001, 'gmunoz1', 'CHCD'), (3, 'TESTGOLD', 10000002, 'gmunoz1', 'CHCD'), (1, 'TESTGOLD', 10000000, 'gmunoz1', 'CHCD') ]
  1. Go to http://localhost:8000/submissions/extension-request/
  2. Make sure page looks submits correctly and does not allow whitespace only as input.

UI