Emoji corruption with AMQP
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- backend, networking
调研方向
Start by tracing the AMQP message path when transport.transformer=jms is enabled, focusing on where message text is converted between AMQP and JMS representations. Compare the handling of ordinary UTF-8 text with supplementary characters such as 🙏, and check the relevant AMQP transformation tests. Done means the reproduced emoji round trip yields valid UTF-8 while existing text compatibility remains intact.
由索引模型根据 Issue 内容生成。
描述
Our broker's AMQP configuration uses the transport.transformer=jms setting for compatibility with application using OpenWire to connect to the same queues.
We got a report from a user using ActiveMQ 6.2.5 that emojis got corrupted when part of UTF-8 text. This did no happen in 6.2.1.
I have verified that the bug exists in 6.3.2 as well. It looks related Java's "modified" UTF-8 being used instead of actual UTF-8.
How to reproduce, using qpid_messaging Python API:
>>> import qpid_messaging
>>> emoji = "\U0001F64F"
>>> emoji
'🙏'
>>> conn = qpid_messaging.Connection.establish("server.address", protocol="amqp1.0")
>>> sess = conn.session(transactional=True)
>>> recv = sess.receiver("test_queue")
>>> sender = sess.sender("test_queue")
>>> sender.send(qpid_messaging.Message("åäö"))
>>> sess.commit()
>>> m = recv.fetch()
>>> sess.commit()
>>> m.content
b'\xc3\xa5\xc3\xa4\xc3\xb6'
>>> m.content.decode()
'åäö'
>>> sender.send(qpid_messaging.Message(emoji))
>>> sess.commit()
>>> m = recv.fetch()
>>> sess.commit()
>>> m.content
b'\xed\xa0\xbd\xed\xb9\x8f'
>>> m.content.decode()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte
- 主要语言
- Java
- 星标
- 2.5k
- 派生
- 1.5k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 49
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/activemq 的其他 Issue
-
ServerSessionImpl gets stuck if the WorkManager encounteres a RejectedExecutionException可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
apache/activemq#2647 · 5 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 95/100
apache/activemq#2623 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
apache/activemq#2558 · 2 条评论 ·
维护者通常 1 天内回复
-
Stale
难度 2/5 1-3 小时 新手友好度 72/100
apache/activemq#1999 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 74/100
apache/activemq#1871 · 2 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
scylladb/scylla-cdc-source-connector#350 ·
维护者通常 1 天内回复
-
agent:working documentation enhancement go:build lane:needs-decision
难度 2/5 1-3 小时 新手友好度 72/100
Sanne/incus-spawn#1435 · 3 条评论 ·
维护者通常 1 天内回复
-
area:shuffle bug priority:high requires-triage
难度 2/5 1-3 小时 新手友好度 72/100
apache/datafusion-comet#7062 ·
维护者通常 1 天内回复
-
wait for review
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
enhancement good first issue up-for-grabs
难度 2/5 1-3 小时 新手友好度 80/100
AnikethTS/ChangeRadar#22 ·
维护者通常 1 天内回复