Skip to content

Show argument name instead of content in LDAPBytesWarning #145

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

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

encukou
Copy link
Member

@encukou encukou commented Dec 19, 2017

Based on earlier patch by Christian Heimes
Fixes: #132
Fixes: #144

Based on earlier patch by Christian Heimes
Fixes: python-ldap#132
Fixes: python-ldap#144
@codecov
Copy link

codecov bot commented Dec 19, 2017

Codecov Report

Merging #145 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #145      +/-   ##
==========================================
+ Coverage   69.33%   69.36%   +0.02%     
==========================================
  Files          49       49              
  Lines        4654     4641      -13     
  Branches      782      780       -2     
==========================================
- Hits         3227     3219       -8     
+ Misses       1080     1075       -5     
  Partials      347      347
Impacted Files Coverage Δ
Lib/ldap/ldapobject.py 68.22% <100%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab93063...2a6c8ba. Read the comment docs.

Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, good work 🥇
On check for PY2 is missing.

@@ -532,7 +522,7 @@ def delete_ext(self,dn,serverctrls=None,clientctrls=None):
form returns the message id of the initiated request, and the
result can be obtained from a subsequent call to result().
"""
dn = self._bytesify_input(dn)
dn = self._bytesify_input('dn', dn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if PY2:?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_bytesify_input already contains a check. I only added the PY2 check when there were several calls to _bytesify_input.

@encukou encukou added this to the 3.0 milestone Dec 19, 2017
Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@encukou encukou merged commit 9fb9338 into python-ldap:master Dec 20, 2017
@encukou encukou deleted the no-password-disclosure branch December 20, 2017 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants