activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam hendley (JIRA)" <>
Subject [jira] [Updated] (AMQ-4893) UTF8Buffer should be a valid object for setObjectProperty
Date Mon, 25 Nov 2013 17:26:39 GMT


Sam hendley updated AMQ-4893:


Attached is test case showing the exception when a string property is copied from an unmarshaled
message to another message using setObjectProperty.

Suggested fix is to add UTF8Buffer to the checkValidObject whitelist.

> UTF8Buffer should be a valid object for setObjectProperty
> ---------------------------------------------------------
>                 Key: AMQ-4893
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.8.0
>            Reporter: Sam hendley
>             Fix For: AGING_TO_DIE
>         Attachments:
> If we try to copy headers between messages using getProperties and setObjectProperty
with those values it now fails since the UTF8Buffer is not in the whitelist of convertable
types. I think it should be added as a whitelisted type that gets handled like a string on
setObjectProperty (and probably setStringProperty). Otherwise this causes the application
code to have to special case String properties and couple to the hawtbuffer implementation

This message was sent by Atlassian JIRA

View raw message