Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-36017

Exception displays in the console when clicking Users in the top nav bar and Action button doesn't work

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 CE M6
    • Fix Version/s: 6.2.0 CE M6
    • Labels:
      None
    • Environment:
      Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 491da2d1cfb328b22fdafccce8cc02d911180b9a.
    • Story Points:
      3
    • Fix Priority:
      5

      Description

      1. Start Liferay.
      2. Admin -> Control Panel.
      3. Click Users in the top navigation bar.
      4. Click the View Organiztions will get the same error in the console.
      5. Try to click Action near Test user.

      Expected result:
      There is no error in the console.

      Actual result:
      You will see exception displays in the console and there is no reaction when you clicking action near the Test User.

      02:28:10,447 INFO  [com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1438] Checking for available updates
      02:28:10,447 INFO  [com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1482] Finished checking for available updates in 0 ms
      02:53:34,412 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 36: 34: missing ; before statement
      02:53:34,415 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 37: 16: syntax error
      02:53:34,417 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 38: 32: missing ; before statement
      02:53:34,420 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 39: 22: syntax error
      02:53:34,422 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 40: 15: syntax error
      02:53:34,424 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 62: 6: syntax error
      02:53:34,429 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 64: 9: missing ) after argument list
      02:53:34,431 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 70: 3: syntax error
      02:53:34,433 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 71: 2: syntax error
      02:53:34,435 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 73: 55: missing ; before statement
      02:53:34,437 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 74: 12: syntax error
      02:53:34,439 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 79: 2: syntax error
      02:53:34,441 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 81: 25: missing ; before statement
      02:53:34,444 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 82: 12: syntax error
      02:53:34,447 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 85: 2: syntax error
      02:53:34,450 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 87: 34: missing ; before statement
      02:53:34,453 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 91: 12: syntax error
      02:53:34,459 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 92: 2: syntax error
      02:53:34,462 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 94: 10: syntax error
      02:53:34,465 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 95: 9: syntax error
      02:53:34,466 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 96: 29: syntax error
      02:53:34,468 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 97: 12: syntax error
      02:53:34,470 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 101: 11: invalid return
      02:53:34,473 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 105: 3: syntax error
      02:53:34,475 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 106: 30: missing ; before statement
      02:53:34,482 ERROR [http-bio-8080-exec-17][MinifierUtil:111] 1: 0: Compilation produced 25 syntax errors.
      02:53:34,485 ERROR [http-bio-8080-exec-17][MinifierUtil:88] JavaScript Minifier failed for
      
      // <![CDATA[
      
      		Liferay.provide(
      			Liferay.Portlet,
      			'refreshLayout',
      			function(portletBound) {
      				if (!portletBound.isStatic) {
      					Liferay.Layout.refresh(portletBound);
      				}
      			},
      			['liferay-layout']
      		);
      	
      	function _125_exportUsers() {
      		document._125_fm.method = "post";
      		submitForm(document._125_fm, "http://localhost:8080/group/control_panel/manage?p_auth=LL8wu6H9&p_p_id=125&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&refererPlid=10184&controlPanelCategory=users&_125_struts_action=%2Fusers_admin%2Fexport_users&compress=0&etag=0&strip=0", false);
      	}
      
      	function _125_deleteOrganization(organizationId) {
      		_125_doDeleteOrganization('com.liferay.portal.model.Organization', organizationId);
      	}
      
      	function _125_doDeleteOrganization(className, id) {
      		var ids = id;
      
      		var status = 5;
      
      		_125_getUsersCount(
      			className, ids, status,
      			function(event, id, obj) {
      				var responseData = this.get('responseData');
      				var count = parseInt(responseData);
      
      				if (count > 0) {
      					status = 0_125_getUsersCount(
      						className, ids, status,
      						function(event, id, obj) {
      							responseData = this.get('responseData')
      							count = parseInt(responseData);
      
      							if (count > 0) {
      								if (confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0064\u0065\u006c\u0065\u0074\u0065\u0020\u0074\u0068\u0069\u0073\u003f\u0020\u0049\u0074\u0020\u0077\u0069\u006c\u006c\u0020\u0062\u0065\u0020\u0064\u0065\u006c\u0065\u0074\u0065\u0064\u0020\u0069\u006d\u006d\u0065\u0064\u0069\u0061\u0074\u0065\u006c\u0079\u002e')) {
      									_125_doDeleteOrganizations(ids);
      								}
      							}
      							else {
      								var message = null;
      
      								if (id && (id.toString().split(",").length > 1)) {
      									message = '\u004f\u006e\u0065\u0020\u006f\u0072\u0020\u006d\u006f\u0072\u0065\u0020\u006f\u0072\u0067\u0061\u006e\u0069\u007a\u0061\u0074\u0069\u006f\u006e\u0073\u0020\u0061\u0072\u0065\u0020\u0061\u0073\u0073\u006f\u0063\u0069\u0061\u0074\u0065\u0064\u0020\u0077\u0069\u0074\u0068\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0064\u0020\u0075\u0073\u0065\u0072\u0073\u002e\u0020\u0044\u006f\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0070\u0072\u006f\u0063\u0065\u0065\u0064\u0020\u0077\u0069\u0074\u0068\u0020\u0064\u0065\u006c\u0065\u0074\u0069\u006e\u0067\u0020\u0074\u0068\u0065\u0020\u0073\u0065\u006c\u0065\u0063\u0074\u0065\u0064\u0020\u006f\u0072\u0067\u0061\u006e\u0069\u007a\u0061\u0074\u0069\u006f\u006e\u0073\u0020\u0062\u0079\u0020\u0061\u0075\u0074\u006f\u006d\u0061\u0074\u0069\u0063\u0061\u006c\u006c\u0079\u0020\u0075\u006e\u0061\u0073\u0073\u006f\u0063\u0069\u0061\u0074\u0069\u006e\u0067\u0020\u0074\u0068\u0065\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0064\u0020\u0075\u0073\u0065\u0072\u0073\u003f';
      								}
      								else {
      									message = '\u0054\u0068\u0065\u0020\u0073\u0065\u006c\u0065\u0063\u0074\u0065\u0064\u0020\u006f\u0072\u0067\u0061\u006e\u0069\u007a\u0061\u0074\u0069\u006f\u006e\u0020\u0069\u0073\u0020\u0061\u0073\u0073\u006f\u0063\u0069\u0061\u0074\u0065\u0064\u0020\u0077\u0069\u0074\u0068\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0064\u0020\u0075\u0073\u0065\u0072\u0073\u002e\u0020\u0044\u006f\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0070\u0072\u006f\u0063\u0065\u0065\u0064\u0020\u0077\u0069\u0074\u0068\u0020\u0064\u0065\u006c\u0065\u0074\u0069\u006e\u0067\u0020\u0074\u0068\u0065\u0020\u0073\u0065\u006c\u0065\u0063\u0074\u0065\u0064\u0020\u006f\u0072\u0067\u0061\u006e\u0069\u007a\u0061\u0074\u0069\u006f\u006e\u0020\u0062\u0079\u0020\u0061\u0075\u0074\u006f\u006d\u0061\u0074\u0069\u0063\u0061\u006c\u006c\u0079\u0020\u0075\u006e\u0061\u0073\u0073\u006f\u0063\u0069\u0061\u0074\u0069\u006e\u0067\u0020\u0074\u0068\u0065\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0064\u0020\u0075\u0073\u0065\u0072\u0073\u003f';
      								}
      
      								if (confirm(message)) {
      									_125_doDeleteOrganizations(ids);
      								}
      							}
      						}
      					);
      				}
      				else {
      					if (confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0064\u0065\u006c\u0065\u0074\u0065\u0020\u0074\u0068\u0069\u0073\u003f\u0020\u0049\u0074\u0020\u0077\u0069\u006c\u006c\u0020\u0062\u0065\u0020\u0064\u0065\u006c\u0065\u0074\u0065\u0064\u0020\u0069\u006d\u006d\u0065\u0064\u0069\u0061\u0074\u0065\u006c\u0079\u002e')) {
      						_125_doDeleteOrganizations(ids);
      					}
      				}
      			}
      		);
      	}
      
      	function _125_doDeleteOrganizations(organizationIds) {
      		document._125_fm.method = "post";
      		document._125_fm._125_cmd.value = "delete";
      		document._125_fm._125_redirect.value = document._125_fm._125_organizationsRedirect.value;
      		document._125_fm._125_deleteOrganizationIds.value = organizationIds;
      		submitForm(document._125_fm, "http://localhost:8080/group/control_panel/manage?p_auth=LL8wu6H9&p_p_id=125&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&refererPlid=10184&controlPanelCategory=users&_125_struts_action=%2Fusers_admin%2Fedit_organization");
      	}
      
      	function _125_search() {
      		document._125_fm.method = "get";
      		document._125_fm._125_cmd.value = "";
      		submitForm(document._125_fm, 'http://localhost:8080/group/control_panel/manage?p_p_id=125&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&refererPlid=10184&controlPanelCategory=users&_125_struts_action=%2Fusers_admin%2Fview_users&_125_usersListView=tree');
      	}
      
      	function _125_showUsers(status) {
      
      		
      
      		location.href = Liferay.Util.addParams('_125_status=' + status.value, 'http://localhost:8080/group/control_panel/manage?p_p_id=125&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&refererPlid=10184&controlPanelCategory=users&_125_struts_action=%2Fusers_admin%2Fview_users&_125_usersListView=tree');
      	}
      
      	Liferay.provide(
      		window,
      		'_125_deleteOrganizations',
      		function() {
      			var organizationIds = Liferay.Util.listCheckedExcept(document._125_fm, "_125_allRowIds");
      
      			if (!organizationIds) {
      				return;
      			}
      
      			_125_doDeleteOrganization('com.liferay.portal.model.Organization', organizationIds);
      		},
      		['liferay-util-list-fields']
      	);
      
      	Liferay.provide(
      		window,
      		'_125_deleteUsers',
      		function(cmd) {
      			var deleteUsers = true;
      
      			var deleteUserIds = Liferay.Util.listCheckedExcept(document._125_fm, "_125_allRowIds");
      
      			if (!deleteUserIds) {
      				deleteUsers = false;
      			}
      			else if (cmd == "deactivate") {
      				if (!confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0064\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0074\u0065\u0020\u0074\u0068\u0065\u0020\u0073\u0065\u006c\u0065\u0063\u0074\u0065\u0064\u0020\u0075\u0073\u0065\u0072\u0073\u003f')) {
      					deleteUsers = false;
      				}
      			}
      			else if (cmd == "delete") {
      				if (!confirm('\u0041\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0073\u0075\u0072\u0065\u0020\u0079\u006f\u0075\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0070\u0065\u0072\u006d\u0061\u006e\u0065\u006e\u0074\u006c\u0079\u0020\u0064\u0065\u006c\u0065\u0074\u0065\u0020\u0074\u0068\u0065\u0020\u0073\u0065\u006c\u0065\u0063\u0074\u0065\u0064\u0020\u0075\u0073\u0065\u0072\u0073\u003f')) {
      					deleteUsers = false;
      				}
      			}
      
      			if (deleteUsers) {
      				document._125_fm.method = "post";
      				document._125_fm._125_cmd.value = cmd;
      				document._125_fm._125_redirect.value = document._125_fm._125_usersRedirect.value;
      				document._125_fm._125_deleteUserIds.value = deleteUserIds;
      
      				submitForm(document._125_fm, "http://localhost:8080/group/control_panel/manage?p_auth=LL8wu6H9&p_p_id=125&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&refererPlid=10184&controlPanelCategory=users&_125_struts_action=%2Fusers_admin%2Fedit_user");
      			}
      		},
      		['liferay-util-list-fields']
      	);
      
      	Liferay.provide(
      		window,
      		'_125_getUsersCount',
      		function(className, ids, status, callback) {
      			var A = AUI();
      
      			A.io.request(
      				'/c/users_admin/get_users_count',
      				{
      					data: {
      						className: className,
      						ids: ids,
      						status: status
      					},
      					on: {
      						success: callback
      					}
      				}
      			);
      		},
      		['aui-io']
      	);
      
      			Liferay.Portlet.onLoad(
      				{
      					canEditTitle: true,
      					columnPos: 0,
      					isStatic: 'end',
      					namespacedId: 'p_p_id_125_',
      					portletId: '125',
      					refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10175\x26p_p_id\x3d125\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x253FrefererPlid\x253D10184\x2526controlPanelCategory\x253Dusers'
      				}
      			);
      		
      			Liferay.Portlet.onLoad(
      				{
      					canEditTitle: true,
      					columnPos: 0,
      					isStatic: 'end',
      					namespacedId: 'p_p_id_145_',
      					portletId: '145',
      					refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10175\x26p_p_id\x3d145\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fgroup\x252Fcontrol_panel\x253FrefererPlid\x253D10184\x2526controlPanelCategory\x253Dusers\x26refererPlid\x3d10184\x26controlPanelCategory\x3dusers'
      				}
      			);
      		AUI().use('aui-base', 'aui-toggler', 'event-outside', 'liferay-form', 'liferay-icon', 'liferay-menu', 'liferay-notice', 'liferay-poller', 'liferay-search-container', 'liferay-session', 'liferay-store', function(A) {(function() {
      	Liferay.Util.addInputType();
      
      	Liferay.Portlet.ready(
      		function(portletId, node) {
      			Liferay.Util.addInputType(node);
      		}
      	);
      })();(function() {
      	new Liferay.Menu();
      
      	var liferayNotices = Liferay.Data.notices;
      
      	for (var i = 1; i < liferayNotices.length; i++) {
      		new Liferay.Notice(liferayNotices[i]);
      	}
      
      	
      		Liferay.Poller.init(
      			{
      				encryptedUserId: 'gC3LTiJpY/kAaFTXu5JWPA==',
      				supportsComet: false
      			}
      		);
      	})();(function() {
      				Liferay.Session = new Liferay.SessionBase(
      					{
      						autoExtend: false,
      						sessionLength: 30,
      						redirectOnExpire: false,
      						redirectUrl: 'http\x3a\x2f\x2flocalhost\x3a8080\x2fweb\x2fguest',
      						warningLength: 1
      					}
      				);
      
      				Liferay.Session.plug(Liferay.SessionDisplay);
      			})();(function() {
      			A.one('#unes_').on(
      				'click',
      				function(event) {
      					var currentTarget = event.currentTarget;
      
      					currentTarget.toggleClass('open');
      
      					var menuOpen = currentTarget.hasClass('open');
      
      					var handle = Liferay.Data['unes_Handle'];
      
      					if (menuOpen && !handle) {
      						handle = currentTarget.on(
      							'clickoutside',
      							function(event) {
      								Liferay.Data['unes_Handle'] = null;
      
      								handle.detach();
      
      								currentTarget.removeClass('open');
      							}
      						);
      					}
      					else if (handle) {
      						handle.detach();
      
      						handle = null;
      					}
      
      					Liferay.Data['unes_Handle'] = handle;
      				}
      			);
      		})();(function() {
      		Liferay.Icon.register(
      			{
      				forcePost: true,
      				id: '_125_usersSearchContainer_test_menu_edit'
      
      				
      			}
      		);
      	})();(function() {
      		Liferay.Icon.register(
      			{
      				forcePost: true,
      				id: '_125_usersSearchContainer_test_menu_permissions'
      
      				
      			}
      		);
      	})();(function() {
      		Liferay.Icon.register(
      			{
      				forcePost: true,
      				id: '_125_usersSearchContainer_test_menu_manage-pages'
      
      				
      			}
      		);
      	})();(function() {Liferay.Menu.register('_125_usersSearchContainer_test_menu');})();(function() {
      		new Liferay.SearchContainer(
      			{
      				classNameHover: 'hover',
      				hover: true,
      				id: '_125_usersSearchContainer',
      				rowClassNameAlternate: '',
      				rowClassNameAlternateHover: '-hover',
      				rowClassNameBody: '',
      				rowClassNameBodyHover: ''
      			}
      		).render();
      	})();(function() {
      	new A.TogglerDelegate(
      		{
      			animated: true,
      			container: '#usersAdminOrganizationPanelContainer',
      			content: '.toggler-content',
      			header: '.toggler-header',
      			on: {
      				'toggler:expandedChange': function(event) {
      					var header = event.target.get('header');
      
      					var persistId = header.getData('persist-id');
      
      					if (persistId) {
      						var data = {};
      
      						data[persistId] = event.newVal ? 'open' : 'closed';
      
      						Liferay.Store(data);
      					}
      				}
      			},
      			transition: {
      				duration: .3
      			}
      		}
      	);
      })();(function() {
      	Liferay.Form.register(
      		{
      			id: '_125_fm'
      
      			
      				, fieldRules: [
      
      					
      
      				]
      			
      		}
      	);
      })();(function() {Liferay.Menu.register('_125_kldx_menu');})();(function() {
      			A.one('#_145_mySites').on(
      				'click',
      				function(event) {
      					var currentTarget = event.currentTarget;
      
      					currentTarget.toggleClass('open');
      
      					var menuOpen = currentTarget.hasClass('open');
      
      					var handle = Liferay.Data['_145_mySitesHandle'];
      
      					if (menuOpen && !handle) {
      						handle = currentTarget.on(
      							'clickoutside',
      							function(event) {
      								Liferay.Data['_145_mySitesHandle'] = null;
      
      								handle.detach();
      
      								currentTarget.removeClass('open');
      							}
      						);
      					}
      					else if (handle) {
      						handle.detach();
      
      						handle = null;
      					}
      
      					Liferay.Data['_145_mySitesHandle'] = handle;
      				}
      			);
      		})();(function() {
      			A.one('#_145_userAvatar').on(
      				'click',
      				function(event) {
      					var currentTarget = event.currentTarget;
      
      					currentTarget.toggleClass('open');
      
      					var menuOpen = currentTarget.hasClass('open');
      
      					var handle = Liferay.Data['_145_userAvatarHandle'];
      
      					if (menuOpen && !handle) {
      						handle = currentTarget.on(
      							'clickoutside',
      							function(event) {
      								Liferay.Data['_145_userAvatarHandle'] = null;
      
      								handle.detach();
      
      								currentTarget.removeClass('open');
      							}
      						);
      					}
      					else if (handle) {
      						handle.detach();
      
      						handle = null;
      					}
      
      					Liferay.Data['_145_userAvatarHandle'] = handle;
      				}
      			);
      		})();});
      // ]]>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kiyoshi.lee Kiyoshi Lee
              Reporter:
              he.song Serena Song (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 50 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.0 CE M6