Program: 6479
Project: 6479
Buggy source:
@GET @Path("String_Node_Str" + "String_Node_Str") public void getArtifactPlugin(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,@PathParam("String_Node_Str") String pluginName,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") String scope) throws NamespaceNotFoundException, BadRequestException {
  Id.Namespace namespace=validateAndGetNamespace(namespaceId,scope);
  Id.Artifact artifactId=validateAndGetArtifactId(namespace,artifactName,artifactVersion);
  try {
    SortedMap<ArtifactDescriptor,PluginClass> plugins=artifactRepository.getPlugins(artifactId,pluginType,pluginName);
    List<PluginInfo> pluginInfos=Lists.newArrayList();
    for (    Map.Entry<ArtifactDescriptor,PluginClass> pluginsEntry : plugins.entrySet()) {
      ArtifactDescriptor pluginArtifact=pluginsEntry.getKey();
      ArtifactSummary pluginArtifactSummary=ArtifactSummary.from(pluginArtifact.getArtifactId());
      PluginClass pluginClass=pluginsEntry.getValue();
      pluginInfos.add(new PluginInfo(pluginClass.getName(),pluginClass.getType(),pluginClass.getDescription(),pluginClass.getClassName(),pluginArtifactSummary,pluginClass.getProperties()));
    }
    responder.sendJson(HttpResponseStatus.OK,pluginInfos);
  }
 catch (  PluginNotExistsException e) {
    responder.sendString(HttpResponseStatus.NOT_FOUND,e.getMessage());
  }
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" + "String_Node_Str") public void getArtifactPlugin(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,@PathParam("String_Node_Str") String pluginName,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") String scope) throws NamespaceNotFoundException, BadRequestException, ArtifactNotFoundException {
  Id.Namespace namespace=validateAndGetNamespace(namespaceId,scope);
  Id.Artifact artifactId=validateAndGetArtifactId(namespace,artifactName,artifactVersion);
  try {
    SortedMap<ArtifactDescriptor,PluginClass> plugins=artifactRepository.getPlugins(artifactId,pluginType,pluginName);
    List<PluginInfo> pluginInfos=Lists.newArrayList();
    for (    Map.Entry<ArtifactDescriptor,PluginClass> pluginsEntry : plugins.entrySet()) {
      ArtifactDescriptor pluginArtifact=pluginsEntry.getKey();
      ArtifactSummary pluginArtifactSummary=ArtifactSummary.from(pluginArtifact.getArtifactId());
      PluginClass pluginClass=pluginsEntry.getValue();
      pluginInfos.add(new PluginInfo(pluginClass.getName(),pluginClass.getType(),pluginClass.getDescription(),pluginClass.getClassName(),pluginArtifactSummary,pluginClass.getProperties()));
    }
    responder.sendJson(HttpResponseStatus.OK,pluginInfos);
  }
 catch (  PluginNotExistsException e) {
    responder.sendString(HttpResponseStatus.NOT_FOUND,e.getMessage());
  }
catch (  IOException e) {
    LOG.error("String_Node_Str",artifactId,e);
    responder.sendString(HttpResponseStatus.INTERNAL_SERVER_ERROR,"String_Node_Str");
  }
}