Bug 1090022
| Summary: | [Selectors] Python client does not support selectors | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Zdenek Kraus <zkraus> |
| Component: | python-qpid | Assignee: | messaging-bugs <messaging-bugs> |
| Status: | CLOSED UPSTREAM | QA Contact: | Messaging QE <messaging-qe-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0 | CC: | gsim, jross |
| Target Milestone: | 3.3 | Keywords: | Improvement |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-02-10 03:35:40 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1113461 | ||
Though the python client doesn't support the 'shortcut' form, you can still specify it as a value for 'x-apache-selector' in the arguments for x-subscribe, e.g.
./drain "q;{create:always, link:{x-subscribe:{arguments:{'x-apache-selector':\"a = TRUE\"}}}}"
Thank you, I will run tests with the 'x-apache-selector', but I really would like to have all clients use the same simple name 'selector', and IMO also others would like it too as well. We should keep it so unified as it could be. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |
Description of problem: When selectors are supplied to python client, it fails with illegal key. Version-Release number of selected component (if applicable): python-qpid-0.22-13.el6 How reproducible: 100% Steps to Reproduce: 1. ./drain "q;{create:always, link:{selector:\"a = TRUE\"}}" Actual results: [1] Traceback (most recent call last): File "./drain", line 81, in <module> rcv = ssn.receiver(addr) File "<string>", line 6, in receiver File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 633, in receiver raise e qpid.messaging.exceptions.InvalidOption: error in options: link: selector: illegal key Expected results: [1] selector will be applied in broker Additional info: