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

[stable27] fix(session): Log when crypto session data is lost #41006

Merged
merged 2 commits into from Feb 22, 2024

Conversation

backportbot-nextcloud[bot]
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Oct 20, 2023

@ChristophWurst ChristophWurst added the 3. to review Waiting for reviews label Oct 20, 2023
);
} catch (\Exception $e) {
logger('core')->critical('Could not decrypt or decode encrypted session data', [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this log something when your session is brand new? because $this->session->get( returns null => we continue with empty string and then decrypt throws?

Also json_decode('', …) throws which could be returned by decrypt in case everything was empty, didn't dive too deep into it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cherry-picked to this backport, too

@skjnldsv skjnldsv mentioned this pull request Oct 25, 2023
6 tasks
@ChristophWurst ChristophWurst added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Nov 7, 2023
@ChristophWurst ChristophWurst marked this pull request as draft November 7, 2023 08:19
@blizzz blizzz mentioned this pull request Nov 13, 2023
@blizzz
Copy link
Member

blizzz commented Nov 16, 2023

moving to 27.1.5

@blizzz blizzz mentioned this pull request Dec 4, 2023
@blizzz
Copy link
Member

blizzz commented Dec 7, 2023

moving to 27.1.6

@blizzz blizzz mentioned this pull request Jan 15, 2024
@blizzz
Copy link
Member

blizzz commented Jan 18, 2024

Still in draft state.

moving to 27.1.7

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 18, 2024
@ChristophWurst ChristophWurst marked this pull request as ready for review January 18, 2024 12:53
@Altahrim Altahrim mentioned this pull request Feb 9, 2024
10 tasks
@susnux susnux added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 9, 2024
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@Altahrim Altahrim mentioned this pull request Feb 9, 2024
7 tasks
This was referenced Feb 20, 2024
@skjnldsv skjnldsv merged commit 87fc748 into stable27 Feb 22, 2024
36 of 37 checks passed
@skjnldsv skjnldsv deleted the backport/40879/stable27 branch February 22, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish feature: authentication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants