AMQContentHeader toString uses dashes instead of underscores for property names
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 50/100
Research direction
Start in com.rabbitmq.client.impl.AMQContentHeader and inspect toString together with appendPropertyDebugStringTo. Update the displayed AMQP property names to use underscores rather than dashes, then verify the resulting output matches the official property names listed in the issue.
Written by the indexing model from the issue text.
Description
The com.rabbitmq.client.impl.AMQContentHeader has the following toString implementation
@Override public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("#contentHeader<").append(getClassName()).append(">");
this.appendPropertyDebugStringTo(sb);
return sb.toString();
}
It generates strings like this
#contentHeader<basic>(content-type=application/json, content-encoding=UTF-8, headers={topic=DOWNLOAD_AND_INSTALL, content-type=application/json, type=EVENT, tenant=DEFAULT, __TypeId__=org.eclipse.hawkbit.dmf.json.model.DownloadAndUpdateRequest, thingId=new_device}, delivery-mode=2, priority=0, correlation-id=null, reply-to=null, expiration=null, message-id=null, timestamp=null, type=null, user-id=null, app-id=null, cluster-id=null)
This could make believe that content-type, content-encoding,..... are "valid" AMQP properties, while in fact RabbitMQ states :
Invalid properties will be ignored. Valid properties are:
content_type
content_encoding
priority
correlation_id
reply_to
expiration
message_id
timestamp
type
user_id
app_id
cluster_id
Notice the difference between the dash (-) and the ('_underscore')
To avoid confusion, the java client should print the "official" property names using underscores.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 590
- Avg merge
- 10h 1m
- Merged PRs (30d)
- 53
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rabbitmq/rabbitmq-java-client
-
Bump dependenciesOpendependency-upgrade
Difficulty 3/5 1-2 days Newbie friendliness 25/100
rabbitmq/rabbitmq-java-client#2193 ·
Maintainers usually reply within 1 day
-
Add option to automatically set User-ID in basicPublishMay be free again @UmerQureshi21 claimed this 306 days ago, and no pull request is open. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rabbitmq/rabbitmq-java-client#1748 · 4 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
rabbitmq/rabbitmq-java-client#1535 · 5 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
rabbitmq/rabbitmq-java-client#1421 · 1 reaction ·
Maintainers usually reply within 1 day
-
Thread Pinning occurs with VirtualThreads enabled (spring boot 3)May be free again @acogoluegnes claimed this 974 days ago, and no pull request is open. Openenhancement help-wanted
rabbitmq/rabbitmq-java-client#1276 · 3 comments · 2 assignees ·
Maintainers usually reply within 1 day
All issues in rabbitmq/rabbitmq-java-client
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
intellij-elixir/intellij-elixir#4782 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
ManageSieve HAVESPACE answers OK for an empty script name, which PUTSCRIPT refusesPossibly taken @chibenwa claimed this today. Openai-driven-qa bug claude Cosmetic
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
linagora/tmail-backend#3062 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day