Program: 62879
Project: 62879
Buggy source:
@Override protected ActionResult execute() throws EntityDoesNotExistException {
  String courseId=getRequestParamValue(Const.ParamsNames.COURSE_ID);
  String feedbackSessionName=getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);
  InstructorAttributes instructorDetailForCourse=logic.getInstructorForGoogleId(courseId,account.googleId);
  new GateKeeper().verifyAccessible(instructorDetailForCourse,logic.getFeedbackSession(feedbackSessionName,courseId),true);
  FeedbackQuestionAttributes feedbackQuestion=extractFeedbackQuestionData(requestParameters,instructorDetailForCourse.email);
  List<String> questionDetailsErrors=feedbackQuestion.getQuestionDetails().validateQuestionDetails();
  if (!questionDetailsErrors.isEmpty()) {
    statusToUser.addAll(questionDetailsErrors);
    isError=true;
  }
 else {
    try {
      logic.createFeedbackQuestion(feedbackQuestion);
      statusToUser.add(Const.StatusMessages.FEEDBACK_QUESTION_ADDED);
      statusToAdmin="String_Node_Str" + feedbackQuestion.feedbackSessionName + "String_Node_Str"+ feedbackQuestion.courseId+ "String_Node_Str"+ "String_Node_Str"+ feedbackQuestion.getQuestionDetails().getQuestionTypeDisplayName()+ "String_Node_Str"+ feedbackQuestion.getQuestionDetails().questionText;
    }
 catch (    InvalidParametersException e) {
      statusToUser.add(e.getMessage());
      statusToAdmin=e.getMessage();
      isError=true;
    }
  }
  return createRedirectResult(new PageData(account).getInstructorFeedbackSessionEditLink(courseId,feedbackSessionName));
}

Fixed version (ground truth):
@Override protected ActionResult execute() throws EntityDoesNotExistException {
  String courseId=getRequestParamValue(Const.ParamsNames.COURSE_ID);
  String feedbackSessionName=getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);
  InstructorAttributes instructorDetailForCourse=logic.getInstructorForGoogleId(courseId,account.googleId);
  new GateKeeper().verifyAccessible(instructorDetailForCourse,logic.getFeedbackSession(feedbackSessionName,courseId),false,Const.ParamsNames.INSTRUCTOR_PERMISSION_MODIFY_SESSION);
  FeedbackQuestionAttributes feedbackQuestion=extractFeedbackQuestionData(requestParameters,instructorDetailForCourse.email);
  List<String> questionDetailsErrors=feedbackQuestion.getQuestionDetails().validateQuestionDetails();
  if (!questionDetailsErrors.isEmpty()) {
    statusToUser.addAll(questionDetailsErrors);
    isError=true;
  }
 else {
    try {
      logic.createFeedbackQuestion(feedbackQuestion);
      statusToUser.add(Const.StatusMessages.FEEDBACK_QUESTION_ADDED);
      statusToAdmin="String_Node_Str" + feedbackQuestion.feedbackSessionName + "String_Node_Str"+ feedbackQuestion.courseId+ "String_Node_Str"+ "String_Node_Str"+ feedbackQuestion.getQuestionDetails().getQuestionTypeDisplayName()+ "String_Node_Str"+ feedbackQuestion.getQuestionDetails().questionText;
    }
 catch (    InvalidParametersException e) {
      statusToUser.add(e.getMessage());
      statusToAdmin=e.getMessage();
      isError=true;
    }
  }
  return createRedirectResult(new PageData(account).getInstructorFeedbackSessionEditLink(courseId,feedbackSessionName));
}