Encoded input error from Africastalking #257

Closed
opened 2025-01-07 10:30:08 +01:00 by Alfred-mk · 1 comment
Member
  • Africastalking are sending some improperly encoded input.
  • A plus sign (+) should be encoded as %2B, but instead it is passed as +
  • This is then decoded as a space, leading to an invalid input

Example from the server logs:
atserver:parse.go:46 Received request: {"body":"phoneNumber=%2B254724942097\u0026serviceCode=%2A483%2A061%23\u0026text=1%2A+254705136690\u0026sessionId=ATUid_c32d6023259534334f0d567b90e41ae4\u0026networkCode=63902"}=??

The text is decoded as text=1* 254705136690

The correct encoding for the text should be:
text=1%2A%2B254705136690

This would then be decoded as text=1*+254705136690

- Africastalking are sending some improperly encoded input. - A plus sign (+) should be encoded as %2B, but instead it is passed as + - This is then decoded as a space, leading to an invalid input Example from the server logs: `atserver:parse.go:46 Received request: {"body":"phoneNumber=%2B254724942097\u0026serviceCode=%2A483%2A061%23\u0026text=1%2A+254705136690\u0026sessionId=ATUid_c32d6023259534334f0d567b90e41ae4\u0026networkCode=63902"}=??` The text is decoded as `text=1* 254705136690` The correct encoding for the text should be: `text=1%2A%2B254705136690` This would then be decoded as `text=1*+254705136690`
lash added the
Kind/Bug
Priority
High
Runner
AT
Activity
QA
labels 2025-01-07 10:34:20 +01:00
lash added this to the 2025.01.09 milestone 2025-01-07 10:34:23 +01:00
Alfred-mk was assigned by lash 2025-01-07 10:34:28 +01:00
lash added
Activity
Validate
and removed
Activity
QA
labels 2025-01-08 13:34:22 +01:00
carlos added
Activity
QA
and removed
Activity
Validate
labels 2025-01-09 08:09:31 +01:00
Owner

@willruddick related to latest "network issues by provider" received by Njambi.

@willruddick related to latest "network issues by provider" received by Njambi.
lash closed this issue 2025-01-13 15:14:07 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#257
No description provided.