panel icon indicating copy to clipboard operation
panel copied to clipboard

Configuration Files Json Parser issue

Open fasterplayer opened this issue 1 year ago • 1 comments

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?

  • [X] I have searched the existing issues before opening this issue.
  • [X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • [X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

fasterplayer avatar Sep 08 '22 20:09 fasterplayer

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.

DaneEveritt avatar Sep 10 '22 17:09 DaneEveritt