Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.27.0 issue selecting different email address #1024

Closed
ivnmad opened this issue Mar 20, 2023 · 13 comments
Closed

v2.27.0 issue selecting different email address #1024

ivnmad opened this issue Mar 20, 2023 · 13 comments
Labels
bug Something isn't working

Comments

@ivnmad
Copy link

ivnmad commented Mar 20, 2023

I upgraded from v2.26.4 to v2.27.0
I can log in normally, but when I select a different email address from the drop down menu on the top right, SnappyMail gets stuck loading and never shows the inbox again.
Everything works fine if I revert back to v2.26.4

@the-djmaze
Copy link
Owner

I am not able to reproduce the problem and it works for my gmail and other accounts.
Could you provide log data?

@setoy
Copy link

setoy commented Mar 20, 2023

I think this is related: #1026 (comment)

@ivnmad
Copy link
Author

ivnmad commented Mar 20, 2023

I can confirm that #1026 is describing the same issue I was reporting here.

@setoy
Copy link

setoy commented Mar 20, 2023

Bringing over my comment.

This also happens for me when just logging in.

Console:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-mItykQmXoPZYP1W1GLnoSnPldYzwraPOT9Zq5T55bjU='), or a nonce ('nonce-...') is required to enable inline execution.

@the-djmaze
Copy link
Owner

Maybe #1032 is related

@PeopleInside
Copy link

This issue still be present in the new version v2.27.1 that also logged me out after the update.
I need revert back to the old version that works: 2.26.4

All new release are broken and not usable for me.
I cannot use a client email that never allow to switching by accounts and that create a log out after the update, why update make the session to be no more valid?
Looks the new version 2.27.0 and 2.27.1 are broken and bugged somewhere.

@the-djmaze
Copy link
Owner

the-djmaze commented Mar 21, 2023

What happens when you disable cache?

application.ini [cache] enable = Off

If that works, the problem is the new cache handling at

$oActions->verifyCacheByKey($sCacheFileName);

and
$oActions->cacheByKey($sCacheFileName);

@PeopleInside
Copy link

After the update also with cache off my session is logged out so I need do access again.
This let me think there is some BUG somewhere.

Let see now if I log in with the cache off and switch between accounts.
With the cache off I can switch between accounts no more issue... just the issue after upgrade or downgrade I loose my session.

Hem I need keep cache off for having my webmail to work?
Maybe I need keep off until a fix is not released and this issue closed?

@PeopleInside
Copy link

Replacing that string never resolve.
I need keep the cache off.

the-djmaze pushed a commit that referenced this issue Mar 21, 2023
@the-djmaze
Copy link
Owner

Replacing that string never resolve.

No, it should be disabled and then try again (see commit).
And whole file https://raw.githubusercontent.com/the-djmaze/snappymail/master/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php

@PeopleInside
Copy link

It works

@ivnmad
Copy link
Author

ivnmad commented Mar 21, 2023

I can confirm that disabling cache solves the issue.
I can switch from one account to another normally.

@PeopleInside
Copy link

@ivnmad if you follow the file replacment you can again enable the cache.
#1024 (comment)

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

No branches or pull requests

4 participants