the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
933 stars 111 forks source link

Error when redirected back to instance after Gmail OAuth #1580

Closed nisegami closed 2 months ago

nisegami commented 2 months ago

Describe the bug Blank screen and errors in log after Gmail extension redirect back to my snappymail instance.

To Reproduce Steps to reproduce the behavior:

  1. Go through OAuth process with Google
  2. Be redirected back to my snappymail instance.
  3. Be greeted with blank screen.

Expected behavior It should return to

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

[2024-05-14 19:53:17.691][76ebaee0] [CRITICAL]: Uncaught exception: Error: Typed property RainLoop\Model\Account::$oDomain must not be accessed before initialization in /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Model/Account.php:54
Stack trace:
#0 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Actions.php(267): RainLoop\Model\Account->Domain()
#1 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Actions.php(533): RainLoop\Actions->compileLogParams('[2024-05-14 19:...', Object(RainLoop\Model\MainAccount), Array)
#2 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Actions/UserAuth.php(155): RainLoop\Actions->LoggerAuthHelper(Object(RainLoop\Model\MainAccount), 'iarsh930@gmail....')
#3 /var/lib/snappymail/_data_/_default_/plugins/login-gmail/index.php(126): RainLoop\Actions->LoginProcess('iarsh930@gmail....', Object(SnappyMail\SensitiveString))
#4 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Plugins/Manager.php(343): LoginGMailPlugin->ServiceLoginGMail('LoginGMail')
#5 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Service.php(133): RainLoop\Plugins\Manager->RunAdditionalPart('logingmail', Array)
#6 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#7 /snappymail/snappymail/v/2.36.1/include.php(136): RainLoop\Service::Handle()
#8 /snappymail/index.php(11): include('/snappymail/sna...')
#9 {main}
NOTICE: PHP message: Uncaught exception: Error: Typed property RainLoop\Model\Account::$oDomain must not be accessed before initialization in /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Model/Account.php:54
Stack trace:
#0 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Actions.php(267): RainLoop\Model\Account->Domain()
#1 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Actions.php(533): RainLoop\Actions->compileLogParams('[2024-05-14 19:...', Object(RainLoop\Model\MainAccount), Array)
#2 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Actions/UserAuth.php(155): RainLoop\Actions->LoggerAuthHelper(Object(RainLoop\Model\MainAccount), 'iarsh930@gmail....')
#3 /var/lib/snappymail/_data_/_default_/plugins/login-gmail/index.php(126): RainLoop\Actions->LoginProcess('iarsh930@gmail....', Object(SnappyMail\SensitiveString))
#4 /snappymail/snappymail/v/2.36.1/app/libraries/RainLoop/Plugins/Manager.php(343): LoginGMailPlugin->ServiceLoginGMail('LoginGMail')
#5 /snappymail/snappymail/v...