Skip to content

Commit

Permalink
Fixing detecting invoking services
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioKusek committed Mar 24, 2018
1 parent e422032 commit 0d7c7f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private ResponseEntity<String> processRequestPrivate(HttpServletRequest req) thr

httpStatus = HttpStatus.valueOf(response.getStatusCode());
} catch (IOException | ODataException e) {
responseStr = sendFailMessage(req, e.getMessage());
responseStr = sendFailMessage(req, e.getClass().getName() + ": " + e.getMessage());
log.error(e.getMessage(), e);
httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/eu/h2020/symbiote/service/StorageHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public RapPluginResponse setService(List<ResourceInfo> resourceInfoList, String
pluginId = lst.get(0).getPlatformId();
}

if("Service".equals(type)) {
if(type.toLowerCase().startsWith("service")) {
requestBody = "[" + requestBody + "]";
}

Expand Down

0 comments on commit 0d7c7f8

Please sign in to comment.