Go Back   CHECKBOX® Online Community > Checkbox® > CHECKBOX® Survey Server 4.x

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-25-2008, 03:43 PM
jrjespersen
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by pwiesner View Post
I would suggest using the GetUserIdentities method to determine if a user already exists. You will want to search on the UniqueIdentifier field and use the username as the search value.

string[] userIdentities = wsProxy.GetUserIdentities(contextToken, "UniqueIdentifier", userName);
I have implemented this method but still encounter the same issue. I can correctly identify if a user ID exists using the GetUserIdentities() method, but when I call CreateUser(), the method either:
  1. Returns an error is the updateIfExists parameter is false.
  2. Returns successfully to the custom app if updateIfExists parameter is true, but the user ID is not added to the table ckbx_Credential. However, in this scenario, the profile data in the table ckbx_CustomUserFieldMap does get updated.

So, currently, I am unable to use the web service to recreate a deleted user.
Reply With Quote
  #12 (permalink)  
Old 02-29-2008, 07:20 AM
Administrator
 
Join Date: Mar 2007
Location: Prezza Technologies
Posts: 192
Default

I'll take a look at the code behind the scenes to see what is going on. The software should be checking the credential table. It's possible that the identity isn't being cleared from the identity cache when the user is deleted and that is what is causing the confusion. In any case, I'll take a look and get back to you to see how we can get you past this issue.

-Noah
Reply With Quote
  #13 (permalink)  
Old 03-03-2008, 08:56 AM
jrjespersen
Guest
 
Posts: n/a
Default

Noah,

I would agree with your thoughts. If I delete the user, reset IIS, and then recreate the user through the web service, the user is created.

It should be noted that the recreate problem occurs - when not resetting IIS - both when I delete the user from the Checkbox UI and the web service API. The difference in behavior is in which method I use to recreate the user: the Checkbox UI successfully creates the user (seemingly regardless of what's in cache) while the web service API does not create the user.

Last edited by jrjespersen; 03-03-2008 at 12:32 PM.
Reply With Quote
  #14 (permalink)  
Old 03-04-2008, 12:50 PM
Administrator
 
Join Date: Mar 2007
Location: Prezza Technologies
Posts: 192
Default

Thanks for the additional information. I'll take a look at the source to see if I can figure out why the re-create works in one instance and not the other.

-Noah
Reply With Quote
  #15 (permalink)  
Old 03-19-2008, 08:29 AM
jrjespersen
Guest
 
Posts: n/a
Default

Do you have any additional information on this? I'm able to work around this issue, but it makes testing our custom application a bit tedious. An estimation of when this might be fixed would be helpful.
Reply With Quote
  #16 (permalink)  
Old 03-20-2008, 11:16 AM
Administrator
 
Join Date: Mar 2007
Location: Prezza Technologies
Posts: 192
Default

I'm still looking into the issue, but I expect that we'll have it fixed for the 4.5 release, which is currently undergoing internal QA evaluation.
Reply With Quote
  #17 (permalink)  
Old 03-24-2008, 08:54 AM
jrjespersen
Guest
 
Posts: n/a
Default

Great! Thanks for the update.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 02:10 AM.


SEO by vBSEO 3.2.0