Skip to content

[stable30] fix(admin_audit): Fix incorrect truncation of files path in admin audit log - #51681

Merged
provokateurin merged 1 commit into
stable30from
backport/50992/stable30
Mar 25, 2025
Merged

[stable30] fix(admin_audit): Fix incorrect truncation of files path in admin audit log#51681
provokateurin merged 1 commit into
stable30from
backport/50992/stable30

Conversation

@ShGKme

Copy link
Copy Markdown
Contributor

@ShGKmeShGKme added the 3. to review Waiting for reviews label Mar 25, 2025
@ShGKmeShGKme added this to the Nextcloud 30.0.9 milestone Mar 25, 2025
@ShGKme
ShGKme requested review from come-nc and susnuxMarch 25, 2025 10:04
@ShGKmeShGKme self-assigned this Mar 25, 2025
Comment threadapps/admin_audit/lib/Actions/Files.php Fixed
…it log
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme
ShGKmeforce-pushed the backport/50992/stable30 branch from 14ee996 to 4f30f53CompareMarch 25, 2025 10:09

@provokateurinprovokateurin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes the file doesn't exist, because it was migrated in #47865.
You need to change this line instead:

'path' => mb_substr($file->getInternalPath(), 5)

@provokateurinprovokateurin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah FFS should have taken one more second to check 😅
The code is already changed, it's just duplicate on master/31.

@provokateurin
provokateurin merged commit d903417 into stable30Mar 25, 2025
@provokateurin
provokateurin deleted the backport/50992/stable30 branch March 25, 2025 10:34
@AltahrimAltahrim mentioned this pull request Apr 3, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ShGKme@provokateurin@github-advanced-security@come-nc