Program: 60842
Project: 60842
Buggy source:
public Users(final PageParameters parameters){
  super(parameters);
  final ModalWindow editModalWin=new ModalWindow("String_Node_Str");
  editModalWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editModalWin.setInitialHeight(EDIT_MODAL_WIN_HEIGHT);
  editModalWin.setInitialWidth(EDIT_MODAL_WIN_WIDTH);
  editModalWin.setCookieName("String_Node_Str");
  add(editModalWin);
  final ResultSetPanel searchResult=new ResultSetPanel("String_Node_Str",true,null,parameters,feedbackPanel);
  add(searchResult);
  final ResultSetPanel listResult=new ResultSetPanel("String_Node_Str",false,null,parameters,feedbackPanel);
  add(listResult);
  final AjaxLink createLink=new IndicatingAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      editModalWin.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          return new UserModalPage(Users.this.getPageReference(),editModalWin,new UserTO());
        }
      }
);
      editModalWin.show(target);
    }
  }
;
  MetaDataRoleAuthorizationStrategy.authorize(createLink,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(createLink);
  setWindowClosedReloadCallback(editModalWin,new ResultSetPanel[]{listResult,searchResult});
  final Form searchForm=new Form("String_Node_Str");
  add(searchForm);
  final FeedbackPanel searchFeedback=new FeedbackPanel("String_Node_Str",new IFeedbackMessageFilter(){
    private static final long serialVersionUID=6895024863321391672L;
    @Override public boolean accept(    final FeedbackMessage message){
      boolean result;
      if (message.getReporter() != null) {
        result=searchForm.contains(message.getReporter(),true);
      }
 else {
        result=false;
      }
      return result;
    }
  }
);
  searchFeedback.setOutputMarkupId(true);
  searchForm.add(searchFeedback);
  final WebMarkupContainer searchFormContainer=new WebMarkupContainer("String_Node_Str");
  searchFormContainer.setOutputMarkupId(true);
  searchForm.add(searchFormContainer);
  final List<SearchConditionWrapper> searchConditionList=new ArrayList<SearchConditionWrapper>();
  searchConditionList.add(new SearchConditionWrapper());
  searchFormContainer.add(new SearchView("String_Node_Str",searchConditionList,searchFormContainer));
  AjaxButton addAndButton=new IndicatingAjaxButton("String_Node_Str",new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=-4804368561204623354L;
    @Override protected void onSubmit(    final AjaxRequestTarget target,    final Form<?> form){
      SearchConditionWrapper conditionWrapper=new SearchConditionWrapper();
      conditionWrapper.setOperationType(OperationType.AND);
      searchConditionList.add(conditionWrapper);
      target.add(searchFormContainer);
    }
    @Override protected void onError(    AjaxRequestTarget target,    Form<?> form){
      target.add(searchFormContainer);
    }
  }
;
  addAndButton.setDefaultFormProcessing(false);
  searchFormContainer.add(addAndButton);
  AjaxButton addOrButton=new IndicatingAjaxButton("String_Node_Str",new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=-4804368561204623354L;
    @Override protected void onSubmit(    final AjaxRequestTarget target,    final Form<?> form){
      SearchConditionWrapper conditionWrapper=new SearchConditionWrapper();
      conditionWrapper.setOperationType(OperationType.OR);
      searchConditionList.add(conditionWrapper);
      target.add(searchFormContainer);
    }
    @Override protected void onError(    AjaxRequestTarget target,    Form<?> form){
      target.add(searchFormContainer);
    }
  }
;
  addOrButton.setDefaultFormProcessing(false);
  searchFormContainer.add(addOrButton);
  searchForm.add(new IndicatingAjaxButton("String_Node_Str",new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=-958724007591692537L;
    @Override protected void onSubmit(    final AjaxRequestTarget target,    final Form<?> form){
      doSearch(target,searchConditionList,searchResult);
      Session.get().getFeedbackMessages().clear();
      target.add(searchFeedback);
    }
    @Override protected void onError(    final AjaxRequestTarget target,    final Form form){
      target.add(searchFeedback);
    }
  }
);
}

Fixed version (ground truth):
public Users(final PageParameters parameters){
  super(parameters);
  final ModalWindow editModalWin=new ModalWindow("String_Node_Str");
  editModalWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editModalWin.setInitialHeight(EDIT_MODAL_WIN_HEIGHT);
  editModalWin.setInitialWidth(EDIT_MODAL_WIN_WIDTH);
  editModalWin.setCookieName("String_Node_Str");
  add(editModalWin);
  final ResultSetPanel searchResult=new ResultSetPanel("String_Node_Str",true,null,getPageReference());
  add(searchResult);
  final ResultSetPanel listResult=new ResultSetPanel("String_Node_Str",false,null,getPageReference());
  add(listResult);
  final AjaxLink createLink=new IndicatingAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      editModalWin.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          return new UserModalPage(Users.this.getPageReference(),editModalWin,new UserTO());
        }
      }
);
      editModalWin.show(target);
    }
  }
;
  MetaDataRoleAuthorizationStrategy.authorize(createLink,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(createLink);
  setWindowClosedReloadCallback(editModalWin,new ResultSetPanel[]{listResult,searchResult});
  final Form searchForm=new Form("String_Node_Str");
  add(searchForm);
  final FeedbackPanel searchFeedback=new FeedbackPanel("String_Node_Str",new IFeedbackMessageFilter(){
    private static final long serialVersionUID=6895024863321391672L;
    @Override public boolean accept(    final FeedbackMessage message){
      boolean result;
      if (message.getReporter() != null) {
        result=searchForm.contains(message.getReporter(),true);
      }
 else {
        result=false;
      }
      return result;
    }
  }
);
  searchFeedback.setOutputMarkupId(true);
  searchForm.add(searchFeedback);
  final WebMarkupContainer searchFormContainer=new WebMarkupContainer("String_Node_Str");
  searchFormContainer.setOutputMarkupId(true);
  searchForm.add(searchFormContainer);
  final List<SearchConditionWrapper> searchConditionList=new ArrayList<SearchConditionWrapper>();
  searchConditionList.add(new SearchConditionWrapper());
  searchFormContainer.add(new SearchView("String_Node_Str",searchConditionList,searchFormContainer));
  AjaxButton addAndButton=new IndicatingAjaxButton("String_Node_Str",new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=-4804368561204623354L;
    @Override protected void onSubmit(    final AjaxRequestTarget target,    final Form<?> form){
      SearchConditionWrapper conditionWrapper=new SearchConditionWrapper();
      conditionWrapper.setOperationType(OperationType.AND);
      searchConditionList.add(conditionWrapper);
      target.add(searchFormContainer);
    }
    @Override protected void onError(    AjaxRequestTarget target,    Form<?> form){
      target.add(searchFormContainer);
    }
  }
;
  addAndButton.setDefaultFormProcessing(false);
  searchFormContainer.add(addAndButton);
  AjaxButton addOrButton=new IndicatingAjaxButton("String_Node_Str",new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=-4804368561204623354L;
    @Override protected void onSubmit(    final AjaxRequestTarget target,    final Form<?> form){
      SearchConditionWrapper conditionWrapper=new SearchConditionWrapper();
      conditionWrapper.setOperationType(OperationType.OR);
      searchConditionList.add(conditionWrapper);
      target.add(searchFormContainer);
    }
    @Override protected void onError(    AjaxRequestTarget target,    Form<?> form){
      target.add(searchFormContainer);
    }
  }
;
  addOrButton.setDefaultFormProcessing(false);
  searchFormContainer.add(addOrButton);
  searchForm.add(new IndicatingAjaxButton("String_Node_Str",new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=-958724007591692537L;
    @Override protected void onSubmit(    final AjaxRequestTarget target,    final Form<?> form){
      doSearch(target,searchConditionList,searchResult);
      Session.get().getFeedbackMessages().clear();
      target.add(searchFeedback);
    }
    @Override protected void onError(    final AjaxRequestTarget target,    final Form form){
      target.add(searchFeedback);
    }
  }
);
}