portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions CreateNewUserAndConfirm.java
Date Thu, 19 Apr 2001 21:55:22 GMT
sgala       01/04/19 14:55:22

  Modified:    src/java/org/apache/jetspeed/modules/actions
                        CreateNewUserAndConfirm.java
  Log:
  Avoid that exceptions in profiler stop mail being sent
  
  Revision  Changes    Path
  1.9       +7 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/CreateNewUserAndConfirm.java
  
  Index: CreateNewUserAndConfirm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/CreateNewUserAndConfirm.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CreateNewUserAndConfirm.java	2001/04/09 05:01:22	1.8
  +++ CreateNewUserAndConfirm.java	2001/04/19 21:55:22	1.9
  @@ -174,7 +174,13 @@
                   rec.save();
                   data.setMessage(Localization.getString("CREATENEWUSERANDCONFIRM_CREATE"));
                   if (JetspeedResources.getBoolean("services.ProfileManager.enable", false))
  -                    ProfileManager.createUserProfile(data, username);
  +                    // As the user is already in the db, we better
  +                    // send the email, no matter the error we get here
  +                    try {
  +                        ProfileManager.createUserProfile(data, username);
  +                    } catch (Throwable t) {
  +                        Log.error(t);
  +                    }
                   ActionLoader.getInstance().exec(data, "SendConfirmationEmail");
               }
               finally
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message