Error 400 on Reset PIN

Version 1
    This document was generated from CDN thread

    Created by: Carlo Rodriguez on 19-09-2012 11:03:39 PM
    Hi Guys,
     
    I'm having a problem when resetting someone's PIN. It resets for one user but not for another.
    I get the error 400 on the other user. Using the same command for both. Any ideas where I should look?
     
    THanks!

    Subject: RE: Error 400 on Reset PIN
    Replied by: Akanksha Agarwal on 20-09-2012 12:35:09 AM
    Hi Carlo,

    I guess you are using the following API to set the pin for a user:

    /vmrest/user/credential/pin?newpin=<new pin>&userobjectid=<obj id>

    If you're using the same API and giving the correct userobjectid then it should work.

    Let me know how you are setting the pin. I'll be able to answer the query with more details.

    Thanks,
    Akanksha

    Subject: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUPI
    Replied by: Carlo Rodriguez on 20-09-2012 01:55:01 AM
    Hi Akanksha,

    I tried some more testing and I am getting this type of error.

      1 => 400
      2[message] => IMS_ERROR : Database communication error
      3
      4What could that indicate? I seem to be able to change the names on
      5voicemail fine and even reset a pin.
      6But I get this for a particular user.
      7
      8Thanks!
      9
     10Carlo
     11
     12On Thu, Sep 20, 2012 at 12:35 PM, Cisco Developer Community Forums <
     13cdicuser@developer.cisco.com> wrote:
     14
     15> Akanksha Agarwal has created a new message in the forum "CUPI Questions":
     16>
     17> --------------------------------------------------------------
     18> Hi Carlo,
     19>
     20> I guess you are using the following API to set the pin for a user:
     21>
     22> /vmrest/user/credential/pin?newpin=<new pin>&userobjectid=<obj id>
     23>
     24> If you're using the same API and giving the correct userobjectid then it
     25> should work.
     26>
     27> Let me know how you are setting the pin. I'll be able to answer the query
     28> with more details.
     29>
     30> Thanks,
     31> Akanksha
     32> --
     33> To respond to this post, please click the following link:
     34>
     35> <
     36> http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/6539081
     37> >
     38>
     39> or simply reply to this email.
     40
     41[b]Subject: [/b]RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -
     42 [b]Replied by: [/b]Akanksha Agarwal [b]on [/b]20-09-2012 03:44:45 AM
     43Carlo,
     44
     45If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
     46
     47Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
     48
     49Thanks,
     50Akanksha A
     51
     52[b]Subject: [/b]Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUPI
     53 [b]Replied by: [/b]Carlo Rodriguez [b]on [/b]21-09-2012 04:05:05 AM
     54Hi Akansha,
     55
     56I have enable VMREST logs, where can I collect the logs data?
     57
     58Thanks!
     59
     60Carlo
     61
     62
     63On Sep 20, 2012 3:45 PM, "Cisco Developer Community Forums" <
     64cdicuser@developer.cisco.com> wrote:
     65
     66> Akanksha Agarwal has created a new message in the forum "CUPI Questions":
     67>
     68> --------------------------------------------------------------
     69> Carlo,
     70>
     71> If this is happening with a particular user, then can you check whether
     72> this user exists in the database or not? Also please check if the
     73> credentials you are using are valid or not. Just try to logon to
     74> Administration page using these credentials. If they are valid you'll be
     75> able to logon to th page.
     76>
     77> Also, to tell what exactly is the problem, you'll have to enable the
     78> VMREST logs and send me the diag_tomcat<> logs of the time when you are
     79> facing this issue.
     80>
     81> Thanks,
     82> Akanksha A
     83> --
     84> To respond to this post, please click the following link:
     85>
     86> <
     87> http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/6542639
     88> >
     89>
     90> or simply reply to this email.
     91
     92[b]Subject: [/b]RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -
     93 [b]Replied by: [/b]Carlo Rodriguez [b]on [/b]24-09-2012 06:55:13 PM
     94Hi Akansha,
     95
     96I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
     97Thanks!
     98 
     99[quote=Akanksha Agarwal]Carlo,
    100If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
    101Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
    102Thanks,
    103Akanksha A[/quote]
    104
    105[b]Subject: [/b]RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI
    106 [b]Replied by: [/b]Akanksha Agarwal [b]on [/b]26-09-2012 01:36:48 AM
    107Hi Carlo,
    108
    109From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:
    110
    1111)      Did you ever change the password of the administrator?
    112
    1132)      Can you tell me the roles assigned to the user whose pin you are trying to edit.
    114
    1153)      I also want to know the password settings of this user. For this please paste me the screen shot of users->your user->password settings->voice mail
    116
    1174)      I want to know the content of tbl_user
    118
    119I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.
    120
    121Thanks & Regards,
    122Akanksha A Mishra
    123
    124From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    125Sent: Tuesday, September 25, 2012 5:25 AM
    126To: cdicuser@developer.cisco.com
    127Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -
    128
    129Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,
    130
    131I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
    132Thanks!
    133
    134Akanksha Agarwal:
    135Carlo,
    136If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
    137Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
    138Thanks,
    139Akanksha A
    140
    141--
    142To respond to this post, please click the following link: or simply reply to this email.
    143
    144[b]Subject: [/b]RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI
    145 [b]Replied by: [/b]Carlo Rodriguez [b]on [/b]26-09-2012 07:46:21 PM
    146Hi Akanksha,
    147Thanks for the reply.
    1481. The administrator password hasn't changed.
    1492. I checked and the user has no Roles Assigned.
    1503. The Password Settings field is greyed out. I can't click it.
    151I have observed that we can rename a user through CUPI but PIN reset isn't having the same success.
    152Could the problem be related to the fact that the users on Unity are Synced to CUCM? And sometimes people would change a persons CUCM Display Name, Label, and then on Unity change the voicemail Name and then try and Reset their PIN?
    153Thanks!
    154Carlo
    155 
    156[quote=Akanksha Agarwal]Hi Carlo,
    157
    158From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:
    159
    1601)      Did you ever change the password of the administrator?
    161
    1622)      Can you tell me the roles assigned to the user whose pin you are trying to edit.
    163
    1643)      I also want to know the password settings of this user. For this please paste me the screen shot of users->your user->password settings->voice mail
    165
    1664)      I want to know the content of tbl_user
    167
    168I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.
    169
    170Thanks & Regards,
    171Akanksha A Mishra
    172
    173From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    174Sent: Tuesday, September 25, 2012 5:25 AM
    175To: cdicuser@developer.cisco.com
    176Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -
    177
    178Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,
    179
    180I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
    181Thanks!
    182
    183Akanksha Agarwal:
    184Carlo,
    185If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
    186Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
    187Thanks,
    188Akanksha A
    189
    190--
    191To respond to this post, please click the following link: or simply reply to this email.[/quote]
    192
    193[b]Subject: [/b]RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI
    194 [b]Replied by: [/b]Akanksha Agarwal [b]on [/b]27-09-2012 01:06:47 AM
    195Carlo,
    196
    197This is strange that the password settings are greyed out for this user. This means that something has definitely been changed, may be directly through DB. Couple of questions again:
    198
    1991)       Are you able to change the pin through the administration page? Please let me know this. And I would like to get the diag_tomcat logs again when you try to change the pin through CUCA. For this you will have to enable the CUCA logs(ALL)  through the serviceability page.
    200
    2012)      Is this a normal voicemail user created on connection or was it imported  or is there any special case with this user?
    202
    203In case we don’t find the reason then we’ll set up a webex to look at your system to find the root cause.
    204
    205Thanks & Regards,
    206Akanksha A Mishra
    207
    208From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    209Sent: Thursday, September 27, 2012 6:16 AM
    210To: cdicuser@developer.cisco.com
    211Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI
    212
    213Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akanksha,
    214Thanks for the reply.
    2151. The administrator password hasn't changed.
    2162. I checked and the user has no Roles Assigned.
    2173. The Password Settings field is greyed out. I can't click it.
    218I have observed that we can rename a user through CUPI but PIN reset isn't having the same success.
    219Could the problem be related to the fact that the users on Unity are Synced to CUCM? And sometimes people would change a persons CUCM Display Name, Label, and then on Unity change the voicemail Name and then try and Reset their PIN?
    220Thanks!
    221Carlo
    222
    223Akanksha Agarwal:
    224Hi Carlo,
    225
    226From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:
    227
    2281) Did you ever change the password of the administrator?
    229
    2302) Can you tell me the roles assigned to the user whose pin you are trying to edit.
    231
    2323) I also want to know the password settings of this user. For this please paste me the screen shot of users->your user->password settings->voice mail
    233
    2344) I want to know the content of tbl_user
    235
    236I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.
    237
    238Thanks & Regards,
    239Akanksha A Mishra
    240
    241From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]<mailto:[mailto:cdicuser@developer.cisco.com]>
    242Sent: Tuesday, September 25, 2012 5:25 AM
    243To: cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>
    244Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -
    245
    246Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,
    247
    248I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
    249Thanks!
    250
    251Akanksha Agarwal:
    252Carlo,
    253If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
    254Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
    255Thanks,
    256Akanksha A
    257
    258--
    259To respond to this post, please click the following link: or simply reply to this email.
    260
    261--
    262To respond to this post, please click the following link: or simply reply to this email.
    263