Program: 147532
Project: 147532
Buggy source:
@RequestMapping(value="String_Node_Str",method=RequestMethod.POST) public String editOperatorSave(@RequestParam("String_Node_Str") int id,@RequestParam("String_Node_Str") String name,@RequestParam("String_Node_Str") String surname,@RequestParam("String_Node_Str") String login,@RequestParam("String_Node_Str") String password,@RequestParam("String_Node_Str") String passwordNew,@RequestParam("String_Node_Str") String passwordNewRepeat,@RequestParam("String_Node_Str") String description,Model model){
  if (login.length() < 3) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  Operator operator=operatorService.getOperatorById(id);
  if (!password.equals(operator.getPassword())) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  if (passwordNew.length() > 0 && passwordNew.length() < 6) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  if (passwordNew.length() > 0 && !passwordNew.equals(passwordNewRepeat)) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  if (passwordNew.length() > 0)   operator.setPassword(passwordNew);
 else   operator.setPassword(password);
  operator.setName(name);
  operator.setSurname(surname);
  operator.setLogin(login);
  operator.setDescription(description);
  List<Operator> operators=operatorService.getAllOperators();
  for (  Operator oper : operators) {
    if (oper.getLogin().equals(operator.getLogin()) && !oper.getId().equals(operator.getId())) {
      model.addAttribute("String_Node_Str","String_Node_Str");
      return "String_Node_Str";
    }
  }
  operatorService.editOperator(operator);
  return "String_Node_Str";
}

Fixed version (ground truth):
@RequestMapping(value="String_Node_Str",method=RequestMethod.POST) public String editOperatorSave(@RequestParam("String_Node_Str") int id,@RequestParam("String_Node_Str") String name,@RequestParam("String_Node_Str") String surname,@RequestParam("String_Node_Str") String login,@RequestParam("String_Node_Str") String password,@RequestParam("String_Node_Str") String passwordNew,@RequestParam("String_Node_Str") String passwordNewRepeat,@RequestParam("String_Node_Str") String description,Model model){
  Operator operator=operatorService.getOperatorById(id);
  if (!password.equals(operator.getPassword())) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  if (passwordNew.length() > 0 && passwordNew.length() < 6) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  if (passwordNew.length() > 0 && !passwordNew.equals(passwordNewRepeat)) {
    model.addAttribute("String_Node_Str","String_Node_Str");
    return "String_Node_Str";
  }
  if (passwordNew.length() > 0)   operator.setPassword(passwordNew);
 else   operator.setPassword(password);
  operator.setName(name);
  operator.setSurname(surname);
  operator.setLogin(login);
  operator.setDescription(description);
  List<Operator> operators=operatorService.getAllOperators();
  for (  Operator oper : operators) {
    if (oper.getLogin().equals(operator.getLogin()) && !oper.getId().equals(operator.getId())) {
      model.addAttribute("String_Node_Str","String_Node_Str");
      return "String_Node_Str";
    }
  }
  operatorService.editOperator(operator);
  return "String_Node_Str";
}