# HG changeset patch # User Felix Wolfsteller # Date 1349683431 -7200 # Node ID 102050c4fc0067083478f9cd3841db895af3876c # Parent f85f230c5c6c2b8d767b95d227f42ddd6f58cc1a fix issue909: strange validation code. be fearles. diff -r f85f230c5c6c -r 102050c4fc00 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Mon Oct 08 09:52:21 2012 +0200 +++ b/flys-artifacts/ChangeLog Mon Oct 08 10:03:51 2012 +0200 @@ -1,3 +1,9 @@ +2012-10-08 Felix Wolfsteller + + * flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java, + flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java: + Validate partial strings. + 2012-10-08 Felix Wolfsteller * flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/ExtremeAccess.java, diff -r f85f230c5c6c -r 102050c4fc00 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java Mon Oct 08 09:52:21 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java Mon Oct 08 10:03:51 2012 +0200 @@ -137,7 +137,7 @@ // Validate the Data-Strings. for (String s: datas) { - if (!WaterlevelSelectState.isValueValid(winfo.getDataAsString("diffids"))) { + if (!WaterlevelSelectState.isValueValid(s)) { // TODO: escalate. } } diff -r f85f230c5c6c -r 102050c4fc00 flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java --- a/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java Mon Oct 08 09:52:21 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java Mon Oct 08 10:03:51 2012 +0200 @@ -738,7 +738,7 @@ // Validate the Data-Strings. for (String s: datas) { - if (!WaterlevelSelectState.isValueValid(winfo.getDataAsString("diffids"))) { + if (!WaterlevelSelectState.isValueValid(s)) { return ""; } }