Univention Bugzilla – Bug 39109
User wizard does not complete
Last modified: 2015-08-07 19:00:57 CEST
Created attachment 7090 [details] user-wizard.png If I create a user via UMC, the wizad does not complete. See screenshot. We've tested with firefox and chrome. However, he user is created.
Tested with 4.0-2 errata281
preserveDom = undefined 13569 handle[destroyMethodName](preserveDom); 13570 }); 13571 13572 // Callback for when handle is manually destroyed. 13573 var hdhs = []; 13574 function onManualDestroy(){ 13575 odh.remove(); 13576 array.forEach(hdhs, function(hdh){ 13577 hdh.remove(); 13578 }); 13579 } 13580 13581 // Setup listeners for manual destroy of handle. 13582 // Also computes destroyMethodName, used in listener above. 13583 if(handle.then){ 13584 // Special path for Promises. Detect when Promise is resolved, rejected, or 13585 // canceled (nb: cancelling a Promise causes it to be rejected). 13586 destroyMethodName = "cancel"; 13587 handle.then(onManualDestroy, onManualDestroy); 13588 }else{ 13589 // Path for other handles. Just use AOP to detect when handle is manually destroyed. 13590 array.forEach(cleanupMethods, function(cleanupMethod){ 13591 if(typeof handle[cleanupMethod] === "function"){ 13592 if(!destroyMethodName){ 13593 // Use first matching method name in above listener (prefer destroyRecursive() to destroy()) 13594 destroyMethodName = cleanupMethod; 13595 } 13596 hdhs.push(aspect.after(handle, cleanupMethod, onManualDestroy, true)); 13597 } 13598 }); 13599 } 13600 }, this); 13601 13602 return arguments; // handle 13603 } 13604 }); 13605 }); 13606 13607 }, 13608 'dojo/request':function(){ 13609 define([ 13610 './request/default!'/*=====, 13611 './_base/declare', 13612 './promise/Promise' =====*/ 13613 ], function(request/*=====, declare, Promise =====*/){ 13614 /*===== 13615 request = function(url, options){ Pause On Caught Exceptions Watch No Watch Expressions Call Stack Async Scope Local <exception>: TypeError: handle[destroyMethodName] is not a function at null.<anonymous> (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:13569:31) at target.(anonymous function).dispatcher [as destroy] (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:73847:28) at declare.destroyRecursive (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:65738:9) at Object.dispatcher.around.advice (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:73870:23) at target.(anonymous function).dispatcher [as destroyRecursive] (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:73852:39) at http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:65826:13 at Object.array.forEach (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:2636:6) at declare.destroyDescendants (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:65824:10) at declare.destroyRecursive (http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:65737:9) at http://10.201.40.1/univention-management-console/js_$20152305140308$/dojo/dojo.js.uncompressed.js:65826:13 preserveDom: undefined
It works again if I downgrade univention-management-console-frontend to 4.1.106-60.1044.201504231500. That is the UCS 4.0-2 version.
Reverting to r62382 fixes the problem as well.
The problem was introduced by Bug #336771 by one of the following commits: r62556 r62560 r62570 If I revert them, it works again.
(In reply to Stefan Gohmann from comment #5) > The problem was introduced by Bug #336771 by one of the following commits: > r62556 > r62560 > r62570 > > If I revert them, it works again. That was a typo in the commit message, it was Bug 36771.
Created attachment 7091 [details] Patch to fix error I fixed the error in the attached patch and tested its functioning via the tests/tooltip.html in umc-frontend package.
AFAIS, this problem occurred due registering a tooltip widget several times. The attached patch corrects this in a way such that a tooltip widget is only created once.
I've applied the patch: r62809 YAML: 2015-08-07-univention-management-console-frontend.yaml: r62812
OK: tested on IE, Firefox, Chromium YAML: Ok
<http://errata.univention.de/ucs/4.0/283.html>