roblox-bug-tracker
roblox-bug-tracker copied to clipboard
FilterStringForPlayerAsync Error
There are multiple special cases where FilterStringForPlayerAsync is causing a HTTP 500 [Internal Server Error] response. I spent a while trying various different strings but couldn't manage to narrow down the exact cause of the issue.
Here's an example reproduction script:
game:GetService("Chat"):FilterStringForPlayerAsync("For example, consider a free particle. In quantum mechanics, there is wave–particle duality, so the properties of the particle can be described as the properties of a wave. Therefore, its quantum state can be represented as a wave of arbitrary shape and extending over space as a wave function.", player)
This issue was tested with 13+ accounts, but very well may occur for accounts younger than 13.
After a half hour of testing, I've been unable to determine the exact cause of this issue. However, it seems to occur particularly with long messages containing non-alphanumeric characters, messages with repeated non-alphanumeric characters, and messages that contain more than a certain amount of non-alphanumeric characters..
This could have something to do with the ASP.Net request validation; perhaps it's erroring with repeated non-alphanumeric symbols.
@Programmix I don't see any repeated non-alphanumeric symbols. Is there a double space or double hyphen in the string? What are examples of strings that make it fail, and what are examples that make it succeed?
@spacek531 It occurs with repeated non-alphanumeric, but also just certain amounts of non-alphanumeric characters. It's really hard to track down the exact cause of the issue because it occurs in many instances.
@Anaminus Updated with more information.