diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/query/rewriter/OpRewriter.java b/jena-permissions/src/main/java/org/apache/jena/permissions/query/rewriter/OpRewriter.java index 4b1ff1b0cb7..d0a55a9c539 100644 --- a/jena-permissions/src/main/java/org/apache/jena/permissions/query/rewriter/OpRewriter.java +++ b/jena-permissions/src/main/java/org/apache/jena/permissions/query/rewriter/OpRewriter.java @@ -226,6 +226,15 @@ public void visit(final OpBGP opBGP) throws ReadDeniedException, AuthenticationR } } + @Override + public void visit(OpLateral opLateral) { + if (LOG.isDebugEnabled()) { + LOG.debug("Starting visiting OpLateral"); + } + final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI); + addOp(OpLateral.create(rewriteOp2(opLateral, rewriter), rewriter.getResult())); + } + /** * Rewrite left and right */ diff --git a/jena-permissions/src/test/java/org/apache/jena/permissions/model/SecuredModelTest.java b/jena-permissions/src/test/java/org/apache/jena/permissions/model/SecuredModelTest.java index a0990bacdf6..449522484bb 100644 --- a/jena-permissions/src/test/java/org/apache/jena/permissions/model/SecuredModelTest.java +++ b/jena-permissions/src/test/java/org/apache/jena/permissions/model/SecuredModelTest.java @@ -92,7 +92,7 @@ public SecuredModelTest(final MockSecurityEvaluator securityEvaluator) { /** * create an unsecured securedModel. - * + * * @return */ protected Model createModel() { @@ -1010,6 +1010,7 @@ public void testGetRDFNode() { } } + @SuppressWarnings("deprecation") @Test public void testGetReader() { securedModel.getReader(); @@ -1095,6 +1096,7 @@ public void testGetSeq_StringNotExisting() throws Exception { } } + @SuppressWarnings("deprecation") @Test public void testGetWriter() { securedModel.getWriter();