mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
[385214] [dstore][processes] user id query coming back blank
This commit is contained in:
parent
043ebcca8c
commit
4007c67606
1 changed files with 7 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2011 IBM Corporation and others.
|
||||
* Copyright (c) 2006, 2012 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -17,6 +17,7 @@
|
|||
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability
|
||||
* David McKnight (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed
|
||||
* David McKnight (IBM) - [364633] [dstore][multithread] process miner getting wrong uid
|
||||
* David McKnight (IBM) - [385214] [dstore][processes] user id query coming back blank
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.dstore.universal.miners;
|
||||
|
@ -151,14 +152,14 @@ public class UniversalProcessMiner extends Miner
|
|||
* Get the username
|
||||
*/
|
||||
protected DataElement handleQueryUserName(DataElement subject, DataElement status) {
|
||||
String userName = null;
|
||||
if (_dataStore.getClient() != null){
|
||||
String userName = _dataStore.getClient().getProperty("client.username"); //$NON-NLS-1$
|
||||
subject.setAttribute(DE.A_VALUE, userName);
|
||||
userName = _dataStore.getClient().getProperty("client.username"); //$NON-NLS-1$
|
||||
}
|
||||
else {
|
||||
String userName = System.getProperty("user.name"); //$NON-NLS-1$
|
||||
subject.setAttribute(DE.A_VALUE, userName);
|
||||
if (userName == null){
|
||||
userName = System.getProperty("user.name"); //$NON-NLS-1$
|
||||
}
|
||||
subject.setAttribute(DE.A_VALUE, userName);
|
||||
|
||||
_dataStore.refresh(subject);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue