rem: cocoon.sendPage("redirect.html", { "url" : redirectUri }); 
add: cocoon.redirectTo(redirectUri); 
context: function userChangeProfile(userId) {	resolve();	try {	    var redirectUri = getRequestUri();        var userId = getAccreditableId();	    var user = getAccreditableManager().getUserManager().getUser(userId);				var fullName = user.getName();		var email = user.getEmail();		var description = user.getDescription();		var ldapId;		var ldap = false;		if (user.getClass().getName().endsWith("LDAPUser")) {			ldapId = user.getLdapId();            ldap = true;		}				// at the moment the loop is executed only once (no form validation)				var ready = false;	    while (!ready) {	    		    cocoon.sendPageAndWait("users/profile.xml", {		    	"user-id" : userId,		    	"fullname" : fullName,		    	"email" : email,		    	"description" : description,		    	"page-title" : "Edit Profile",		    	"ldap" : ldap		    });		    		    if (cocoon.request.get("submit")) {			    fullName = cocoon.request.get("fullname");		       	user.setName(fullName);			    email = cocoon.request.get("email");		       	user.setEmail(email);		       	description = cocoon.request.get("description");		       	user.setDescription(description);		   		user.save();		    	ready = true;		    }		    else {		    	ready = true;		    }		    }	   	cocoon.sendPage("redirect.html", { "url" : redirectUri });   	}   	finally  {	   	release();   	}}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5b9c6ae2fb641effa76e35efe68abb2bee660da7/user-admin.js/buggy/src/webapp/lenya/content/admin/users/user-admin.js