diff --git a/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java b/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java index 2b22fce3c8..c2489ac5f9 100644 --- a/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java +++ b/src/main/java/io/github/hectorvent/floci/services/appsync/graphql/AppSyncVtlEngine.java @@ -64,8 +64,7 @@ public class AppSyncVtlEngine { engine.setProperty("resource.loader.string.class", "org.apache.velocity.runtime.resource.loader.StringResourceLoader"); engine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false); - engine.setProperty("userdirective", - "io.github.hectorvent.floci.services.appsync.graphql.ReturnDirective"); + engine.setProperty("userdirective", ReturnDirective.class.getName()); engine.setProperty(RuntimeConstants.MAX_NUMBER_LOOPS, config.services().appsync().vtlMaxLoops()); VtlSandbox.restrictIntrospection(engine); engine.init(); diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java b/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java index 5bb2a317d6..612f936e1a 100644 --- a/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java +++ b/src/main/java/io/github/hectorvent/floci/services/iam/RequestBodyReader.java @@ -18,8 +18,7 @@ public final class RequestBodyReader { private static final Logger LOG = Logger.getLogger(RequestBodyReader.class); private static final ObjectMapper CBOR_MAPPER = new ObjectMapper(new CBORFactory()); - private static final String BUFFERED_BODY_PROPERTY = - "io.github.hectorvent.floci.services.iam.RequestBodyReader.bufferedBody"; + private static final String BUFFERED_BODY_PROPERTY = RequestBodyReader.class.getName() + ".bufferedBody"; private RequestBodyReader() { }