Skip to content

bug: Set Variables API accepts values ​​of incorrect types. #2785

@WeylonSantana

Description

@WeylonSantana

Description

If you sent incorrect values ​​to the API for setting variables of types that the variable doesn't belong to, the value is set without errors; but sometimes I even got an error like "not possible to compare != between bool and string" and response 500 from server.

Steps to Reproduce

1 - Start the server with the API enabled.
2 - Send a body with the incorrect type. Example for an Integer variable: { "Value": false }
3 - Listen for the variable change with a common event; you'll see the value change to false if you add it to the chat.

Version with bug

v0.8.0.564-beta+22fee7b2380c93cccc734f0ddf1f5f31a9afa114

Last version that worked well

Unknown

Affected platforms

Windows 10

Is this bug platform-specific?

  • Yes this is platform-specific issue

Did you find any workaround?

No response

Relevant log output

Duplicate Bug Check

  • This bug report is not a duplicate to the best of my knowledge.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingverifiedIssue has been verified as valid/existing.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions