-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
When sending a serial number (SN) containing Chinese characters through the API to the server, the system does not perform effective validation or restrictions, allowing unexpected character sets to be accepted.
Steps to Reproduce
Steps to reproduce the behavior:
1.Open an API testing tool (e.g., Postman).
2.Construct a request body with a SN code containing Chinese characters, for example: "sn": "SN202501是2002".
3.Send a POST request to the specified API endpoint.
Actual Behavior
The server accepts the SN code containing Chinese characters and successfully creates the device record.
Expected Behavior
The system should reject SN codes containing non-alphanumeric characters, or at least specify the supported character set in the API documentation.
Environment (if applicable)
- OS:Windows11
- Browser / Tool:Chrome/Postman
- SDK / Client:
- Other relevant details:https://api.stayforge.net/v1/devices/org_4e8fb2461d71963a/ten_0a9ac5ef99e74ee4
Additional Context
The screenshot shows that the SN code containing Chinese characters was successfully accepted.
The API documentation does not specify any restrictions on the character set for the SN code.