Skip to content

Client side escaping bug prevents using any advanced commands with escaped JSON #92

Open
@vorburger

Description

@vorburger

If one currently uses our / [command] block with anything non-trivial, e.g. like this (BTW note the use of a fixed user name instead of @p due to #91):

give michaelpapa7 written_book 1 0 {pages:["{\"text\":\"Hello\"}"],title:"First Quest",author:"https://www.learn.study",display:{Lore:["The first quest is your first test..."]}} 

this does not work. There is nothing on the server log, but the Browser's Console has this:

Uncaught SyntaxError: Invalid or unexpected token

so looks like we're screwing up / missing some escaping of the JSON-like Minecraft "data" String at some stage? We probably should be correctly escaping anything end-users put into the white spaces in Scratch blocks before we send the through Vert.x into our back-end.

@edewit FYI and perhaps this is something you would like to have a go at, some time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions