Bug 504042

Summary: CS 8.0 Beta 2 TPS Admin page unable to list users that where created with a space in the name.
Product: [Retired] Dogtag Certificate System Reporter: Sean Veale <sean.veale>
Component: TPSAssignee: Jenny Severance <jgalipea>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: alee, awnuk, benl, jmagne
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-22 23:36:02 UTC Type: ---
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: 443788    
Attachments:
Description Flags
patch to fix
none
TPS List User with Space in Name Screen shot none

Description Sean Veale 2009-06-03 22:19:22 UTC
Description of problem:

On the TPS admin tab if you create a user where the first or last name has a space i.e. 

Sean St Jean  the user can be created. 

If you list the all users the newly created user will be shown but if click on the link to show the cert/profiles ect  you be displayed the message user not found. 

If you search the internal ldap under TPS-Admin you can see the user is in there. 


Version-Release number of selected component (if applicable):

CS 8.0beta2 

How reproducible:
Always

Steps to Reproduce:
1.In the TPS Admin add  and a user with a space in the last name. I.e. Jean St Jean" 
2.Get out and list all users. See Jean is there.  Click on the link and see the error.
3.
  
Actual results:

User not found error

Expected results:

Able to see the user cert/profile ect. 

Additional info:

Comment 1 Ade Lee 2009-06-08 03:27:31 UTC
Created attachment 346806 [details]
patch to fix

awnuk, please review

patch to fix:
1. improves handling of first name , last name
2. fix display of first name/ lastname
3. fix searches

Comment 2 Andrew Wnuk 2009-06-08 21:23:14 UTC
attachment (id=346806) +awnuk

Comment 3 Ade Lee 2009-06-09 15:12:24 UTC
[builder@dhcp231-124 pki]$ svn ci -m "Bugzilla Bug #504042 - unable to list users that where created with a space in the name" 
Sending        base/tps/src/include/tus/tus_db.h
Sending        base/tps/src/modules/tokendb/mod_tokendb.cpp
Sending        base/tps/src/tus/tus_db.c
Sending        dogtag/tps/pki-tps.spec
Sending        dogtag/tps-ui/dogtag-pki-tps-ui.spec
Sending        dogtag/tps-ui/shared/docroot/tokendb/editUser.template
Sending        dogtag/tps-ui/shared/docroot/tokendb/userDelete.template
Transmitting file data .......
Committed revision 570.

Comment 5 Jenny Severance 2009-06-25 18:24:34 UTC
Created attachment 349444 [details]
TPS List User with Space in Name Screen shot

Verified - See attached screen shot