Program: 82677
Project: 82677
Buggy source:
public void testFile() throws Exception {
  PackagerResolver resolver=new PackagerResolver();
  resolver.setSettings(_settings);
  File repoRoot=new File("String_Node_Str");
  resolver.addIvyPattern("String_Node_Str" + new File(repoRoot,"String_Node_Str").getAbsoluteFile().toURL().toExternalForm());
  resolver.setPackagerPattern("String_Node_Str" + new File(repoRoot,"String_Node_Str").getAbsoluteFile().toURL().toExternalForm());
  resolver.setBuildRoot(_builddir.getAbsolutePath());
  resolver.setResourceCache(_cachedir.getAbsolutePath());
  resolver.setPreserveBuildDirectories(true);
  resolver.setVerbose(true);
  System.setProperty("String_Node_Str",new File("String_Node_Str").getAbsoluteFile().toURL().toExternalForm());
  resolver.setName("String_Node_Str");
  assertEquals("String_Node_Str",resolver.getName());
  ModuleRevisionId mrid=ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str");
  ResolvedModuleRevision rmr=resolver.getDependency(new DefaultDependencyDescriptor(mrid,false),_data);
  assertNotNull(rmr);
  assertEquals(mrid,rmr.getId());
  Date pubdate=new GregorianCalendar(2004,10,1,11,0,0).getTime();
  assertEquals(pubdate,rmr.getPublicationDate());
  Artifact artifact=new DefaultArtifact(mrid,pubdate,"String_Node_Str","String_Node_Str","String_Node_Str");
  DownloadReport report=resolver.download(new Artifact[]{artifact},downloadOptions());
  assertNotNull(report);
  assertEquals(1,report.getArtifactsReports().length);
  ArtifactDownloadReport ar=report.getArtifactReport(artifact);
  System.out.println("String_Node_Str" + ar.getDownloadDetails());
  assertNotNull(ar);
  assertEquals(artifact,ar.getArtifact());
  assertEquals(DownloadStatus.SUCCESSFUL,ar.getDownloadStatus());
  assertTrue(new File(_cachedir,"String_Node_Str").exists());
  report=resolver.download(new Artifact[]{artifact},downloadOptions());
  assertNotNull(report);
  assertEquals(1,report.getArtifactsReports().length);
  ar=report.getArtifactReport(artifact);
  assertNotNull(ar);
  assertEquals(artifact,ar.getArtifact());
  assertEquals(DownloadStatus.NO,ar.getDownloadStatus());
  artifact=DefaultArtifact.cloneWithAnotherName(artifact,"String_Node_Str");
  report=resolver.download(new Artifact[]{artifact},downloadOptions());
  assertNotNull(report);
  assertEquals(1,report.getArtifactsReports().length);
  ar=report.getArtifactReport(artifact);
  assertNotNull(ar);
  assertEquals(artifact,ar.getArtifact());
  assertEquals(DownloadStatus.SUCCESSFUL,ar.getDownloadStatus());
}

Fixed version (ground truth):
public void testFile() throws Exception {
  Locale oldLocale=Locale.getDefault();
  try {
    Locale.setDefault(Locale.UK);
    PackagerResolver resolver=new PackagerResolver();
    resolver.setSettings(_settings);
    File repoRoot=new File("String_Node_Str");
    resolver.addIvyPattern("String_Node_Str" + new File(repoRoot,"String_Node_Str").getAbsoluteFile().toURL().toExternalForm());
    resolver.setPackagerPattern("String_Node_Str" + new File(repoRoot,"String_Node_Str").getAbsoluteFile().toURL().toExternalForm());
    resolver.setBuildRoot(_builddir.getAbsolutePath());
    resolver.setResourceCache(_cachedir.getAbsolutePath());
    resolver.setPreserveBuildDirectories(true);
    resolver.setVerbose(true);
    System.setProperty("String_Node_Str",new File("String_Node_Str").getAbsoluteFile().toURL().toExternalForm());
    resolver.setName("String_Node_Str");
    assertEquals("String_Node_Str",resolver.getName());
    ModuleRevisionId mrid=ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str");
    ResolvedModuleRevision rmr=resolver.getDependency(new DefaultDependencyDescriptor(mrid,false),_data);
    assertNotNull(rmr);
    assertEquals(mrid,rmr.getId());
    Date pubdate=new GregorianCalendar(2004,10,1,11,0,0).getTime();
    assertEquals(pubdate,rmr.getPublicationDate());
    Artifact artifact=new DefaultArtifact(mrid,pubdate,"String_Node_Str","String_Node_Str","String_Node_Str");
    DownloadReport report=resolver.download(new Artifact[]{artifact},downloadOptions());
    assertNotNull(report);
    assertEquals(1,report.getArtifactsReports().length);
    ArtifactDownloadReport ar=report.getArtifactReport(artifact);
    System.out.println("String_Node_Str" + ar.getDownloadDetails());
    assertNotNull(ar);
    assertEquals(artifact,ar.getArtifact());
    assertEquals(DownloadStatus.SUCCESSFUL,ar.getDownloadStatus());
    assertTrue(new File(_cachedir,"String_Node_Str").exists());
    report=resolver.download(new Artifact[]{artifact},downloadOptions());
    assertNotNull(report);
    assertEquals(1,report.getArtifactsReports().length);
    ar=report.getArtifactReport(artifact);
    assertNotNull(ar);
    assertEquals(artifact,ar.getArtifact());
    assertEquals(DownloadStatus.NO,ar.getDownloadStatus());
    artifact=DefaultArtifact.cloneWithAnotherName(artifact,"String_Node_Str");
    report=resolver.download(new Artifact[]{artifact},downloadOptions());
    assertNotNull(report);
    assertEquals(1,report.getArtifactsReports().length);
    ar=report.getArtifactReport(artifact);
    assertNotNull(ar);
    assertEquals(artifact,ar.getArtifact());
    assertEquals(DownloadStatus.SUCCESSFUL,ar.getDownloadStatus());
  }
  finally {
    Locale.setDefault(oldLocale);
  }
}