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

escape whitespaces in filename


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent efd3fb9c
Pipeline #18369 passed with stages
in 4 minutes and 6 seconds
......@@ -454,7 +454,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
originalIdentifierValue: String
): String? {
for (extension in fileExtensions) {
val filePath = "$sftpBasePath/$recordSetId/$type/$originalIdentifierValue.$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