[jira] [Commented] (PROTON-742) Proton Windows SChannel buffer copy error

2014-11-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14212120#comment-14212120
 ] 

ASF subversion and git services commented on PROTON-742:


Commit c5c1879fd7c1c762a929e25d8dc7e21ea89b63dc in qpid-proton's branch 
refs/heads/examples from Clifford Jansen
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=c5c1879 ]

PROTON-742: Windows SChannel buffer copy error: fix length


 Proton Windows SChannel buffer copy error
 -

 Key: PROTON-742
 URL: https://issues.apache.org/jira/browse/PROTON-742
 Project: Qpid Proton
  Issue Type: Bug
  Components: proton-c
Affects Versions: 0.8
 Environment: Windows with SChannel
Reporter: Cliff Jansen
Assignee: Cliff Jansen
 Fix For: 0.9

 Attachments: PROTON-742-0.patch


 The double buffering used to preserve partially decrypted frames spanning 
 multiple TLS records sometimes copied too much or too little data, resulting 
 in spurious framing errors or hangs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-736) ruby: unable to send binary data?

2014-11-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14212119#comment-14212119
 ] 

ASF subversion and git services commented on PROTON-736:


Commit cccd05067d45623e3690945ebe4cda764c96e955 in qpid-proton's branch 
refs/heads/examples from [~mcpierce]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=cccd050 ]

PROTON-736: Default Ruby 1.8 encoding to be binary unless explicit

Also updated the patch to not re-encode the original string while
checking its value.


 ruby: unable to send binary data?
 -

 Key: PROTON-736
 URL: https://issues.apache.org/jira/browse/PROTON-736
 Project: Qpid Proton
  Issue Type: Bug
  Components: ruby-binding
Affects Versions: 0.8
Reporter: Dominic Evans
Assignee: Darryl L. Pierce
 Fix For: 0.9

 Attachments: 
 0001-PROTON-736-Created-the-UTFString-and-BinaryString-cl.patch, 
 0001-PROTON-736-Default-Ruby-1.8-encoding-to-be-binary-un.patch, 
 0001-PROTON-736-Ruby-Message-does-not-return-all-content.patch, 
 0002-PROTON-736-Only-encode-Ruby-strings-as-UTF-8-if-it-s.patch


 As discussed on irc with [~mcpierce]
 I've not been able to determine how I can correctly send binary data using 
 the ruby gem.
 From proton-c I can do this by (e.g.,)
 {{
 char* msgdata = Buffer::Data(buffer);
 size_t msglen = Buffer::Length(buffer);
 pn_message_set_format(msg-message, PN_DATA);
 pn_message_load_data(msg-message, msgdata, msglen);
 }}
 and I assumed I might be able to do similar from Ruby by (e.g.,)
 {{
 data = File.binread(filename)
 msg.format = Qpid::Proton::MessageFormat::DATA
 msg.content = data
 }}
 But Ruby is reading the data into a string and the SWIG binding is still 
 expecting a byte* array here.
 After our discussions on IRC I also investigated doing:
 {{
 filedata = File.binread(filename)
 data = Qpid::Proton::Data.new
 data.binary = filedata
 msg.body = data
 }}
 but didn't have any luck with this approach either.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (PROTON-745) DataImpl cant roundtrip a Symbol array it decoded.

2014-11-14 Thread Robbie Gemmell (JIRA)
Robbie Gemmell created PROTON-745:
-

 Summary: DataImpl cant roundtrip a Symbol array it decoded.
 Key: PROTON-745
 URL: https://issues.apache.org/jira/browse/PROTON-745
 Project: Qpid Proton
  Issue Type: Bug
Reporter: Robbie Gemmell
Assignee: Robbie Gemmell
 Fix For: 0.9


DataImpl cant roundtrip a Symbol array it decoded. The decoded array is 
returned as an Object[] instance rather than Symbol[], and it trying to encode 
this later the Object[] later via putObject fails due to PROTON-744.

To enable this scenario, DataImpl should be updated to return a decoded Symbol 
array as Symbol[] instance, and putObject() updated to enable it to encode the 
Symbol[]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-744) DataImpl#putObject can't accept arrays

2014-11-14 Thread Robbie Gemmell (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14212400#comment-14212400
 ] 

Robbie Gemmell commented on PROTON-744:
---

Adding Symbol[] via putObject() will be addressed via PROTON-745, the more 
general issue for other array types remains.

 DataImpl#putObject can't accept arrays
 --

 Key: PROTON-744
 URL: https://issues.apache.org/jira/browse/PROTON-744
 Project: Qpid Proton
  Issue Type: Bug
  Components: proton-j
Reporter: Robbie Gemmell
Assignee: Robbie Gemmell

 DataImpl#putObject can't accept arrays, as it defers to putJavaArray(), which 
 has not been implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (PROTON-744) DataImpl#putObject can't accept arrays

