Program: 6212
Project: 6212
Buggy source:
@GET @Path("String_Node_Str") public void getArtifactPlugins(HttpRequest request,HttpResponder responder,@PathParam("String_Node_Str") String namespaceId,@PathParam("String_Node_Str") String artifactName,@PathParam("String_Node_Str") String artifactVersion,@PathParam("String_Node_Str") String pluginType,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") String scope) throws NamespaceNotFoundException, BadRequestException, ArtifactNotFoundException {
  NamespaceId namespace=Ids.namespace(namespaceId);
  NamespaceId artifactNamespace=validateAndGetScopedNamespace(namespace,scope);
  Id.Artifact artifactId=validateAndGetArtifactId(artifactNamespace,artifactName,artifactVersion);
  try {
    SortedMap<ArtifactDescriptor,List<PluginClass>> plugins=artifactRepository.getPlugins(namespace,artifactId,pluginType);
    List<PluginSummary> pluginSummaries=Lists.newArrayList();
    for (    Map.Entry<ArtifactDescriptor,List<PluginClass>> pluginsEntry : plugins.entrySet()) {
      ArtifactDescriptor pluginArtifact=pluginsEntry.getKey();
      ArtifactSummary pluginArtifactSummary=ArtifactSummary.from(pluginArtifact.getArtifactId());
      for (      PluginClass pluginClass : pluginsEntry.getValue()) {
        pluginSummaries.add(new PluginSummary(pluginClass.getName(),pluginClass.getType(),pluginClass.getDescription(),pluginClass.getClassName(),pluginArtifactSummary));
      }
    }
    responder.sendJson(HttpResponseStatus.OK,pluginSummaries);
  }
 catch (  IOException e) {
    LOG.error("String_Node_Str",artifactId,e);
    responder.sendString(HttpResponseStatus.INTERNAL_SERVER_ERROR,"String_Node_Str");
  }
}

Fixed version (ground truth):
@GET @Path("String_Node_Str") public void getArtifactPlugins(HttpRequest request,HttpResponder responder,@PathParam("String_Node_Str") String namespaceId,@PathParam("String_Node_Str") String artifactName,@PathParam("String_Node_Str") String artifactVersion,@PathParam("String_Node_Str") String pluginType,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") String scope) throws NamespaceNotFoundException, BadRequestException, ArtifactNotFoundException {
  NamespaceId namespace=Ids.namespace(namespaceId);
  NamespaceId artifactNamespace=validateAndGetScopedNamespace(namespace,scope);
  Id.Artifact artifactId=validateAndGetArtifactId(artifactNamespace,artifactName,artifactVersion);
  try {
    SortedMap<ArtifactDescriptor,Set<PluginClass>> plugins=artifactRepository.getPlugins(namespace,artifactId,pluginType);
    List<PluginSummary> pluginSummaries=Lists.newArrayList();
    for (    Map.Entry<ArtifactDescriptor,Set<PluginClass>> pluginsEntry : plugins.entrySet()) {
      ArtifactDescriptor pluginArtifact=pluginsEntry.getKey();
      ArtifactSummary pluginArtifactSummary=ArtifactSummary.from(pluginArtifact.getArtifactId());
      for (      PluginClass pluginClass : pluginsEntry.getValue()) {
        pluginSummaries.add(new PluginSummary(pluginClass.getName(),pluginClass.getType(),pluginClass.getDescription(),pluginClass.getClassName(),pluginArtifactSummary));
      }
    }
    responder.sendJson(HttpResponseStatus.OK,pluginSummaries);
  }
 catch (  IOException e) {
    LOG.error("String_Node_Str",artifactId,e);
    responder.sendString(HttpResponseStatus.INTERNAL_SERVER_ERROR,"String_Node_Str");
  }
}