Program: 47497
Project: 47497
Buggy source:
/** 
 * @param repositoryFile
 */
public ImportDialog(RepositoryFile repositoryFile){
  super(Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),false,true);
  indefiniteProgress=new PopupPanel(false,true);
  DOM.setStyleAttribute(indefiniteProgress.getElement(),"String_Node_Str","String_Node_Str");
  Image waitImage=new Image("String_Node_Str");
  indefiniteProgress.add(waitImage);
  form=new FormPanel();
  form.addSubmitHandler(new SubmitHandler(){
    @Override public void onSubmit(    SubmitEvent se){
      okButton.setEnabled(false);
      cancelButton.setEnabled(false);
      indefiniteProgress.center();
    }
  }
);
  form.addSubmitCompleteHandler(new SubmitCompleteHandler(){
    @Override public void onSubmitComplete(    SubmitCompleteEvent sce){
      new RefreshRepositoryCommand().execute(false);
      indefiniteProgress.hide();
      okButton.setEnabled(true);
      cancelButton.setEnabled(true);
      ImportDialog.this.hide();
      Window.alert(sce.getResults());
    }
  }
);
  VerticalPanel rootPanel=new VerticalPanel();
  Label importLocationLabel=new Label(Messages.getString("String_Node_Str") + "String_Node_Str" + repositoryFile.getPath());
  TextBox importDir=new TextBox();
  rootPanel.add(importLocationLabel);
  CheckBox overwrite=new CheckBox(Messages.getString("String_Node_Str"),true);
  overwrite.setName("String_Node_Str");
  overwrite.setFormValue("String_Node_Str");
  CheckBox permission=new CheckBox(Messages.getString("String_Node_Str"),true);
  permission.setName("String_Node_Str");
  permission.setFormValue("String_Node_Str");
  CheckBox retainOwnership=new CheckBox(Messages.getString("String_Node_Str"),true);
  permission.setName("String_Node_Str");
  permission.setFormValue("String_Node_Str");
  upload=new FileUpload();
  upload.setName("String_Node_Str");
  rootPanel.add(upload);
  rootPanel.add(overwrite);
  rootPanel.add(permission);
  rootPanel.add(retainOwnership);
  importDir.setName("String_Node_Str");
  importDir.setText(repositoryFile.getPath());
  importDir.setVisible(false);
  rootPanel.add(importDir);
  form.setEncoding(FormPanel.ENCODING_MULTIPART);
  form.setMethod(FormPanel.METHOD_POST);
  setFormAction();
  form.add(rootPanel);
  setContent(form);
}

Fixed version (ground truth):
/** 
 * @param repositoryFile
 */
public ImportDialog(RepositoryFile repositoryFile){
  super(Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),false,true);
  indefiniteProgress=new PopupPanel(false,true);
  DOM.setStyleAttribute(indefiniteProgress.getElement(),"String_Node_Str","String_Node_Str");
  Image waitImage=new Image("String_Node_Str");
  indefiniteProgress.add(waitImage);
  form=new FormPanel();
  form.addSubmitHandler(new SubmitHandler(){
    @Override public void onSubmit(    SubmitEvent se){
      okButton.setEnabled(false);
      cancelButton.setEnabled(false);
      indefiniteProgress.center();
    }
  }
);
  form.addSubmitCompleteHandler(new SubmitCompleteHandler(){
    @Override public void onSubmitComplete(    SubmitCompleteEvent sce){
      new RefreshRepositoryCommand().execute(false);
      indefiniteProgress.hide();
      okButton.setEnabled(true);
      cancelButton.setEnabled(true);
      ImportDialog.this.hide();
      Window.alert(sce.getResults());
    }
  }
);
  VerticalPanel rootPanel=new VerticalPanel();
  Label importLocationLabel=new Label(Messages.getString("String_Node_Str") + "String_Node_Str" + repositoryFile.getPath());
  TextBox importDir=new TextBox();
  rootPanel.add(importLocationLabel);
  CheckBox overwrite=new CheckBox(Messages.getString("String_Node_Str"),true);
  overwrite.setName("String_Node_Str");
  overwrite.setFormValue("String_Node_Str");
  CheckBox permission=new CheckBox(Messages.getString("String_Node_Str"),true);
  permission.setName("String_Node_Str");
  permission.setFormValue("String_Node_Str");
  CheckBox retainOwnership=new CheckBox(Messages.getString("String_Node_Str"),true);
  retainOwnership.setName("String_Node_Str");
  retainOwnership.setFormValue("String_Node_Str");
  upload=new FileUpload();
  upload.setName("String_Node_Str");
  rootPanel.add(upload);
  rootPanel.add(overwrite);
  rootPanel.add(permission);
  rootPanel.add(retainOwnership);
  importDir.setName("String_Node_Str");
  importDir.setText(repositoryFile.getPath());
  importDir.setVisible(false);
  rootPanel.add(importDir);
  form.setEncoding(FormPanel.ENCODING_MULTIPART);
  form.setMethod(FormPanel.METHOD_POST);
  setFormAction();
  form.add(rootPanel);
  setContent(form);
}