2014-11-14 Thread Robbie Gemmell (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell reassigned PROTON-744:
-

Assignee: (was: Robbie Gemmell)

 DataImpl#putObject can't accept arrays
 --

 Key: PROTON-744
 URL: https://issues.apache.org/jira/browse/PROTON-744
 Project: Qpid Proton
  Issue Type: Bug
  Components: proton-j
Reporter: Robbie Gemmell

 DataImpl#putObject can't accept arrays, as it defers to putJavaArray(), which 
 has not been implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (PROTON-744) DataImpl#putObject can't accept arrays

2014-11-14 Thread Robbie Gemmell (JIRA)
Robbie Gemmell created PROTON-744:
-

 Summary: DataImpl#putObject can't accept arrays
 Key: PROTON-744
 URL: https://issues.apache.org/jira/browse/PROTON-744
 Project: Qpid Proton
  Issue Type: Bug
  Components: proton-j
Reporter: Robbie Gemmell
Assignee: Robbie Gemmell


DataImpl#putObject can't accept arrays, as it defers to putJavaArray(), which 
has not been implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-745) DataImpl cant roundtrip a Symbol array it decoded.

2014-11-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14212404#comment-14212404
 ] 

ASF subversion and git services commented on PROTON-745:


Commit a04193d2c745bbf045fcc191a5d5de8fbdba9812 in qpid-proton's branch 
refs/heads/master from Robert Gemmell
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=a04193d ]

PROTON-745: update DataImpl to return arrays of Symbol as Symbol[] instance 
rather than Object[] instance, and enable Data#putObject() to accept the 
Symbol[].


 DataImpl cant roundtrip a Symbol array it decoded.
 --

 Key: PROTON-745
 URL: https://issues.apache.org/jira/browse/PROTON-745
 Project: Qpid Proton
  Issue Type: Bug
Reporter: Robbie Gemmell
Assignee: Robbie Gemmell
 Fix For: 0.9


 DataImpl cant roundtrip a Symbol array it decoded. The decoded array is 
 returned as an Object[] instance rather than Symbol[], and it trying to 
 encode this later the Object[] later via putObject fails due to PROTON-744.
 To enable this scenario, DataImpl should be updated to return a decoded 
 Symbol array as Symbol[] instance, and putObject() updated to enable it to 
 encode the Symbol[]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (PROTON-745) DataImpl cant roundtrip a Symbol array it decoded.

2014-11-14 Thread Robbie Gemmell (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell resolved PROTON-745.
---
Resolution: Fixed

 DataImpl cant roundtrip a Symbol array it decoded.
 --

 Key: PROTON-745
 URL: https://issues.apache.org/jira/browse/PROTON-745
 Project: Qpid Proton
  Issue Type: Bug
Reporter: Robbie Gemmell
Assignee: Robbie Gemmell
 Fix For: 0.9


 DataImpl cant roundtrip a Symbol array it decoded. The decoded array is 
 returned as an Object[] instance rather than Symbol[], and it trying to 
 encode this later the Object[] later via putObject fails due to PROTON-744.
 To enable this scenario, DataImpl should be updated to return a decoded 
 Symbol array as Symbol[] instance, and putObject() updated to enable it to 
 encode the Symbol[]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (PROTON-746) Qpid::Proton::Messenger fails to encode a Ruby Symbol type.

2014-11-14 Thread Darryl L. Pierce (JIRA)
Darryl L. Pierce created PROTON-746:
---

 Summary: Qpid::Proton::Messenger fails to encode a Ruby Symbol 
type.
 Key: PROTON-746
 URL: https://issues.apache.org/jira/browse/PROTON-746
 Project: Qpid Proton
  Issue Type: Bug
  Components: ruby-binding
Reporter: Darryl L. Pierce
Assignee: Darryl L. Pierce


The Symbol needs to be converted back to a string and then processed as normal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (PROTON-746) Qpid::Proton::Messenger fails to encode a Ruby Symbol type.

2014-11-14 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14212967#comment-14212967
 ] 

ASF subversion and git services commented on PROTON-746:


Commit b57f45d30b2643e2275219c286eab79b5efa76a2 in qpid-proton's branch 
refs/heads/master from [~mcpierce]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=b57f45d ]

PROTON-746: Fix encoding a Ruby symbol into a message body.

The symbol needs to be converted to a string before being encoded.


 Qpid::Proton::Messenger fails to encode a Ruby Symbol type.
 ---

 Key: PROTON-746
 URL: https://issues.apache.org/jira/browse/PROTON-746
 Project: Qpid Proton
  Issue Type: Bug
  Components: ruby-binding
Reporter: Darryl L. Pierce
Assignee: Darryl L. Pierce

 The Symbol needs to be converted back to a string and then processed as 
 normal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (PROTON-746) Qpid::Proton::Messenger fails to encode a Ruby Symbol type.

2014-11-14 Thread Darryl L. Pierce (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darryl L. Pierce resolved PROTON-746.
-
   Resolution: Fixed
Fix Version/s: 0.9

 Qpid::Proton::Messenger fails to encode a Ruby Symbol type.
 ---

 Key: PROTON-746
 URL: https://issues.apache.org/jira/browse/PROTON-746
 Project: Qpid Proton
  Issue Type: Bug
  Components: ruby-binding
Reporter: Darryl L. Pierce
Assignee: Darryl L. Pierce
 Fix For: 0.9


 The Symbol needs to be converted back to a string and then processed as 
 normal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)