ソースを参照

HPCC-21510 Supply correct default directory from esp rename context

The Esp file publish service renames physical files, the
default base directory is required in this context.
Relates to HPCC-21507

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 6 年 前
コミット
b0e12e309b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      esp/services/ws_dfu/ws_dfuService.cpp

+ 1 - 1
esp/services/ws_dfu/ws_dfuService.cpp

@@ -6426,7 +6426,7 @@ bool CWsDfuEx::onDFUFilePublish(IEspContext &context, IEspDFUFilePublishRequest
         Owned<IDistributedFile> oldFile = queryDistributedFileDirectory().createNew(fileDesc);
         oldFile->validate();
 
-        if (!oldFile->renamePhysicalPartFiles(newFileName.str(), nullptr, nullptr, nullptr))
+        if (!oldFile->renamePhysicalPartFiles(newFileName.str(), nullptr, nullptr, fileDesc->queryDefaultDir()))
             throw MakeStringException(ECLWATCH_FILE_NOT_EXIST, "Failed in renamePhysicalPartFiles %s.", newFileName.str());
 
         Owned<IFileDescriptor> newFileDesc = createFileDescriptor(newFileName, clusterTypeEx, groupName, group);