Program: 166215
Project: 166215
Buggy source:
public SearchFilter getSearchFilterFromLegacyRequest(HttpServletRequest request,List<SortField> sortFields){
  if (request == null) {
    return null;
  }
  SearchFilter ret=new SearchFilter();
  if (MapUtils.isEmpty(request.getParameterMap())) {
    ret.setParams(new HashMap<String,String>());
  }
  String repositoryType=request.getParameter("String_Node_Str");
  if (repositoryType != null) {
    repositoryType=repositoryType.toLowerCase();
  }
  String repositoryId=request.getParameter("String_Node_Str");
  if (repositoryId == null) {
    repositoryId=request.getParameter("String_Node_Str");
  }
  ret.setParam(SearchFilter.SERVICE_TYPE,repositoryType);
  ret.setParam(SearchFilter.SERVICE_NAME,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.SERVICE_ID,repositoryId);
  ret.setParam(SearchFilter.POLICY_NAME,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.USER,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.GROUP,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.IS_ENABLED,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.IS_RECURSIVE,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.POL_RESOURCE,request.getParameter(SearchFilter.POL_RESOURCE));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  extractCommonCriteriasForFilter(request,ret,sortFields);
  return ret;
}

Fixed version (ground truth):
public SearchFilter getSearchFilterFromLegacyRequest(HttpServletRequest request,List<SortField> sortFields){
  Validate.notNull(request,"String_Node_Str");
  SearchFilter ret=new SearchFilter();
  if (MapUtils.isEmpty(request.getParameterMap())) {
    ret.setParams(new HashMap<String,String>());
  }
  String repositoryType=request.getParameter("String_Node_Str");
  if (repositoryType != null) {
    repositoryType=repositoryType.toLowerCase();
  }
  String repositoryId=request.getParameter("String_Node_Str");
  if (repositoryId == null) {
    repositoryId=request.getParameter("String_Node_Str");
  }
  ret.setParam(SearchFilter.SERVICE_TYPE,repositoryType);
  ret.setParam(SearchFilter.SERVICE_NAME,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.SERVICE_ID,repositoryId);
  ret.setParam(SearchFilter.POLICY_NAME,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.USER,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.GROUP,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.IS_ENABLED,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.IS_RECURSIVE,request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.POL_RESOURCE,request.getParameter(SearchFilter.POL_RESOURCE));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  ret.setParam(SearchFilter.RESOURCE_PREFIX + "String_Node_Str",request.getParameter("String_Node_Str"));
  extractCommonCriteriasForFilter(request,ret,sortFields);
  return ret;
}