pki user-mod fullName="" gives an error message "PKIException: LDAP error (21): error result"
An attempt to empty the fullname of an user should be mapped to an appropriate http error code
pki user-add --phone with invalid syntax throws LDAP error (21), should return error 4xx.
# pki -d /opt/rhqa_pki/certs_db -n "PKI Administrator for xxxxx.redhat.com" -c redhat123 user-add --fullName="Test ca_agent" --phone=9123456#1234565 testuser2 PKIException: LDAP error (21): error result
TRAC Ticket #836 - pki user-mod --phone="" gives an error message "BadRequestException: Invalid DN syntax." was closed as a duplicate of this ticket:
pki -d /opt/rhqa_pki/certs_db -n CA_adminV -c redhat123 user-mod --phone="" u1
yielded:
BadRequestException?: Invalid DN syntax.
whereas
pki -d /opt/rhqa_pki/certs_db -n CA_adminV -c redhat123 user-add --fullName="test" --phone="" u1
added user "u1":
User ID: u1 Full name: test
[06/04/2014] - Moving to Milestone 10.3 due to schedule restrictions.
Linked to Bugzilla bug: https://bugzilla.redhat.com/show_bug.cgi?id=1232043 (Red Hat Certificate System)
Per Bug Triage of 05/03/2016: 10.3.0 -- Mark ticket as FIXED
Per PKI Bug Council of 08/11/2016: re-open as 10.3.6
Fixed in master (10.4):
The following was cherry-picked in to DOGTAG_10_3_BRANCH:
commit 26aa8bd616148b5318b87817aafae926d1c375d2 Author: Endi S. Dewata <edewata@redhat.com> Date: Fri Aug 12 23:06:24 2016 +0200 Added exception wrapper for invalid LDAP attribute syntax. The LDAPExceptionConverter has been modified to wrap LDAPException for invalid attribute syntax with BadRequestException. https://fedorahosted.org/pki/ticket/833 (cherry picked from commit 71acaed02642c618a729fbebbf7a7025684967a3)
Metadata Update from @rpattath: - Issue assigned to edewata - Issue set to the milestone: 10.3.6
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/1400
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.