From f15306304a747922990eeabbedea63ae6e277149 Mon Sep 17 00:00:00 2001 From: burdziak Date: Mon, 16 Sep 2019 12:56:44 +0200 Subject: Personalized client certificate authentication via FTPes in 5G Bulk PM usecase doesn't work Issue-ID: DCAEGEN2-1754 Signed-off-by: burdziak Change-Id: Idec3efce8412dd175ecf75f55790a24cec651104 --- .../java/org/onap/dcaegen2/collectors/datafile/model/FileData.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'datafile-app-server/src/main/java') diff --git a/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java b/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java index 8cafd0c4..4805cb47 100644 --- a/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java +++ b/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java @@ -130,6 +130,12 @@ public abstract class FileData { String[] userAndPassword = userInfoString.split(":"); if (userAndPassword.length == 2) { return Optional.of(userAndPassword); + }else if(userAndPassword.length == 1)//if just user + { + String[] tab = new String[2]; + tab[0] = userAndPassword[0]; + tab[1] = "";//add empty password + return Optional.of(tab); } } return Optional.empty(); -- cgit 1.2.3-korg