-
Notifications
You must be signed in to change notification settings - Fork 126
Exceptions don't include the message id they are an exception for #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting the issue! |
This should be easy to solve by changing |
That is basically the same idea I had when looking at the code base, initialise msgid to None and then set it if we get one, or a negative value will do just as well for no message id present. |
I would like to see this as well :-) |
…on-ldap#208) Closes: python-ldap#177 (msgid) python-ldap#208 (controls)
…on-ldap#208) Closes: python-ldap#177 (msgid) python-ldap#208 (controls)
…on-ldap#208) Closes: python-ldap#177 (msgid) python-ldap#208 (controls)
…on-ldap#208) Closes: python-ldap#177 (msgid) python-ldap#208 (controls)
…on-ldap#208) Closes: python-ldap#177 (msgid) python-ldap#208 (controls)
Issue description:
When using the async methods and polling for results using the result(msg=RES_ANY), an exception can get raised since one of the async calls generated caused the error.
The exception raised does not include the message id of the request that caused the exception.
Having 10 outstanding requests and receiving an exception for one (ie. ldap.ALREADY_EXISTS) and not knowing which request this was for since we're not receiving the msgid in the response.
Steps to reproduce:
connect to python
alternate an add and a search query using the same query three times (each) using the async methods (or randomise the order)
poll for results until you've received a response for each outstanding request.
all the searches should complete, one of the adds should complete, and two of the adds should've failed, but which add.. which message ids.
Operating system:
Linux
Python version:
2.7+
python-ldap version:
all
The text was updated successfully, but these errors were encountered: