-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
query and payload fields in _PushStatus encoding are incorrect #8030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
type:question
Support or code-level question
Comments
Thanks for opening this issue!
|
It looks like an inconvenience, but probably not a bug, as no functionality seems to be impaired. I also suggest to take a look at the git blame to see whether there was a rationale for this. |
5 tasks
Seems like current way might be correct because of |
So this can be closed? |
Yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Issue Description
The
query
andpayload
fields in the_PushStatus
class are sent to the clients doubly encoded, meaning they have to be decoded twice by any REST client.Steps to reproduce
Send a push notification that would produce an error so the
errorMessage
field is populatedFetch any object from the
_PushStatus
class after sending a push notification.Actual Outcome
The
query
andpayload
fields have to first be decoded as a string, then that string has to be decoded to the proper object. It's possible the server is either storing this data as encoded or it's encoding these fields twice when sending to clients. See the extra escaping sent from the server:Expected Outcome
The objects in
query
andpayload
fields should be able to be decoded directly instead being decoded twice.Environment
Server
5.2.0
Database
Client
Logs
The text was updated successfully, but these errors were encountered: