Program: 60661
Project: 60661
Buggy source:
private final void setupNotification(){
  notificationPaginatorRows=prefMan.getPaginatorRows(getRequest(),Constants.PREF_NOTIFICATION_PAGINATOR_ROWS);
  List<IColumn> notificationCols=new ArrayList<IColumn>();
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new AbstractColumn<NotificationTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<NotificationTO>> cellItem,    final String componentId,    final IModel<NotificationTO> model){
      final NotificationTO notificationTO=model.getObject();
      AjaxLink editLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          editNotificationWin.setPageCreator(new ModalWindow.PageCreator(){
            private static final long serialVersionUID=-7834632442532690940L;
            @Override public Page createPage(){
              return new NotificationModalPage(Configuration.this.getPageReference(),editNotificationWin,notificationTO,false);
            }
          }
);
          editNotificationWin.show(target);
        }
      }
;
      EditLinkPanel panel=new EditLinkPanel(componentId,model);
      panel.add(editLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  notificationCols.add(new AbstractColumn<NotificationTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<NotificationTO>> cellItem,    final String componentId,    final IModel<NotificationTO> model){
      final NotificationTO notificationTO=model.getObject();
      AjaxLink deleteLink=new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            notificationRestClient.deleteNotification(notificationTO.getId());
          }
 catch (          SyncopeClientCompositeErrorException e) {
            LOG.error("String_Node_Str",e);
            error(e.getMessage());
            return;
          }
          info(getString("String_Node_Str"));
          target.add(feedbackPanel);
          target.add(notificationContainer);
        }
      }
;
      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 notificationTable=new AjaxFallbackDefaultDataTable("String_Node_Str",notificationCols,new NotificationProvider(),notificationPaginatorRows);
  notificationContainer=new WebMarkupContainer("String_Node_Str");
  notificationContainer.add(notificationTable);
  notificationContainer.setOutputMarkupId(true);
  add(notificationContainer);
  createNotificationWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  createNotificationWin.setInitialHeight(NOTIFICATION_WIN_HEIGHT);
  createNotificationWin.setInitialWidth(NOTIFICATION_WIN_WIDTH);
  createNotificationWin.setCookieName("String_Node_Str");
  editNotificationWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editNotificationWin.setInitialHeight(NOTIFICATION_WIN_HEIGHT);
  editNotificationWin.setInitialWidth(NOTIFICATION_WIN_WIDTH);
  editNotificationWin.setCookieName("String_Node_Str");
  setWindowClosedCallback(createNotificationWin,notificationContainer);
  setWindowClosedCallback(editNotificationWin,notificationContainer);
  AjaxLink createNotificationLink=new AjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      createNotificationWin.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          return new NotificationModalPage(Configuration.this.getPageReference(),createNotificationWin,new NotificationTO(),true);
        }
      }
);
      createNotificationWin.show(target);
    }
  }
;
  MetaDataRoleAuthorizationStrategy.authorize(createNotificationLink,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(createNotificationLink);
  Form notificationPaginatorForm=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(getRequest(),getResponse(),Constants.PREF_NOTIFICATION_PAGINATOR_ROWS,String.valueOf(notificationPaginatorRows));
      notificationTable.setItemsPerPage(notificationPaginatorRows);
      target.add(notificationContainer);
    }
  }
);
  notificationPaginatorForm.add(rowsChooser);
  add(notificationPaginatorForm);
}

Fixed version (ground truth):
private void setupNotification(){
  notificationPaginatorRows=prefMan.getPaginatorRows(getRequest(),Constants.PREF_NOTIFICATION_PAGINATOR_ROWS);
  List<IColumn> notificationCols=new ArrayList<IColumn>();
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  notificationCols.add(new AbstractColumn<NotificationTO>(new ResourceModel("String_Node_Str","String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public String getCssClass(){
      return "String_Node_Str";
    }
    @Override public void populateItem(    final Item<ICellPopulator<NotificationTO>> cellItem,    final String componentId,    final IModel<NotificationTO> model){
      final NotificationTO notificationTO=model.getObject();
      final ActionLinksPanel panel=new ActionLinksPanel(componentId,model);
      panel.add(new ActionLink(){
        private static final long serialVersionUID=-3722207913631435501L;
        @Override public void onClick(        final AjaxRequestTarget target){
          editNotificationWin.setPageCreator(new ModalWindow.PageCreator(){
            private static final long serialVersionUID=-7834632442532690940L;
            @Override public Page createPage(){
              return new NotificationModalPage(Configuration.this.getPageReference(),editNotificationWin,notificationTO,false);
            }
          }
);
          editNotificationWin.show(target);
        }
      }
,ActionLink.ActionType.EDIT,"String_Node_Str","String_Node_Str");
      panel.add(new ActionLink(){
        private static final long serialVersionUID=-3722207913631435501L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            notificationRestClient.deleteNotification(notificationTO.getId());
          }
 catch (          SyncopeClientCompositeErrorException e) {
            LOG.error("String_Node_Str",e);
            error(e.getMessage());
            return;
          }
          info(getString("String_Node_Str"));
          target.add(feedbackPanel);
          target.add(notificationContainer);
        }
      }
,ActionLink.ActionType.DELETE,"String_Node_Str","String_Node_Str");
      cellItem.add(panel);
    }
  }
);
  final AjaxFallbackDefaultDataTable notificationTable=new AjaxFallbackDefaultDataTable("String_Node_Str",notificationCols,new NotificationProvider(),notificationPaginatorRows);
  notificationContainer=new WebMarkupContainer("String_Node_Str");
  notificationContainer.add(notificationTable);
  notificationContainer.setOutputMarkupId(true);
  add(notificationContainer);
  createNotificationWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  createNotificationWin.setInitialHeight(NOTIFICATION_WIN_HEIGHT);
  createNotificationWin.setInitialWidth(NOTIFICATION_WIN_WIDTH);
  createNotificationWin.setCookieName("String_Node_Str");
  editNotificationWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editNotificationWin.setInitialHeight(NOTIFICATION_WIN_HEIGHT);
  editNotificationWin.setInitialWidth(NOTIFICATION_WIN_WIDTH);
  editNotificationWin.setCookieName("String_Node_Str");
  setWindowClosedCallback(createNotificationWin,notificationContainer);
  setWindowClosedCallback(editNotificationWin,notificationContainer);
  AjaxLink createNotificationLink=new AjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      createNotificationWin.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          return new NotificationModalPage(Configuration.this.getPageReference(),createNotificationWin,new NotificationTO(),true);
        }
      }
);
      createNotificationWin.show(target);
    }
  }
;
  MetaDataRoleAuthorizationStrategy.authorize(createNotificationLink,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(createNotificationLink);
  Form notificationPaginatorForm=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(getRequest(),getResponse(),Constants.PREF_NOTIFICATION_PAGINATOR_ROWS,String.valueOf(notificationPaginatorRows));
      notificationTable.setItemsPerPage(notificationPaginatorRows);
      target.add(notificationContainer);
    }
  }
);
  notificationPaginatorForm.add(rowsChooser);
  add(notificationPaginatorForm);
}