Program: 3360
Project: 3360
Buggy source:
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {
  Item item=submission.getItem();
  Collection collection=submission.getCollection();
  String actionURL=contextPath + "String_Node_Str" + collection.getHandle()+ "String_Node_Str";
  Request request=ObjectModelHelper.getRequest(objectModel);
  boolean https=request.isSecure();
  String server=request.getServerName();
  int port=request.getServerPort();
  String exitURL=(https) ? "String_Node_Str" : "String_Node_Str";
  exitURL+=server;
  if (!(port == 80 || port == 443))   exitURL+="String_Node_Str" + port;
  exitURL+=actionURL + "String_Node_Str" + knot.getId()+ "String_Node_Str";
  Division div=body.addDivision("String_Node_Str","String_Node_Str");
  div.setHead(T_submission_head);
  Division progressDiv=div.addInteractiveDivision("String_Node_Str",actionURL,Division.METHOD_POST);
  addSubmissionProgressList(progressDiv);
  progressDiv.addHidden("String_Node_Str").setValue(knot.getId());
  Division offsiteDiv=div.addInteractiveDivision("String_Node_Str",CREATIVE_COMMONS_URL,Division.METHOD_POST);
  offsiteDiv.setHead(T_head);
  offsiteDiv.addPara(T_info1);
  offsiteDiv.addHidden("String_Node_Str").setValue(knot.getId());
  offsiteDiv.addHidden("String_Node_Str").setValue("String_Node_Str");
  offsiteDiv.addHidden("String_Node_Str").setValue(exitURL);
  Para ccPara=offsiteDiv.addPara("String_Node_Str","String_Node_Str");
  ccPara.addButton("String_Node_Str").setValue(T_submit_to_creative_commons);
  Division onsiteDiv=div.addInteractiveDivision("String_Node_Str",actionURL,Division.METHOD_POST);
  List form=onsiteDiv.addList("String_Node_Str",List.TYPE_FORM);
  form.addLabel(T_license);
  if (CreativeCommons.hasLicense(context,item)) {
    String url=CreativeCommons.getLicenseURL(item);
    form.addItem().addXref(url,url);
    form.addItem().addButton("String_Node_Str").setValue(T_submit_remove);
    form.addItem().addHidden("String_Node_Str").setValue(url);
  }
 else {
    form.addItem().addHighlight("String_Node_Str").addContent(T_no_license);
  }
  addControlButtons(form);
  onsiteDiv.addHidden("String_Node_Str").setValue(knot.getId());
}

Fixed version (ground truth):
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {
  Item item=submission.getItem();
  Collection collection=submission.getCollection();
  String actionURL=contextPath + "String_Node_Str" + collection.getHandle()+ "String_Node_Str"+ knot.getId()+ "String_Node_Str";
  Request request=ObjectModelHelper.getRequest(objectModel);
  boolean https=request.isSecure();
  String server=request.getServerName();
  int port=request.getServerPort();
  String exitURL=(https) ? "String_Node_Str" : "String_Node_Str";
  exitURL+=server;
  if (!(port == 80 || port == 443))   exitURL+="String_Node_Str" + port;
  exitURL+=actionURL + "String_Node_Str" + knot.getId()+ "String_Node_Str";
  Division div=body.addDivision("String_Node_Str","String_Node_Str");
  div.setHead(T_submission_head);
  Division progressDiv=div.addInteractiveDivision("String_Node_Str",actionURL,Division.METHOD_POST);
  addSubmissionProgressList(progressDiv);
  progressDiv.addHidden("String_Node_Str").setValue(knot.getId());
  Division offsiteDiv=div.addInteractiveDivision("String_Node_Str",CREATIVE_COMMONS_URL,Division.METHOD_POST);
  offsiteDiv.setHead(T_head);
  offsiteDiv.addPara(T_info1);
  offsiteDiv.addHidden("String_Node_Str").setValue(knot.getId());
  offsiteDiv.addHidden("String_Node_Str").setValue("String_Node_Str");
  offsiteDiv.addHidden("String_Node_Str").setValue(exitURL);
  Para ccPara=offsiteDiv.addPara("String_Node_Str","String_Node_Str");
  ccPara.addButton("String_Node_Str").setValue(T_submit_to_creative_commons);
  Division onsiteDiv=div.addInteractiveDivision("String_Node_Str",actionURL,Division.METHOD_POST);
  List form=onsiteDiv.addList("String_Node_Str",List.TYPE_FORM);
  form.addLabel(T_license);
  if (CreativeCommons.hasLicense(context,item)) {
    String url=CreativeCommons.getLicenseURL(item);
    form.addItem().addXref(url,url);
    form.addItem().addButton("String_Node_Str").setValue(T_submit_remove);
    form.addItem().addHidden("String_Node_Str").setValue(url);
  }
 else {
    form.addItem().addHighlight("String_Node_Str").addContent(T_no_license);
  }
  addControlButtons(form);
}