Unverified Commit 37a4852b authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix escaping whitespaces in filename


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent abfc640f
Pipeline #18395 passed with stages
in 4 minutes and 18 seconds
......@@ -454,7 +454,8 @@ class KafkaTopology(private val settings: SettingsLoader) {
originalIdentifierValue: String
): String? {
for (extension in fileExtensions) {
val filePath = "$sftpBasePath/$recordSetId/$type/${originalIdentifierValue.replace(" ", "\\ ")}.$extension"
val filePath =
"$sftpBasePath/$recordSetId/$type/${originalIdentifierValue.replace(" ", "\\\\ ")}.$extension"
if (sftpClient.exists(filePath)) {
return "${Constant.sftpPathPrefix}$filePath"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment