Skip to content

fix(sftp): record file creation separately from uploads - #2159

Merged
w940853815 merged 1 commit into
devfrom
pr@dev@fix_sftp_file-create
Oct 10, 2026
Merged

w940853815 merged 1 commit into
devfrom
pr@dev@fix_sftp_file-create

Conversation

@fit2bot

@fit2bot fit2bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Record create-only SFTP saves as create after the target file is created, instead of recording an upload for the temporary file. Return the final audit record to the file recorder and reject a target that already exists. Ordinary uploads and existing-file editor saves retain their current audit behavior.

Requires the matching Core audit operation and Luna create-only save fixes. Historical logs are unchanged.

TAPD: https://www.tapd.cn/tapd_fe/45454465/bug/detail/1145454465001077136

Validation: focused SFTP and SaveFile tests cover creation, existing-file conflicts, empty uploads, permission denial, and normal editing. Local browser verification shows "创建文件" for a newly created file. Test files are kept outside the repository and are excluded from this PR.

Companion PRs: jumpserver/jumpserver#17678, jumpserver/luna#1752.

@fit2bot
fit2bot requested a review from a team October 10, 2026 08:19
@sonarqubecloud

Copy link
Copy Markdown

@w940853815
w940853815 merged commit 3c39afc into dev Oct 10, 2026
11 checks passed
@w940853815
w940853815 deleted the pr@dev@fix_sftp_file-create branch October 10, 2026 08:23
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.

2 participants