pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.59k stars 1.64k forks source link

Configuration Files Json Parser issue #4366

Open fasterplayer opened 2 years ago

fasterplayer commented 2 years ago

Current Behavior

Creates the non existant folders and file to find the the specified option to check/edit.

The config file will be empty. This is an issue as if i try to turn on TxAdmin after, it will try to use the empty file and return an error.

Expected Behavior

Should not create the folders and the file if they do not exist.

Steps to Reproduce

Use this in the Configuration files:

"txData/default/config.json": {
        "parser": "json",
        "find": {
            "webServer.disableNuiSourceCheck": true
        }
    }

Panel Version

1.10.1

Wings Version

1.7.0

Games and/or Eggs Affected

FiveM but not limited to

Docker Image

quay.io/parkervcp/pterodactyl-images:base_debian

Error Logs

No response

Is there an existing issue for this?

DaneEveritt commented 2 years ago

Will need to change how this works to also support a create_if_missing key. What you're asking for is a breaking change to how the software has worked for years.