Program: 6222
Project: 6222
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, ArtifactNotFoundException {
  NamespaceId namespace=Ids.namespace(namespaceId);
  NamespaceId artifactNamespace=validateAndGetScopedNamespace(namespace,scope);
  Id.Artifact artifactId=validateAndGetArtifactId(artifactNamespace,artifactName,artifactVersion);
  try {
    SortedMap<ArtifactDescriptor,PluginClass> plugins=artifactRepository.getPlugins(namespace,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 {
  NamespaceId namespace=Ids.namespace(namespaceId);
  NamespaceId artifactNamespace=validateAndGetScopedNamespace(namespace,scope);
  Id.Artifact artifactId=validateAndGetArtifactId(artifactNamespace,artifactName,artifactVersion);
  try {
    SortedMap<ArtifactDescriptor,PluginClass> plugins=artifactRepository.getPlugins(namespace,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(),pluginClass.getEndpoints()));
    }
    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");
  }
}