Program: 86997
Project: 86997
Buggy source:
/** 
 * Return a Map<String,String> containing the core fields in a web-referenceable asset.  This method will automatically substitute h1title as the value for linktitle if linktitle is not supplied. <p/> Also includes selected metadata fields: <ul> <li>id</li> <li>name</li> <li>subtype</li> <li>startdate</li> <li>enddate</li> <li>status</li> </ul>
 * @param c   asset type
 * @param cid asset id
 * @return Map<String,String> with attribute data
 */
public Map<String,String> getCoreFields(String c,String cid){
  Map<String,String> coreFields=new HashMap<String,String>();
  AssetData data=getCoreFieldsAsAssetData(new AssetIdImpl(c,Long.valueOf(cid)));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str","String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  return coreFields;
}

Fixed version (ground truth):
/** 
 * Return a Map<String,String> containing the core fields in a web-referenceable asset.  This method will automatically substitute h1title as the value for linktitle if linktitle is not supplied. <p/> Also includes selected metadata fields: <ul> <li>id</li> <li>name</li> <li>subtype</li> <li>startdate</li> <li>enddate</li> <li>status</li> </ul>
 * @param c   asset type
 * @param cid asset id
 * @return Map<String,String> with attribute data
 */
public Map<String,String> getCoreFields(String c,String cid){
  Map<String,String> coreFields=new HashMap<String,String>();
  AssetData data=getCoreFieldsAsAssetData(new AssetIdImpl(c,Long.valueOf(cid)));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str","String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  coreFields.put("String_Node_Str",AttributeDataUtils.asString(data.getAttributeData("String_Node_Str")));
  coreFields.put("String_Node_Str",AttributeDataUtils.asString(data.getAttributeData("String_Node_Str")));
  coreFields.put("String_Node_Str",AttributeDataUtils.asString(data.getAttributeData("String_Node_Str")));
  coreFields.put("String_Node_Str",AttributeDataUtils.getWithFallback(data,"String_Node_Str"));
  return coreFields;
}