cancel
Showing results for 
Search instead for 
Did you mean: 

Update Password

erictice
Champ in-the-making
Champ in-the-making
I am encountering an error when calling the UpdatePassword Restful service.  The error is the following:

  "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "Do not have appropriate auth or wrong auth details provided.", 
  "exception" : "org.alfresco.web.scripts.WebScriptException - Do not have appropriate auth or wrong auth details provided.",
 
  "callstack" :
  [
       ""      ,"org.alfresco.web.scripts.WebScriptException: Do not have appropriate auth or wrong auth details provided."
      ,"org.alfresco.repo.web.scripts.person.ChangePasswordPost.executeImpl(ChangePasswordPost.java:100)"
      ,"org.alfresco.web.scripts.DeclarativeWebScript.executeImpl(DeclarativeWebScript.java:223)"
      ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:70)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)"

I would like to know, if anyone can tell me, what Jar contains the org.alfresco.repo.web.scripts.person.ChangePasswordPost class. 

The assumption was that it would be in the alfresco-webscripts.jar.  But it is not in that, the alfresco-core, alfresco-web-client or alfresco-remote.

I would appreciate it if someone can point me to the source. I also could not find it in the sdk.
1 REPLY 1

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

This class is defined in the "Remote API" project and packaged in alfresco-remote-api.jar

From the error you have posted, the provided username and old password does not match.

For a quick view, below is the link to the SVN source of ChangePasswordPost.java

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/source/jav...

You could also checkout the projects under root to get access to all the source code of alfresco.

Best Regards,
Shagul