Skip to content
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

[BUG]msgpack序列化问题 #380

Open
yuezeer opened this issue Oct 28, 2024 · 7 comments
Open

[BUG]msgpack序列化问题 #380

yuezeer opened this issue Oct 28, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@yuezeer
Copy link

yuezeer commented Oct 28, 2024

Tiny RDM Version
What version of Tiny RDM are you using?
V1.2.1
OS Version
Which OS and version you launch? (Mac/Windows/Linux)
Windows
Redis Version
Which version of Redis are you using?
7.0.15
Describe the bug
A clear and concise description of what the bug is.

Steps to Reproduce:

1.我存储的数据,在使用json + msgpack的解码方式展示后,点击保存,在代码中反序列化会出现类型异常转换,但是我使用rdm不做任何修改,保存后就不会有类型转换异常的bug

@tiny-craft tiny-craft added the bug Something isn't working label Oct 30, 2024
@tiny-craft
Copy link
Owner

有测试用例吗,发个能重现的内容给我方便调试

@yuezeer
Copy link
Author

yuezeer commented Oct 31, 2024

测试用例.zip
这是我测试的一个案例,目前问题主要在于枚举类型的反序列化,请帮忙看下具体原因

@tiny-craft
Copy link
Owner

@yuezeer 麻烦把你示例的这个值在rdm上的二进制格式也发给我。
如果是在rdm上面把1改为0再保存,代码能不能正常解析

@tiny-craft
Copy link
Owner

大概定位到问题,应该是整形被json序列化成map之后,存成了float64导致的

@yuezeer
Copy link
Author

yuezeer commented Nov 4, 2024

早上在忙工作,刚看到消息,报错就是从float64的类型转换异常,如果存成了float64,那么二进制格式变长也说的通了,还需要帮忙再测试下嘛

@tiny-craft
Copy link
Owner

不用了哈,已经提交修复代码了

@yuezeer
Copy link
Author

yuezeer commented Nov 4, 2024

好的,帅的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants