Skip to content

Conversation

@joshtrichards
Copy link
Member

  • Resolves: #

Summary

Optimize the .htaccess and data-dir protection update handling and make more defensive.

  • idempotent now: only update main .htaccess file when the generated block actually changes
  • centralized probe bypass logic in isHtaccessWorking
  • made read/write/existence checks/error detection a bit more robust/thorough
  • low disk space guard now covers entire file body
  • additional clarifying docblocks/comments

TODO

  • ...

Checklist

@joshtrichards joshtrichards added enhancement feature: install and update ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) 3. to review Waiting for reviews labels Dec 4, 2025
@joshtrichards joshtrichards marked this pull request as ready for review December 4, 2025 22:55
@joshtrichards joshtrichards requested a review from a team as a code owner December 4, 2025 22:55
@joshtrichards joshtrichards requested review from ArtificialOwl, CarlSchwan, icewind1991 and leftybournes and removed request for a team December 4, 2025 22:55
@joshtrichards joshtrichards added this to the Nextcloud 33 milestone Dec 4, 2025
Optimize the .htaccess and data-dir protection updates and more defensive.

- make the write idempotent so we only update file when the generated block actually changes
- more robust read/write/existence checks
- improve low disk space guard
- additional docblocks/comment clarity

Signed-off-by: Josh <[email protected]>
@joshtrichards joshtrichards force-pushed the jtr/refactor-setup-htaccess-updates branch from cffbae6 to 7473f2c Compare December 5, 2025 00:57
Versus the installroot/webroot .htaccess

Signed-off-by: Josh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement feature: install and update ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants