Skip to content

fix(initializeSession): only log HMAC problem to critical logs if indeed critical#58975

Open
szaimen wants to merge 1 commit intomasterfrom
enh/42157/hid-warning
Open

fix(initializeSession): only log HMAC problem to critical logs if indeed critical#58975
szaimen wants to merge 1 commit intomasterfrom
enh/42157/hid-warning

Conversation

@szaimen
Copy link
Contributor

@szaimen szaimen commented Mar 16, 2026

@szaimen szaimen added this to the Nextcloud 34 milestone Mar 16, 2026
@szaimen szaimen added bug 2. developing Work in progress labels Mar 16, 2026
…eed critical

Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/42157/hid-warning branch from a4031be to b0bcd1f Compare March 16, 2026 11:01
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Mar 16, 2026
@szaimen
Copy link
Contributor Author

szaimen commented Mar 16, 2026

/backport to stable33

@szaimen
Copy link
Contributor Author

szaimen commented Mar 16, 2026

/backport to stable32

@szaimen szaimen marked this pull request as ready for review March 16, 2026 11:41
@szaimen szaimen requested a review from a team as a code owner March 16, 2026 11:41
@szaimen szaimen requested review from Altahrim, ArtificialOwl, ChristophWurst, come-nc, icewind1991 and miaulalala and removed request for a team March 16, 2026 11:41
Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

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

makes sense to me

}
return $this->decryptWithoutSecret($authenticatedCiphertext, $password);
} catch (Exception $e) {
} catch (\RuntimeException|Exception $e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} catch (\RuntimeException|Exception $e) {
} catch (Exception $e) {

RuntimeException extends Exception already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: HMAC does not match. Could not decrypt or decode encrypted session data

3 participants