Mercurial > hg > AnnotationManagerN4J
diff src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java @ 22:b1fb0d117877
adding and listing groups via html works now.
no editing of group membership yet.
no authentication yet.
author | casties |
---|---|
date | Thu, 20 Sep 2012 17:42:26 +0200 |
parents | 715aa11d138b |
children | 9f653697437e 0731c4549065 |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java Fri Sep 07 18:10:18 2012 +0200 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java Thu Sep 20 17:42:26 2012 +0200 @@ -48,7 +48,11 @@ String id = decodeJsonId(jsonId); logger.debug("annotation-id=" + id); - // TODO: what to return without id - list of all annotations? + if (id == null) { + // TODO: what to return without id - list all annotations? + setStatus(Status.CLIENT_ERROR_BAD_REQUEST); + return null; + } // do authentication Person authUser = Person.createPersonWithId(this.checkAuthToken(entity));