Chat Patches

Chat Patches

2M Downloads

Click event type not allowed: OPEN_FILE - 215.6.14-secure - 1.21.5

ninjaguardian opened this issue · 2 comments

commented

Description

When I type in chat, an error shows, which likely means the chat logs are not saving. It seems that something does not have permission for ClickEvent.Action.OPEN_URL.

How to reproduce

  1. Open a world (in my case, I used singleplayer)
  2. Type in chat
  3. Check your game logs

Expected result

It should not error while saving.

Log file link

https://mclo.gs/0VgIoWy#L2061

Specs and Details

Required information:

  • Windows 11
  • 215.6.14-secure
  • Fabric 1.21.5-0.16.14
  • Fabric API 0.125.0+1.21.5
  • YetAnotherConfigLib 3.6.6+1.21.5-fabric
  • Mod Menu 14.0.0-rc.2

Optional but suggested information:

chatpatches.json
{
"time": true,
"timeDate": "HH:mm:ss",
"timeFormat": "[$]",
"timeColor": 7631988,
"hover": true,
"hoverDate": "MM/dd/yyyy",
"hoverFormat": "$",
"hoverColor": 16777215,
"counter": true,
"counterFormat": "\u00268(\u00267x\u0026r$\u00268)",
"counterColor": 16777045,
"counterCheckStyle": false,
"counterCompact": false,
"counterCompactDistance": 0,
"boundary": true,
"boundaryFormat": "\u00268[\u0026r$\u00268]",
"boundaryColor": 5636095,
"chatlog": true,
"chatlogSaveInterval": 0,
"chatHidePacket": true,
"chatWidth": 0,
"chatHeight": 0,
"chatMaxMessages": 16384,
"chatName": true,
"chatNameFormat": "\u003c$\u003e",
"chatNameColor": 16777215,
"chatShift": 0,
"dynamicChatShift": true,
"messageDrafting": false,
"onlyInvasiveDrafting": false,
"searchDrafting": true,
"hideSearchButton": false,
"vanillaClearing": false,
"copyColor": 5636095,
"copyReplyFormat": "/msg $ ",
"caseSensitive": true,
"formatting": false,
"regex": false
}
commented

weird, it's supposed to disable the security check while it's saving but i guess it's not doing that or it's not synced up. i'm assuming it's the screenshot message that is the one with the click event? i'll try to reproduce this soon. in the meantime, to prevent log spam you can toggle off the chat log.

commented

i think i'm just really slow and forgot the one thing to actually make it work when i originally implemented the security fix. 🤦‍♂️ please try this build out: https://github.com/mrbuilder1961/ChatPatches/actions/runs/15695439754