{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "513115",
   "self": "https://bugs.mojang.com/rest/api/2/issue/513115",
   "key": "BDS-17453",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "5",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10303",
         "value": "Confirmed",
         "id": "10303",
         "disabled": false
      },
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2024-01-04T19:36:05.000+0200",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-17453/watchers",
         "watchCount": 1,
         "isWatching": false
      },
      "created": "2022-08-11T12:50:02.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "21139"
      ],
      "issuelinks": [],
      "assignee": null,
      "updated": "2024-01-04T19:36:05.000+0200",
      "status": "5",
      "description": "The new script watchdog seems to cause a server crash if the config/default/permissions.json file is missing.\r\n{noformat}\r\n[2022-08-11 11:41:45:142 INFO] Package: com.mojang.minecraft.dedicatedserver\r\nVersion: 1.19.20.02\r\nOS: Linux\r\nServer start: 2022-08-11 11:41:44 CEST\r\nDmp timestamp: 2022-08-11 11:41:45 CEST\r\nUpload Date: 2022-08-11 11:41:45 CEST\r\nSession ID: 219b0aa7-ddfe-48bb-a758-850c74ee1a09\r\nCommit hash: 1aa76c5813541fe1bbb16c4e3a0af2b29474dc34\r\nBuild id: 10811062\r\nCrashReporter Key: 6f3662c9-7e23-3de7-a0c5-d7af39a21f73Crash\r\n[2022-08-11 11:41:45:142 INFO] \u00a0 \u00a0 at __clone (UnknownFile:?){noformat}\r\nh3. Steps to reproduce\r\n * Download and unpack the 1.19.20 server files\r\n * Add a world with the Gametest experiment enabled to the server\r\n * Make sure script-watchdog-enable is enabled (which it should be by default)\r\n * Remove the config/default/permissions.json file (or just the entire config folder)\r\n\r\nh3. Expected behavior\r\n\r\nWhen running scripts, a missing permissions.json file will simply be interpreted as an empty list of permissions. This behavior would also make sense here.\r\n\r\nAlternatively, the server could log a proper error message and shut down (and tbh, BDS could use some proper error messages in many other places as well).\r\n\r\n\u00a0",
      "customfield_11100": 0.0,
      "customfield_11300": null,
      "customfield_11500": "868891",
      "customfield_12503": null,
      "customfield_12700": "[Briefly describe the bug here]\r\n\r\n*Steps to Reproduce:*\r\n# [Step 1]\r\n# [Step 2]\r\n# [Step 3]\r\n\r\n*Observed Results:*\r\n[Describe what happens]\r\n\r\n*Expected Results:*\r\n[Describe what should happen]\r\n\r\n*Screenshots/Videos attached:* [please attach an image or short video]\r\n\r\n*Notes:*",
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [],
      "summary": "Server crashes if script-watchdog is enabled and default permissions.json is missing",
      "creator": "kurtthiemann",
      "reporter": "kurtthiemann",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i29yen:",
      "environment": "Manjaro Linux",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/513115/comment/1191694",
               "id": "1191694",
               "author": "JIRAUSER648376",
               "body": "Hi\r\n\r\nDoes this issue occur every time? Is Win 10 BDS affected as well?\u00a0\r\n\r\nThis ticket will automatically reopen when you reply.\u00a0",
               "updateAuthor": "JIRAUSER648376",
               "created": "2022-08-11T16:58:21.450+0300",
               "updated": "2022-08-11T16:58:21.450+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/513115/comment/1191730",
               "id": "1191730",
               "author": "kurtthiemann",
               "body": "The issue occurs on every start if the config/default/permissions.json file is missing, the GameTest experiment is enabled, and the script-watchdog is enabled.\r\n\r\nThe same issue occurs on the Windows version, except that there is no message about the crash. The server just exits immediately after it starts.\r\n\r\nI tested this in a VirtualBox VM running Windows 11.",
               "updateAuthor": "kurtthiemann",
               "created": "2022-08-11T18:54:33.670+0300",
               "updated": "2022-08-11T18:56:25.194+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/513115/comment/1298311",
               "id": "1298311",
               "author": "greymagic27",
               "body": "Resolving this as CR as we can no longer reproduce this bug.\r\n\r\nIf this is still an issue please remake the bug report and include detailed reproduction steps, as well as a video showcasing the bug.\r\n\r\n*Quick Links*:\r\n\ud83d\udcd3 [Bug Tracker Guidelines|https://aka.ms/MCBugTrackerHelp] -- \ud83d\udcac [Community Support|https://discord.com/invite/58Sxm23] -- \ud83d\udce7 [Mojang Support (Technical Issues)|https://aka.ms/Minecraft-Support] -- \ud83d\udce7 [Microsoft Support (Account Issues)|https://support.xbox.com/contact-us/]\r\n\ud83d\udcd3 [Project Summary|https://bugs.mojang.com/projects/BDS/summary] -- \u270d\ufe0f [Feedback and Suggestions|https://discord.gg/MXxTqXnuD5] -- \ud83d\udcd6 [BDS Wiki|https://minecraft.wiki/w/Bedrock_Dedicated_Server] -- \ud83d\udcd6 [FAQs|https://help.minecraft.net/hc/en-us/articles/360035131651-Dedicated-Servers-for-Minecraft-on-Bedrock-]",
               "updateAuthor": "greymagic27",
               "created": "2024-01-04T19:36:05.896+0200",
               "updated": "2024-01-04T19:36:05.896+0200"
            }
         ],
         "maxResults": 3,
         "total": 3,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-17453/votes",
         "votes": 0,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 4,
      "total": 4,
      "histories": [
         {
            "id": "2651720",
            "author": "JIRAUSER648376",
            "created": "2022-08-11T16:58:21.453+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "10001",
                  "toString": "Awaiting Response"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         },
         {
            "id": "2651823",
            "author": "arisabot",
            "created": "2022-08-11T18:54:43.161+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": "10001",
                  "fromString": "Awaiting Response",
                  "to": null,
                  "toString": null
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "5",
                  "fromString": "Resolved",
                  "to": "4",
                  "toString": "Reopened"
               }
            ]
         },
         {
            "id": "2652451",
            "author": "JIRAUSER648376",
            "created": "2022-08-12T17:00:58.330+0300",
            "items": [
               {
                  "field": "ADO",
                  "fieldtype": "custom",
                  "from": null,
                  "fromString": null,
                  "to": null,
                  "toString": "868891"
               },
               {
                  "field": "Confirmation Status",
                  "fieldtype": "custom",
                  "from": "10300",
                  "fromString": "Unconfirmed",
                  "to": "10303",
                  "toString": "Confirmed"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "4",
                  "fromString": "Reopened",
                  "to": "4",
                  "toString": "Reopened"
               }
            ]
         },
         {
            "id": "2919569",
            "author": "greymagic27",
            "created": "2024-01-04T19:36:05.901+0200",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "5",
                  "toString": "Cannot Reproduce"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "4",
                  "fromString": "Reopened",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}