roblox-bug-tracker icon indicating copy to clipboard operation
roblox-bug-tracker copied to clipboard

FilterStringForPlayerAsync Error

Open aemino opened this issue 10 years ago • 4 comments

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..

aemino avatar Aug 10 '15 15:08 aemino

This could have something to do with the ASP.Net request validation; perhaps it's erroring with repeated non-alphanumeric symbols.

aemino avatar Aug 27 '15 04:08 aemino

@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 avatar Aug 30 '15 19:08 spacek531

@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.

aemino avatar Sep 02 '15 00:09 aemino

@Anaminus Updated with more information.

aemino avatar Sep 13 '15 15:09 aemino