Program: 60679
Project: 60679
Buggy source:
public NotificationTasks(String id){
  super(id);
  add(window=new ModalWindow("String_Node_Str"));
  paginatorRows=prefMan.getPaginatorRows(getWebRequest(),Constants.PREF_NOTIFICATION_TASKS_PAGINATOR_ROWS);
  List<IColumn<TaskTO>> columns=new ArrayList<IColumn<TaskTO>>();
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new AbstractColumn<TaskTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<TaskTO>> cellItem,    final String componentId,    final IModel<TaskTO> model){
      final TaskTO taskTO=model.getObject();
      AjaxLink viewLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          window.setPageCreator(new ModalWindow.PageCreator(){
            private static final long serialVersionUID=-7834632442532690940L;
            @Override public Page createPage(){
              return new NotificationTaskModalPage(taskTO);
            }
          }
);
          window.show(target);
        }
      }
;
      EditLinkPanel panel=new EditLinkPanel(componentId,model);
      panel.add(viewLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  columns.add(new AbstractColumn<TaskTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<TaskTO>> cellItem,    final String componentId,    final IModel<TaskTO> model){
      final TaskTO taskTO=model.getObject();
      AjaxLink executeLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            restClient.startExecution(taskTO.getId(),false);
            getSession().info(getString("String_Node_Str"));
          }
 catch (          SyncopeClientCompositeErrorException scce) {
            error(scce.getMessage());
          }
          target.add(getPage().get("String_Node_Str"));
          target.add(container);
        }
      }
;
      executeLink.add(new Label("String_Node_Str",getString("String_Node_Str")));
      LinkPanel panel=new LinkPanel(componentId);
      panel.add(executeLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  columns.add(new AbstractColumn<TaskTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<TaskTO>> cellItem,    final String componentId,    final IModel<TaskTO> model){
      final TaskTO taskTO=model.getObject();
      AjaxLink deleteLink=new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            restClient.delete(taskTO.getId());
            info(getString("String_Node_Str"));
          }
 catch (          SyncopeClientCompositeErrorException scce) {
            error(scce.getMessage());
          }
          target.add(container);
          target.add(getPage().get("String_Node_Str"));
        }
      }
;
      DeleteLinkPanel panel=new DeleteLinkPanel(componentId,model);
      panel.add(deleteLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  final AjaxFallbackDefaultDataTable<TaskTO> table=new AjaxFallbackDefaultDataTable<TaskTO>("String_Node_Str",columns,new TasksProvider(restClient,paginatorRows,getId(),NotificationTaskTO.class),paginatorRows);
  container=new WebMarkupContainer("String_Node_Str");
  container.add(table);
  container.setOutputMarkupId(true);
  add(container);
  window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      target.add(container);
      if (operationResult) {
        info(getString("String_Node_Str"));
        target.add(getPage().get("String_Node_Str"));
        operationResult=false;
      }
    }
  }
);
  window.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  window.setInitialHeight(WIN_HEIGHT);
  window.setInitialWidth(WIN_WIDTH);
  window.setCookieName("String_Node_Str");
  Form paginatorForm=new Form("String_Node_Str");
  final DropDownChoice rowsChooser=new DropDownChoice("String_Node_Str",new PropertyModel(this,"String_Node_Str"),prefMan.getPaginatorChoices());
  rowsChooser.add(new AjaxFormComponentUpdatingBehavior("String_Node_Str"){
    private static final long serialVersionUID=-1107858522700306810L;
    @Override protected void onUpdate(    final AjaxRequestTarget target){
      prefMan.set(getWebRequest(),(WebResponse)getResponse(),Constants.PREF_NOTIFICATION_TASKS_PAGINATOR_ROWS,String.valueOf(paginatorRows));
      table.setItemsPerPage(paginatorRows);
      target.add(container);
    }
  }
);
  paginatorForm.add(rowsChooser);
  add(paginatorForm);
}

Fixed version (ground truth):
public NotificationTasks(String id){
  super(id);
  add(window=new ModalWindow("String_Node_Str"));
  paginatorRows=prefMan.getPaginatorRows(getWebRequest(),Constants.PREF_NOTIFICATION_TASKS_PAGINATOR_ROWS);
  List<IColumn<TaskTO>> columns=new ArrayList<IColumn<TaskTO>>();
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new AbstractColumn<TaskTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<TaskTO>> cellItem,    final String componentId,    final IModel<TaskTO> model){
      final TaskTO taskTO=model.getObject();
      AjaxLink viewLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          window.setPageCreator(new ModalWindow.PageCreator(){
            private static final long serialVersionUID=-7834632442532690940L;
            @Override public Page createPage(){
              return new NotificationTaskModalPage(taskTO);
            }
          }
);
          window.show(target);
        }
      }
;
      EditLinkPanel panel=new EditLinkPanel(componentId,model);
      panel.add(viewLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  columns.add(new AbstractColumn<TaskTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<TaskTO>> cellItem,    final String componentId,    final IModel<TaskTO> model){
      final TaskTO taskTO=model.getObject();
      AjaxLink executeLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            restClient.startExecution(taskTO.getId(),false);
            getSession().info(getString("String_Node_Str"));
          }
 catch (          SyncopeClientCompositeErrorException scce) {
            error(scce.getMessage());
          }
          target.add(getPage().get("String_Node_Str"));
          target.add(container);
        }
      }
;
      executeLink.add(new Label("String_Node_Str",getString("String_Node_Str")));
      LinkPanel panel=new LinkPanel(componentId);
      panel.add(executeLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  columns.add(new AbstractColumn<TaskTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<TaskTO>> cellItem,    final String componentId,    final IModel<TaskTO> model){
      final TaskTO taskTO=model.getObject();
      AjaxLink deleteLink=new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            restClient.delete(taskTO.getId());
            info(getString("String_Node_Str"));
          }
 catch (          SyncopeClientCompositeErrorException scce) {
            error(scce.getMessage());
          }
          target.add(container);
          target.add(getPage().get("String_Node_Str"));
        }
      }
;
      DeleteLinkPanel panel=new DeleteLinkPanel(componentId,model);
      panel.add(deleteLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  final AjaxFallbackDefaultDataTable<TaskTO> table=new AjaxFallbackDefaultDataTable<TaskTO>("String_Node_Str",columns,new TasksProvider(restClient,paginatorRows,getId(),NotificationTaskTO.class),paginatorRows);
  container=new WebMarkupContainer("String_Node_Str");
  container.add(table);
  container.setOutputMarkupId(true);
  add(container);
  window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      target.add(container);
      if (operationResult) {
        info(getString("String_Node_Str"));
        target.add(getPage().get("String_Node_Str"));
        operationResult=false;
      }
    }
  }
);
  window.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  window.setInitialHeight(WIN_HEIGHT);
  window.setInitialWidth(WIN_WIDTH);
  window.setCookieName("String_Node_Str");
  Form paginatorForm=new Form("String_Node_Str");
  final DropDownChoice rowsChooser=new DropDownChoice("String_Node_Str",new PropertyModel(this,"String_Node_Str"),prefMan.getPaginatorChoices());
  rowsChooser.add(new AjaxFormComponentUpdatingBehavior("String_Node_Str"){
    private static final long serialVersionUID=-1107858522700306810L;
    @Override protected void onUpdate(    final AjaxRequestTarget target){
      prefMan.set(getWebRequest(),(WebResponse)getResponse(),Constants.PREF_NOTIFICATION_TASKS_PAGINATOR_ROWS,String.valueOf(paginatorRows));
      table.setItemsPerPage(paginatorRows);
      target.add(container);
    }
  }
);
  paginatorForm.add(rowsChooser);
  add(paginatorForm);
}