-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Use gson to replace fastjson #2462
Comments
@maixiaohai IMHO,this is a very good suggestion, but due to some historical reasons, rocketmq uses some JSON format that only fastjson supports, so it is a bit difficult, but I think everyone can discuss it firstly @zongtanghu @ShannonDing @RongtongJin @vongosling |
If we could make our data more standard JSON format, maybe smoothly transformed from one JSON lib to another lib. Who wants to have a try? |
I’ve changed some code to avoid fastjson importing from client SDK,but server still have dependency which import from acl module and dledger |
There are many similar articles that you can refer to[1][2][3]. Of course, this is just the tip of the iceberg. To enable smooth migration, I suggest you look for some standard tools to compare serialization and deserialization between different libs. Or, you could write a tool by yourself. That's definitely a gospel for those who are beset by the problem. [1] alibaba/fastjson#3024 |
I‘ve used Gson to replace fastjson in remoting module and passed all unit tests. As your suggestion, this is not enough,the result of serialization and deserialization should both be checked.Do I understand right? |
Yep~ how's this going so far? |
So sorry for delay reply. In our production cluster, gson version worked well, and all the clients upgraded to new version. |
Great, please feel free to ping the community if you have any problems. This issue will be open for a long time until reasonable RIP output is provided. More guys are welcome to participate in the community through this case. |
I recently sorted out the usage of fastjson in different model(acl remoting broker client tools and common). Here is what I thought
what's the community's opinions? @vongosling @duhenglucky @RongtongJin @ShannonDing |
Maybe we should support gson or jackson, not only gson. |
It seems jackson have security problem too. |
You can use protobuf to replace fastjson. |
i consider that a json abstract layer may be better |
Do we have plan to replace fastjson with Gson considering the security problem
The text was updated successfully, but these errors were encountered: