Skip to content

fix(rename): block rename for password-protected paths#9434

Merged
okatu-loli merged 1 commit intomainfrom
codex/forbid-rename-on-password-path
Mar 6, 2026
Merged

fix(rename): block rename for password-protected paths#9434
okatu-loli merged 1 commit intomainfrom
codex/forbid-rename-on-password-path

Conversation

@skysliences
Copy link
Copy Markdown
Contributor

Summary

  • block single-file rename when target path is protected by meta password
  • block batch/regex rename for each file when target path is protected by meta password
  • return clear error message: "Path is password-protected and cannot be renamed."

Behavior

When a path matches a meta rule with a non-empty password (p_sub respected), rename operations are rejected with HTTP 403.

Scope

  • server/handles/fsmanage.go
  • server/handles/fsbatch.go

@okatu-loli okatu-loli merged commit 03c08cb into main Mar 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants