You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jimmy Jones (JIRA)" <ji...@apache.org> on 2012/11/27 22:22:58 UTC

[jira] [Created] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it

Jimmy Jones created QPID-4480:
---------------------------------

             Summary: If amqp/map contains a string containing a null, perl bindings will truncate it
                 Key: QPID-4480
                 URL: https://issues.apache.org/jira/browse/QPID-4480
             Project: Qpid
          Issue Type: Bug
    Affects Versions: 0.18
         Environment: RHEL6
            Reporter: Jimmy Jones


The following code doesn't work as expected, the name element is truncated at the null byte.

my $hash = { id => 1234, name => "Blah\x00Blah" };
cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Comment Edited] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Jimmy Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504958#comment-13504958 ] 

Jimmy Jones edited comment on QPID-4480 at 11/27/12 9:25 PM:
-------------------------------------------------------------

Attached a fix. Tested on RHEL6. Could this go into 0.20 please?
                
      was (Author: jimmyjones2):
    Attached a fix. Tested on RHEL6.
                  
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>         Attachments: null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Commented] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Justin Ross (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506665#comment-13506665 ] 

Justin Ross commented on QPID-4480:
-----------------------------------

http://svn.apache.org/viewvc?view=revision&revision=1415313
                
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>             Fix For: 0.20
>
>         Attachments: hello_world2.pl, null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Commented] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Darryl L. Pierce (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506652#comment-13506652 ] 

Darryl L. Pierce commented on QPID-4480:
----------------------------------------

Excellent! This is now committed.
                
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>             Fix For: 0.20
>
>         Attachments: hello_world2.pl, null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Jimmy Jones (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jimmy Jones updated QPID-4480:
------------------------------

    Attachment: hello_world2.pl

Test case. Well not a proper perl test as i've not written one before, but a script that shows the problem.
                
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>         Attachments: hello_world2.pl, null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Justin Ross (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Ross updated QPID-4480:
------------------------------

    Fix Version/s: 0.21
    
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>             Fix For: 0.20, 0.21
>
>         Attachments: hello_world2.pl, null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Jimmy Jones (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jimmy Jones updated QPID-4480:
------------------------------

    Attachment: null-in-string-inside-map.patch

Attached a fix. Tested on RHEL6.
                
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>         Attachments: null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Assigned] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Darryl L. Pierce (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darryl L. Pierce reassigned QPID-4480:
--------------------------------------

    Assignee: Darryl L. Pierce
    
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>         Attachments: null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Resolved] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Darryl L. Pierce (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darryl L. Pierce resolved QPID-4480.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.20
    
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>             Fix For: 0.20
>
>         Attachments: hello_world2.pl, null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Commented] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Justin Ross (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506669#comment-13506669 ] 

Justin Ross commented on QPID-4480:
-----------------------------------

Reviewed by Darryl.  Approved for 0.20.
                
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>            Assignee: Darryl L. Pierce
>             Fix For: 0.20
>
>         Attachments: hello_world2.pl, null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4480) If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

Posted by "Jimmy Jones (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jimmy Jones updated QPID-4480:
------------------------------

    Summary: If amqp/map contains a string containing a null, perl bindings will truncate it when encoding  (was: If amqp/map contains a string containing a null, perl bindings will truncate it)
    
> If amqp/map contains a string containing a null, perl bindings will truncate it when encoding
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-4480
>                 URL: https://issues.apache.org/jira/browse/QPID-4480
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>         Attachments: null-in-string-inside-map.patch
>
>
> The following code doesn't work as expected, the name element is truncated at the null byte.
> my $hash = { id => 1234, name => "Blah\x00Blah" };
> cqpid_perl::encode($hash, $outmsg);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org