changeset 214:0b233de80756

Fixed typos in url parameter validation.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 03 Jul 2013 15:56:10 +0200
parents 8fdb699405aa
children 0e94ef5e504a
files src/main/java/de/intevation/lada/rest/LMesswertService.java src/main/java/de/intevation/lada/rest/LStatusService.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LMesswertService.java	Wed Jul 03 15:54:00 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LMesswertService.java	Wed Jul 03 15:56:10 2013 +0200
@@ -68,7 +68,7 @@
             MultivaluedMap<String, String> params = info.getQueryParameters();
             if (params.isEmpty() ||
                 !params.containsKey("probeId") ||
-                !params.containsKey("messungId")) {
+                !params.containsKey("messungsId")) {
                 return new Response(false, 609, new ArrayList<LMesswert>());
             }
             String probeId = params.getFirst("probeId");
--- a/src/main/java/de/intevation/lada/rest/LStatusService.java	Wed Jul 03 15:54:00 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LStatusService.java	Wed Jul 03 15:56:10 2013 +0200
@@ -68,7 +68,7 @@
             MultivaluedMap<String, String> params = info.getQueryParameters();
             if (params.isEmpty() ||
                 !params.containsKey("probeId") ||
-                !params.containsKey("messungId")) {
+                !params.containsKey("messungsId")) {
                 return new Response(false, 609, new ArrayList<LStatus>());
             }
             String probeId = params.getFirst("probeId");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)