From 0fe819c2ee84faab31fe48b119fd7c7708c32bb1 Mon Sep 17 00:00:00 2001 From: lucio lelii Date: Fri, 4 Mar 2022 14:51:13 +0100 Subject: [PATCH] changes --- CHANGELOG.md | 2 +- pom.xml | 2 +- .../handlers/application/request/RequestValidator.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9989637..5a7a06f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm # Changelog for Common Smartgears -## [v3.3.0-SNAPSHOT] - 2022-01-19 +## [v3.1.2-SNAPSHOT] - 2022-01-19 - enabled policy check on smartgears - container configuration for test added diff --git a/pom.xml b/pom.xml index 6142d5a..895cdd9 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.gcube.core common-smartgears - 3.3.0-SNAPSHOT + 3.1.2-SNAPSHOT SmartGears diff --git a/src/main/java/org/gcube/smartgears/handlers/application/request/RequestValidator.java b/src/main/java/org/gcube/smartgears/handlers/application/request/RequestValidator.java index 0d45217..d5743c7 100644 --- a/src/main/java/org/gcube/smartgears/handlers/application/request/RequestValidator.java +++ b/src/main/java/org/gcube/smartgears/handlers/application/request/RequestValidator.java @@ -126,8 +126,8 @@ public class RequestValidator extends RequestHandler { for (Policy policy: policies) { log.debug("policy: {}", policy.getPolicyAsString() ); if (PolicyUtils.isPolicyValidForClient(policy.getServiceAccess(), serviceIdentifier)){ - log.error("rejecting call to {} : {} is not allowed to contact the service ",context.name(), caller.getClient().getId()); - invalid_request_error.fire("rejecting call to "+context.name()+": "+caller.getClient().getId()+" is not allowed to contact the service"); + log.error("rejecting call to {} : {} is not allowed to contact the service ",context.name(), caller.getClient().getId()); + invalid_request_error.fire("rejecting call to "+context.name()+": "+caller.getClient().getId()+" is not allowed to contact the service: "+serviceIdentifier.getServiceName() ); } } }catch (Exception e) {