Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 730384 Details for
Bug 696919
Message sent by python producer can't be read with java consumer
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Default to text/plain for content_type when no message entries are supplied
bz696919.patch (text/plain), 937 bytes, created by
Ernie
on 2013-04-01 19:01:07 UTC
(
hide
)
Description:
Default to text/plain for content_type when no message entries are supplied
Filename:
MIME Type:
Creator:
Ernie
Created:
2013-04-01 19:01:07 UTC
Size:
937 bytes
patch
obsolete
>Index: python/examples/api/spout >=================================================================== >--- python/examples/api/spout (revision 1457042) >+++ python/examples/api/spout (working copy) >@@ -75,6 +75,7 @@ > parser.error("address is required") > > content = None >+content_type = None > > if args: > text = " ".join(args) >@@ -90,6 +91,9 @@ > content[name] = val > else: > content = text >+ # no entries were supplied, so assume text/plain for >+ # compatibility with java (and other) clients >+ content_type = "text/plain" > > conn = Connection(opts.broker, > reconnect=opts.reconnect, >@@ -107,6 +111,8 @@ > msg = Message(subject=opts.subject, > reply_to=opts.reply_to, > content=content) >+ if content_type: >+ msg.content_type = content_type > msg.properties["spout-id"] = "%s:%s" % (spout_id, count) > for p in opts.properties: > name, val = nameval(p)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 696919
:
730384
|
737697