From 41c43d7b14d67fe7894fa0ad59f73666e67ef054 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Sun, 12 Dec 2021 12:12:35 +0100 Subject: remove bPK target check in SZR client because SZR supports private sectors too --- src/main/java/at/gv/util/client/szr/SZRClient.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/at/gv/util/client/szr/SZRClient.java b/src/main/java/at/gv/util/client/szr/SZRClient.java index fb0c2e1..32cef41 100644 --- a/src/main/java/at/gv/util/client/szr/SZRClient.java +++ b/src/main/java/at/gv/util/client/szr/SZRClient.java @@ -88,13 +88,13 @@ public class SZRClient { MiscUtil.assertNotNull(target, "target"); String targetPrefix = "urn:publicid:gv.at:cdid+"; String targetString = null; - if (target.length() == 2) { - targetString = targetPrefix + target; - } else if (!target.startsWith(targetPrefix)) { - throw new EgovUtilException("Target must start with " + targetPrefix); - } else { +// if (target.length() == 2) { +// targetString = targetPrefix + target; +// } else if (!target.startsWith(targetPrefix)) { +// throw new EgovUtilException("Target must start with " + targetPrefix); +// } else { targetString = target; - } +// } GetBPK req = new GetBPK(); req.setPersonInfo(personInfo); -- cgit v1.2.3