Repository navigation
Detect unwritable Paper configuration files - #193
Merged
Merged
Conversation
JulianVennen
approved these changes
Nov 13, 2026
…itable # Conflicts: # lang/en.json # src/Analyser/PaperAnalyser.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When Paper cannot save one of its configuration files, it logs this warning and keeps settings that are missing from the file only in memory.
This was not detected before.
This PR adds a problem that names the affected file and suggests checking its permissions.
Paper only logs this warning for an
AccessDeniedException; other save errors are thrown, so the pattern anchors on the fixed Paper text and captures only the path.The exception is about a temporary file next to the configuration file, because Configurate saves atomically, so the solution names the configuration file from the message rather than the temporary file.
The existing
PaperCheckPermissionsSolutionis reused instead of adding a new solution.The problem is registered on Paper, so Folia inherits it; Spigot and Bukkit don't have this message.
Changes
ConfigNotWritableProblemfor PaperPaperAnalyserpaper-config-not-writable-problemtranslationpaper-config-not-writable-26-3.logfixture