Program: 113806
Project: 113806
Buggy source:
@Override public void startRequest(MRCRequest rq){
  try {
    Args rqArgs=(Args)rq.getRequestArgs();
    final VolumeManager vMan=master.getVolumeManager();
    final FileAccessManager faMan=master.getFileAccessManager();
    Path p=new Path(rqArgs.path);
    VolumeInfo volume=vMan.getVolumeByName(p.getComp(0));
    StorageManager sMan=vMan.getStorageManager(volume.getId());
    PathResolver res=new PathResolver(sMan,p);
    faMan.checkSearchPermission(sMan,res,rq.getDetails().userId,rq.getDetails().superUser,rq.getDetails().groupIds);
    res.checkIfFileDoesNotExist();
    FileMetadata file=res.getFile();
    String target=sMan.getSoftlinkTarget(file.getId());
    if (target != null) {
      rqArgs.path=target;
      p=new Path(rqArgs.path);
      if (!vMan.hasVolume(p.getComp(0))) {
        finishRequest(rq,new ErrorRecord(ErrorClass.REDIRECT,target));
        return;
      }
      volume=vMan.getVolumeByName(p.getComp(0));
      sMan=vMan.getStorageManager(volume.getId());
      res=new PathResolver(sMan,p);
      file=res.getFile();
    }
    faMan.checkPermission(FileAccessManager.READ_ACCESS,sMan,file,res.getParentDirId(),rq.getDetails().userId,rq.getDetails().superUser,rq.getDetails().groupIds);
    AtomicDBUpdate update=null;
    if (!master.getConfig().isNoAtime()) {
      update=sMan.createAtomicDBUpdate(master,rq);
      MRCOpHelper.updateFileTimes(res.getParentDirId(),file,true,false,false,sMan,update);
    }
    Map<String,Map<String,Object>> result=new HashMap<String,Map<String,Object>>();
    Iterator<FileMetadata> it=sMan.getChildren(res.getFile().getId());
    while (it.hasNext()) {
      FileMetadata child=it.next();
      Map<String,Object> statInfo=MRCOpHelper.createStatInfo(sMan,faMan,child,sMan.getSoftlinkTarget(child.getId()),rq.getDetails().userId,rq.getDetails().groupIds,null,null,null);
      result.put(child.getFileName(),statInfo);
    }
    rq.setData(ReusableBuffer.wrap(JSONParser.writeJSON(result).getBytes()));
    if (update != null)     update.execute();
 else     finishRequest(rq);
  }
 catch (  UserException exc) {
    Logging.logMessage(Logging.LEVEL_TRACE,this,exc);
    finishRequest(rq,new ErrorRecord(ErrorClass.USER_EXCEPTION,exc.getErrno(),exc.getMessage(),exc));
  }
catch (  Exception exc) {
    finishRequest(rq,new ErrorRecord(ErrorClass.INTERNAL_SERVER_ERROR,"String_Node_Str",exc));
  }
}

Fixed version (ground truth):
@Override public void startRequest(MRCRequest rq){
  try {
    Args rqArgs=(Args)rq.getRequestArgs();
    final VolumeManager vMan=master.getVolumeManager();
    final FileAccessManager faMan=master.getFileAccessManager();
    Path p=new Path(rqArgs.path);
    VolumeInfo volume=vMan.getVolumeByName(p.getComp(0));
    StorageManager sMan=vMan.getStorageManager(volume.getId());
    PathResolver res=new PathResolver(sMan,p);
    faMan.checkSearchPermission(sMan,res,rq.getDetails().userId,rq.getDetails().superUser,rq.getDetails().groupIds);
    res.checkIfFileDoesNotExist();
    FileMetadata file=res.getFile();
    String target=sMan.getSoftlinkTarget(file.getId());
    if (target != null) {
      rqArgs.path=target;
      p=new Path(rqArgs.path);
      if (!vMan.hasVolume(p.getComp(0))) {
        finishRequest(rq,new ErrorRecord(ErrorClass.REDIRECT,target));
        return;
      }
      volume=vMan.getVolumeByName(p.getComp(0));
      sMan=vMan.getStorageManager(volume.getId());
      res=new PathResolver(sMan,p);
      file=res.getFile();
    }
    faMan.checkPermission(FileAccessManager.READ_ACCESS,sMan,file,res.getParentDirId(),rq.getDetails().userId,rq.getDetails().superUser,rq.getDetails().groupIds);
    AtomicDBUpdate update=null;
    if (!master.getConfig().isNoAtime()) {
      update=sMan.createAtomicDBUpdate(master,rq);
      MRCHelper.updateFileTimes(res.getParentDirId(),file,true,false,false,sMan,update);
    }
    Map<String,Map<String,Object>> result=new HashMap<String,Map<String,Object>>();
    Iterator<FileMetadata> it=sMan.getChildren(res.getFile().getId());
    while (it.hasNext()) {
      FileMetadata child=it.next();
      Map<String,Object> statInfo=MRCHelper.createStatInfo(sMan,faMan,child,sMan.getSoftlinkTarget(child.getId()),rq.getDetails().userId,rq.getDetails().groupIds,null,null,null);
      result.put(child.getFileName(),statInfo);
    }
    rq.setData(ReusableBuffer.wrap(JSONParser.writeJSON(result).getBytes()));
    if (update != null)     update.execute();
 else     finishRequest(rq);
  }
 catch (  UserException exc) {
    Logging.logMessage(Logging.LEVEL_TRACE,this,exc);
    finishRequest(rq,new ErrorRecord(ErrorClass.USER_EXCEPTION,exc.getErrno(),exc.getMessage(),exc));
  }
catch (  Exception exc) {
    finishRequest(rq,new ErrorRecord(ErrorClass.INTERNAL_SERVER_ERROR,"String_Node_Str",exc));
  }
}