CSC/ECE 517 Spring 2022 - E2207: SQL Injection Fix
This page details project documentation for the CSC/ECE 517 Spring 2022, "E2218 SQL Injection Fix" project.
Background
Many software projects rely on user interactions in order to accomplish the tasks given by
Mentor
Nicolas Himes
Team Members
- Lawrence Patrick O'Brien
- David Glymph
Code Modifications and Refactorization
Described below are the code refactoring tasks and issues addressed by this team. We have also included any pertinent details, reasonings, comments, warnings, etc., corresponding to each task.
METHOD: def set_response
@response and @map instance variables are initialized the same way across multiple methods. In order to avoid duplication, we created a before_action action which will be called first before calling the corresponding methods.
Modified Files
response_controller.rb
response_helper.rb
assignment_questionnaire.rb
awarded_badge.rb
cake.rb
response.rb
Testing
Running Tests
rspec spec/controllers/questionnaires_controller_spec.rb
GitHub links and Pull Request
Link to Expertiza repository: here
Link to the forked repository: here
Link to Pull Request: here