Ask questionsmessageId property has malformed format


The bug is in RabbitMQ part of this plugin. Messages sent with jms-messaging-plugin to RabbitMQ fedora broker have incorrect messageId property. Property messageId has prefix : year-UUID. This is bug.

From :

The message ID field MUST be a version 4 UUID as a standard hexadecimal digit string (e.g. f81d4fae-7dec-11d0-a765-00a0c91e6bf6)

has code:

daee7469 (Oliver Gondža 2020-09-01 20:52:34 +0200 75)             this.msgId = Calendar.getInstance().get(1) + "-" + UUID.randomUUID().toString();

What impact is:

  • messages are malformed.
  • Broker can easily drop messages that doesn't comply with requirements.
  • There is internal logic for datagrepper, where it adds year to messageID too. ---> mess with messageID.

More info you can find at:


Answer questions olivergondza

No idea why it is being done this way:

@Zlopez, what is the motivation to prefix the auto-generated IDs? Thanks!


Related questions

No questions were found.
Github User Rank List