You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by "hungphan227 (via GitHub)" <gi...@apache.org> on 2023/12/18 10:20:48 UTC

[PR] JAMES-2586 add missing RLS tests [james-project]

hungphan227 opened a new pull request, #1862:
URL: https://github.com/apache/james-project/pull/1862

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "Arsnael (via GitHub)" <gi...@apache.org>.
Arsnael commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1430842049


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/quota/PostgresQuotaModule.java:
##########
@@ -72,7 +72,7 @@ interface PostgresQuotaLimitTable {
                 .column(QUOTA_TYPE)
                 .column(QUOTA_LIMIT)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(QUOTA_SCOPE, IDENTIFIER, QUOTA_COMPONENT, QUOTA_TYPE))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   Why that change? Did I miss something?



##########
server/data/data-postgres/src/main/java/org/apache/james/rrt/postgres/PostgresRecipientRewriteTableModule.java:
##########
@@ -45,7 +45,7 @@ interface PostgresRecipientRewriteTableTable {
                 .column(DOMAIN_NAME)
                 .column(TARGET_ADDRESS)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(USERNAME, DOMAIN_NAME, TARGET_ADDRESS))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   Why as well?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "vttranlina (via GitHub)" <gi...@apache.org>.
vttranlina commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1430874529


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/quota/PostgresQuotaModule.java:
##########
@@ -72,7 +72,7 @@ interface PostgresQuotaLimitTable {
                 .column(QUOTA_TYPE)
                 .column(QUOTA_LIMIT)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(QUOTA_SCOPE, IDENTIFIER, QUOTA_COMPONENT, QUOTA_TYPE))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   :+1: It should be splitting smaller commit 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "Arsnael (via GitHub)" <gi...@apache.org>.
Arsnael commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1430872523


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/quota/PostgresQuotaModule.java:
##########
@@ -72,7 +72,7 @@ interface PostgresQuotaLimitTable {
                 .column(QUOTA_TYPE)
                 .column(QUOTA_LIMIT)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(QUOTA_SCOPE, IDENTIFIER, QUOTA_COMPONENT, QUOTA_TYPE))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   He said RLS tests needed... TESTS. Does that mean we should disable them for quota and RRT?
   
   It's confusing, and I prefer to be sure: @chibenwa ? :) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "Arsnael (via GitHub)" <gi...@apache.org>.
Arsnael merged PR #1862:
URL: https://github.com/apache/james-project/pull/1862


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "quantranhong1999 (via GitHub)" <gi...@apache.org>.
quantranhong1999 commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1429895132


