mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
[364633] [dstore][multithread] process miner getting wrong uid
This commit is contained in:
parent
6915a43ab1
commit
82d4f5a76a
1 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2006, 2011 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
|
||||
|
@ -16,6 +16,7 @@
|
|||
* Noriaki Takatsu (IBM) - [220126] [dstore][api][breaking] Single process server for multiple clients
|
||||
* 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
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.dstore.universal.miners;
|
||||
|
@ -90,7 +91,7 @@ public class UniversalProcessMiner extends Miner
|
|||
DataElement status = getCommandStatus(theCommand);
|
||||
DataElement subject = getCommandArgument(theCommand, 0);
|
||||
|
||||
//UniversalServerUtilities.logInfo(getMinerName(), name + ":" + subject);
|
||||
UniversalServerUtilities.logInfo(getMinerName(), name + ":" + subject, _dataStore);
|
||||
|
||||
if (subject == null) {
|
||||
|
||||
|
@ -151,10 +152,12 @@ public class UniversalProcessMiner extends Miner
|
|||
*/
|
||||
protected DataElement handleQueryUserName(DataElement subject, DataElement status) {
|
||||
if (_dataStore.getClient() != null){
|
||||
subject.setAttribute(DE.A_VALUE, _dataStore.getClient().getProperty("user.name")); //$NON-NLS-1$
|
||||
String userName = _dataStore.getClient().getProperty("client.username"); //$NON-NLS-1$
|
||||
subject.setAttribute(DE.A_VALUE, userName);
|
||||
}
|
||||
else {
|
||||
subject.setAttribute(DE.A_VALUE, System.getProperty("user.name")); //$NON-NLS-1$
|
||||
String 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