Changed error message in the matchInfo service.
Change-Id: I1fe60366b328911bbad97706b82541bb45e834fd
diff --git a/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java b/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java
index 0268dca..5c50194 100644
--- a/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java
+++ b/src/main/java/de/ids_mannheim/korap/web/SearchKrill.java
@@ -123,7 +123,7 @@
if (!m.matches()){
km = new Match();
km.addError(StatusCodes.ACCESS_DENIED,
- "Retrieving match info with ID "+id+" is not allowed.");
+ "Retrieving match info with ID "+id+" is not allowed.", id);
}
}
}
@@ -156,7 +156,7 @@
if (!m.matches()){
km = new Match();
km.addError(StatusCodes.ACCESS_DENIED,
- "Retrieving match info with ID "+id+" is not allowed.");
+ "Retrieving match info with ID "+id+" is not allowed.", id);
}
}
diff --git a/src/main/java/de/ids_mannheim/korap/web/service/full/ResourceService.java b/src/main/java/de/ids_mannheim/korap/web/service/full/ResourceService.java
index 8b4cd28..9b559fb 100644
--- a/src/main/java/de/ids_mannheim/korap/web/service/full/ResourceService.java
+++ b/src/main/java/de/ids_mannheim/korap/web/service/full/ResourceService.java
@@ -529,7 +529,7 @@
try {
user = controller.getUser(context.getUsername());
controller.setAccessAndLocation(user, headers);
- System.out.printf("Debug: /search/: location=%s, access='%s'.\n", user.locationtoString(), user.accesstoString());
+// System.out.printf("Debug: /search/: location=%s, access='%s'.\n", user.locationtoString(), user.accesstoString());
}
catch (KustvaktException e) {
jlog.error("Failed retrieving user in the search service: {}",