Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Emails receiving doesn't work if other addons have been added to the project #18

Closed
imorenov94 opened this issue Sep 9, 2021 · 1 comment
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@imorenov94
Copy link

imorenov94 commented Sep 9, 2021

Environment:
Jmix version: 1.0.2

Steps:

  1. Clone project from with_some_addons branch
  2. Run the app
  3. Create a new configuration for IMAP
  4. Open IMAP Message browser
    ER: emails should be download by the scheduler into the browser
    AR: emails haven't been downloaded
    WA: For projects without any addons IMAP works correctly
@imorenov94 imorenov94 changed the title Doesn't work emails downloading if other addons have been added in project Emails receiving doesn't work if other addons have been added to the project Sep 9, 2021
@knstvk knstvk added the type: bug Something isn't working label Sep 14, 2021
@knstvk knstvk added this to the 1.1.0 milestone Sep 14, 2021
@m-orlova
Copy link

@imorenov94 It is not a bug. Mailboxes are synchronized by a system user, so the system user should have an access to the ImapMailBox entity to load mailboxes from a database. But in this project the system user does not have any granted authority, so that's why it does not have access to the ImapMailBox entity. For new projects, Jmix studio generates DatabaseUserRepository that overrides the 'initSystemUser' method in which granted authority with full access role is set for system user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants