Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Emoji corruption with AMQP

未关闭
#2,644 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java, python

调研方向

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/activemq 的其他 Issue

查看 apache/activemq 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。