Program: 69641
Project: 69641
Buggy source:
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  FormLayoutContainer leftContainer=FormLayoutContainer.createDefaultFormLayout("String_Node_Str",getTranslator());
  leftContainer.setRootForm(mainForm);
  formLayout.add(leftContainer);
  displayName=uifactory.addTextElement("String_Node_Str","String_Node_Str",255,"String_Node_Str",leftContainer);
  displayName.setElementCssClass("String_Node_Str");
  displayName.setFocus(true);
  description=uifactory.addTextElement("String_Node_Str","String_Node_Str",255,"String_Node_Str",leftContainer);
  description.setElementCssClass("String_Node_Str");
  List<String> typeList=getResources();
  String[] typeKeys=typeList.toArray(new String[typeList.size()]);
  String[] typeValues=getTranslatedResources(typeList);
  types=uifactory.addDropdownSingleselect("String_Node_Str","String_Node_Str",leftContainer,typeKeys,typeValues,null);
  FormLayoutContainer rightContainer=FormLayoutContainer.createDefaultFormLayout("String_Node_Str",getTranslator());
  rightContainer.setRootForm(mainForm);
  formLayout.add(rightContainer);
  author=uifactory.addTextElement("String_Node_Str","String_Node_Str",255,"String_Node_Str",rightContainer);
  author.setElementCssClass("String_Node_Str");
  id=uifactory.addTextElement("String_Node_Str","String_Node_Str",12,"String_Node_Str",rightContainer);
  id.setElementCssClass("String_Node_Str");
  id.setVisible(isAdmin);
  id.setRegexMatchCheck("String_Node_Str","String_Node_Str");
  FormLayoutContainer buttonLayout=FormLayoutContainer.createButtonLayout("String_Node_Str",getTranslator());
  formLayout.add(buttonLayout);
  searchButton=uifactory.addFormLink("String_Node_Str",buttonLayout,Link.BUTTON);
  if (cancelAllowed) {
    uifactory.addFormCancelButton("String_Node_Str",buttonLayout,ureq,getWindowControl());
  }
}

Fixed version (ground truth):
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  FormLayoutContainer leftContainer=FormLayoutContainer.createDefaultFormLayout("String_Node_Str",getTranslator());
  leftContainer.setRootForm(mainForm);
  formLayout.add(leftContainer);
  displayName=uifactory.addTextElement("String_Node_Str","String_Node_Str",255,"String_Node_Str",leftContainer);
  displayName.setElementCssClass("String_Node_Str");
  displayName.setFocus(true);
  description=uifactory.addTextElement("String_Node_Str","String_Node_Str",255,"String_Node_Str",leftContainer);
  description.setElementCssClass("String_Node_Str");
  List<String> typeList=getResources();
  String[] typeKeys=typeList.toArray(new String[typeList.size()]);
  String[] typeValues=getTranslatedResources(typeList);
  types=uifactory.addDropdownSingleselect("String_Node_Str","String_Node_Str",leftContainer,typeKeys,typeValues,null);
  FormLayoutContainer rightContainer=FormLayoutContainer.createDefaultFormLayout("String_Node_Str",getTranslator());
  rightContainer.setRootForm(mainForm);
  formLayout.add(rightContainer);
  author=uifactory.addTextElement("String_Node_Str","String_Node_Str",255,"String_Node_Str",rightContainer);
  author.setElementCssClass("String_Node_Str");
  id=uifactory.addTextElement("String_Node_Str","String_Node_Str",12,"String_Node_Str",rightContainer);
  id.setElementCssClass("String_Node_Str");
  id.setVisible(isAdmin);
  id.setRegexMatchCheck("String_Node_Str","String_Node_Str");
  FormLayoutContainer buttonLayout=FormLayoutContainer.createButtonLayout("String_Node_Str",getTranslator());
  formLayout.add(buttonLayout);
  searchButton=uifactory.addFormSubmitButton("String_Node_Str",buttonLayout);
  if (cancelAllowed) {
    uifactory.addFormCancelButton("String_Node_Str",buttonLayout,ureq,getWindowControl());
  }
}