pterodactyl / pterodactyl/panel

Configuration Files Json Parser issue

Open
#4,366 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
9.2k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

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?
  • I have searched the existing issues before opening this issue.
  • 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.
  • 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation file or test is named in the report. Start by locating the configuration-files JSON parser and reproduce the example against a missing txData/default/config.json path. Done means checking or editing the option does not create missing folders or an empty file.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.