Skip to content

fix(admin_audit): Do not log errors for new files - #47071

Merged
AndyScherzinger merged 1 commit into
masterfrom
fix/no-error-new-file-audit
Aug 7, 2024
Merged

fix(admin_audit): Do not log errors for new files#47071
AndyScherzinger merged 1 commit into
masterfrom
fix/no-error-new-file-audit

Conversation

@juliusknorr

@juliusknorrjuliusknorr commented Aug 6, 2024

Copy link
Copy Markdown
Member

Avoid logging an error for cases when the audit log is triggered on a new file during the BeforeNodeReadEvent as in this case we get an NonExistingFile as the file has no file id yet

Sample error trace:

Screenshot 2024-08-06 at 14 54 11

Checklist

@juliusknorr
juliusknorrforce-pushed the fix/no-error-new-file-audit branch from 7f5da07 to a56f5d4CompareAugust 6, 2024 12:52
@juliusknorr
juliusknorr requested review from a team, artonge, icewind1991 and yemkareems and removed request for a teamAugust 6, 2024 12:55
@juliusknorrjuliusknorr added this to the Nextcloud 30 milestone Aug 6, 2024
@AndyScherzinger
AndyScherzingerforce-pushed the fix/no-error-new-file-audit branch from a56f5d4 to 367c36aCompareAugust 6, 2024 18:07
@AndyScherzinger
AndyScherzingerforce-pushed the fix/no-error-new-file-audit branch from 367c36a to 0b399d2CompareAugust 7, 2024 07:38
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
juliusknorrforce-pushed the fix/no-error-new-file-audit branch from 0b399d2 to 1c0f02eCompareAugust 7, 2024 07:50
@AltahrimAltahrim mentioned this pull request Aug 7, 2024
@AndyScherzinger
AndyScherzinger merged commit 0050e1e into masterAug 7, 2024
@AndyScherzinger
AndyScherzinger deleted the fix/no-error-new-file-audit branch August 7, 2024 09:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews30-feedbackbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@juliusknorr@AndyScherzinger@miaulalala