##########
mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresMessageMapperRowLevelSecurityTest.java:
##########
@@ -0,0 +1,111 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.james.mailbox.postgres.mail;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.time.Instant;
+import java.util.Date;
+
+import javax.mail.Flags;
+
+import org.apache.james.backends.postgres.PostgresExtension;
+import org.apache.james.backends.postgres.utils.DomainImplPostgresConnectionFactory;
+import org.apache.james.backends.postgres.utils.PostgresExecutor;
+import org.apache.james.blob.api.BlobId;
+import org.apache.james.blob.api.BucketName;
+import org.apache.james.blob.api.HashBlobId;
+import org.apache.james.blob.memory.MemoryBlobStoreDAO;
+import org.apache.james.core.Username;
+import org.apache.james.mailbox.MailboxSession;
+import org.apache.james.mailbox.MailboxSessionUtil;
+import org.apache.james.mailbox.model.ByteContent;
+import org.apache.james.mailbox.model.Mailbox;
+import org.apache.james.mailbox.model.MailboxPath;
+import org.apache.james.mailbox.model.MessageId;
+import org.apache.james.mailbox.model.ThreadId;
+import org.apache.james.mailbox.model.UidValidity;
+import org.apache.james.mailbox.postgres.PostgresMailboxAggregateModule;
+import org.apache.james.mailbox.postgres.PostgresMailboxSessionMapperFactory;
+import org.apache.james.mailbox.postgres.PostgresMessageId;
+import org.apache.james.mailbox.postgres.mail.dao.PostgresMailboxDAO;
+import org.apache.james.mailbox.store.mail.MailboxMapper;
+import org.apache.james.mailbox.store.mail.model.MailboxMessage;
+import org.apache.james.mailbox.store.mail.model.impl.PropertyBuilder;
+import org.apache.james.mailbox.store.mail.model.impl.SimpleMailboxMessage;
+import org.apache.james.server.blob.deduplication.DeDuplicationBlobStore;
+import org.apache.james.utils.UpdatableTickingClock;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.RegisterExtension;
+
+public class PostgresMessageMapperRowLevelSecurityTest {
+    private static final int BODY_START = 16;
+    private static final UidValidity UID_VALIDITY = UidValidity.of(42);
+    private static final Username BENWA = Username.of("benwa");
+    protected static final MailboxPath benwaInboxPath = MailboxPath.forUser(BENWA, "INBOX");
+    private static final MailboxSession session = MailboxSessionUtil.create(Username.of("alice@domain1"));
+    private static final MailboxSession session2 = MailboxSessionUtil.create(Username.of("bob@domain1"));
+    private static final MailboxSession session3 = MailboxSessionUtil.create(Username.of("bob@domain2"));
+
+    @RegisterExtension
+    static PostgresExtension postgresExtension = PostgresExtension.withRowLevelSecurity(PostgresMailboxAggregateModule.MODULE);
+
+    private PostgresMailboxSessionMapperFactory postgresMailboxSessionMapperFactory;
+    private Mailbox mailbox;
+
+    private Mailbox generateMailbox() {
+        MailboxMapper mailboxMapper = new PostgresMailboxMapper(new PostgresMailboxDAO(postgresExtension.getPostgresExecutor()));
+        return mailboxMapper.create(benwaInboxPath, UID_VALIDITY).block();
+    }
+
+    @BeforeEach
+    public void setUp() {
+        BlobId.Factory blobIdFactory = new HashBlobId.Factory();
+        postgresMailboxSessionMapperFactory = new PostgresMailboxSessionMapperFactory(new PostgresExecutor.Factory(new DomainImplPostgresConnectionFactory(postgresExtension.getConnectionFactory())),
+            new UpdatableTickingClock(Instant.now()),
+            new DeDuplicationBlobStore(new MemoryBlobStoreDAO(), BucketName.DEFAULT, blobIdFactory),
+            blobIdFactory);
+
+        mailbox = generateMailbox();
+    }
+
+    @Test
+    void messagesCanBeAccessedAtTheDataLevelByMembersOfTheSameDomain() throws Exception {
+        postgresMailboxSessionMapperFactory.getMessageMapper(session).add(mailbox, createMessage());
+
+        assertThat(postgresMailboxSessionMapperFactory.getMessageMapper(session2).countMessagesInMailbox(mailbox)).isEqualTo(1L);
+    }
+
+    @Test
+    void messagesShouldBeIsolatedByDomain() throws Exception {
+        postgresMailboxSessionMapperFactory.getMessageMapper(session).add(mailbox, createMessage());
+
+        assertThat(postgresMailboxSessionMapperFactory.getMessageMapper(session3).countMessagesInMailbox(mailbox)).isEqualTo(0L);

Review Comment:
   Should better name session variables to better reflect domain information IMO



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "quantranhong1999 (via GitHub)" <gi...@apache.org>.
quantranhong1999 commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1429895460


##########
mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/mail/PostgresAnnotationMapperRowLevelSecurityTest.java:
##########
@@ -0,0 +1,92 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.james.mailbox.postgres.mail;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+
+import java.time.Clock;
+
+import org.apache.james.backends.postgres.PostgresExtension;
+import org.apache.james.backends.postgres.utils.DomainImplPostgresConnectionFactory;
+import org.apache.james.backends.postgres.utils.PostgresExecutor;
+import org.apache.james.blob.api.BlobId;
+import org.apache.james.blob.api.BlobStore;
+import org.apache.james.core.Username;
+import org.apache.james.mailbox.MailboxSession;
+import org.apache.james.mailbox.MailboxSessionUtil;
+import org.apache.james.mailbox.model.MailboxAnnotation;
+import org.apache.james.mailbox.model.MailboxAnnotationKey;
+import org.apache.james.mailbox.model.MailboxId;
+import org.apache.james.mailbox.model.MailboxPath;
+import org.apache.james.mailbox.model.UidValidity;
+import org.apache.james.mailbox.postgres.PostgresMailboxAggregateModule;
+import org.apache.james.mailbox.postgres.PostgresMailboxSessionMapperFactory;
+import org.apache.james.mailbox.postgres.mail.dao.PostgresMailboxDAO;
+import org.apache.james.mailbox.store.mail.MailboxMapper;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.RegisterExtension;
+
+public class PostgresAnnotationMapperRowLevelSecurityTest {
+    private static final UidValidity UID_VALIDITY = UidValidity.of(42);
+    private static final Username BENWA = Username.of("benwa");
+    protected static final MailboxPath benwaInboxPath = MailboxPath.forUser(BENWA, "INBOX");
+    private static final MailboxSession session = MailboxSessionUtil.create(Username.of("alice@domain1"));
+    private static final MailboxSession session2 = MailboxSessionUtil.create(Username.of("bob@domain1"));
+    private static final MailboxSession session3 = MailboxSessionUtil.create(Username.of("bob@domain2"));
+    private static final MailboxAnnotationKey PRIVATE_KEY = new MailboxAnnotationKey("/private/comment");
+    private static final MailboxAnnotation PRIVATE_ANNOTATION = MailboxAnnotation.newInstance(PRIVATE_KEY, "My private comment");
+
+    @RegisterExtension
+    static PostgresExtension postgresExtension = PostgresExtension.withRowLevelSecurity(PostgresMailboxAggregateModule.MODULE);
+
+    private PostgresMailboxSessionMapperFactory postgresMailboxSessionMapperFactory;
+    private MailboxId mailboxId;
+
+    private MailboxId generateMailboxId() {
+        MailboxMapper mailboxMapper = new PostgresMailboxMapper(new PostgresMailboxDAO(postgresExtension.getPostgresExecutor()));
+        return mailboxMapper.create(benwaInboxPath, UID_VALIDITY).block().getMailboxId();
+    }
+
+    @BeforeEach
+    public void setUp() {
+        postgresMailboxSessionMapperFactory = new PostgresMailboxSessionMapperFactory(new PostgresExecutor.Factory(new DomainImplPostgresConnectionFactory(postgresExtension.getConnectionFactory())),
+            mock(Clock.class),
+            mock(BlobStore.class),
+            mock(BlobId.Factory.class));

Review Comment:
   should not use mock IMO



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "chibenwa (via GitHub)" <gi...@apache.org>.
chibenwa commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1431027437


##########
server/data/data-postgres/src/main/java/org/apache/james/rrt/postgres/PostgresRecipientRewriteTableModule.java:
##########
@@ -45,7 +45,7 @@ interface PostgresRecipientRewriteTableTable {
                 .column(DOMAIN_NAME)
                 .column(TARGET_ADDRESS)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(USERNAME, DOMAIN_NAME, TARGET_ADDRESS))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   Idem, outside of the mailbox. rls do not make sense on an email flux.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "hungphan227 (via GitHub)" <gi...@apache.org>.
hungphan227 commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1430848928


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/quota/PostgresQuotaModule.java:
##########
@@ -72,7 +72,7 @@ interface PostgresQuotaLimitTable {
                 .column(QUOTA_TYPE)
                 .column(QUOTA_LIMIT)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(QUOTA_SCOPE, IDENTIFIER, QUOTA_COMPONENT, QUOTA_TYPE))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   I have asked in https://github.com/linagora/james-project/issues/4972 and @chibenwa said that only mailbox annotation, message, mailbox message need RLS



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "chibenwa (via GitHub)" <gi...@apache.org>.
chibenwa commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1431026768


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/quota/PostgresQuotaModule.java:
##########
@@ -72,7 +72,7 @@ interface PostgresQuotaLimitTable {
                 .column(QUOTA_TYPE)
                 .column(QUOTA_LIMIT)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(QUOTA_SCOPE, IDENTIFIER, QUOTA_COMPONENT, QUOTA_TYPE))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   No personnal data on quota TBH and quota :
   
    - Are out of the mailbox so linking a domain is not meaningful
    - Quota limits are defined bu user, domain and globally. RLS do not make sens when applied globally.
    
    BTW @hungphan227 "Benoit said" is a justification - argument of authority - that shall not be used. Ideally we should discuss enough so that every body understand why a decision is taken. And be able to properly argument it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "chibenwa (via GitHub)" <gi...@apache.org>.
chibenwa commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1431027437


##########
server/data/data-postgres/src/main/java/org/apache/james/rrt/postgres/PostgresRecipientRewriteTableModule.java:
##########
@@ -45,7 +45,7 @@ interface PostgresRecipientRewriteTableTable {
                 .column(DOMAIN_NAME)
                 .column(TARGET_ADDRESS)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(USERNAME, DOMAIN_NAME, TARGET_ADDRESS))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   Idem, outside of the mailbox. rls do not make sense on an email flux, as the mail processing is not domain scoped.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "vttranlina (via GitHub)" <gi...@apache.org>.
vttranlina commented on code in PR #1862:
URL: https://github.com/apache/james-project/pull/1862#discussion_r1430845439


##########
backends-common/postgres/src/main/java/org/apache/james/backends/postgres/quota/PostgresQuotaModule.java:
##########
@@ -72,7 +72,7 @@ interface PostgresQuotaLimitTable {
                 .column(QUOTA_TYPE)
                 .column(QUOTA_LIMIT)
                 .constraint(DSL.constraint(PK_CONSTRAINT_NAME).primaryKey(QUOTA_SCOPE, IDENTIFIER, QUOTA_COMPONENT, QUOTA_TYPE))))
-            .supportsRowLevelSecurity();
+            .disableRowLevelSecurity();

Review Comment:
   I guess because it in `postgres-common` module, 
   maybe we should only RLS on mailbox module?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org


Re: [PR] JAMES-2586 add missing RLS tests [james-project]

Posted by "quantranhong1999 (via GitHub)" <gi...@apache.org>.
quantranhong1999 commented on PR #1862:
URL: https://github.com/apache/james-project/pull/1862#issuecomment-1862043650

   >: 03:14:35,257 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project james-server-data-postgres: Compilation failure: Compilation failure: 
   
   03:14:35,257 [ERROR] /home/jenkins/workspace/james_ApacheJames_PR-1862/server/data/data-postgres/src/main/java/org/apache/james/sieve/postgres/PostgresSieveModule.java:[53,37] incompatible types: org.apache.james.backends.postgres.PostgresTable.FinalStage cannot be converted to org.apache.james.backends.postgres.PostgresTable
   
   03:14:35,257 [ERROR] /home/jenkins/workspace/james_ApacheJames_PR-1862/server/data/data-postgres/src/main/java/org/apache/james/mailrepository/postgres/PostgresMailRepositoryModule.java:[83,37] incompatible types: org.apache.james.backends.postgres.PostgresTable.FinalStage cannot be converted to org.apache.james.backends.postgres.PostgresTable
   
   Could wait for this to be merged and your PR would be fine: https://github.com/apache/james-project/pull/1864#pullrequestreview-1788025514


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org