From 82d4f5a76ab1d4557023a3b977b1898641a26631 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 23 Nov 2011 17:57:21 +0000 Subject: [PATCH] [364633] [dstore][multithread] process miner getting wrong uid --- .../universal/miners/UniversalProcessMiner.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalProcessMiner.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalProcessMiner.java index 87996b5f235..d97c3d3c989 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalProcessMiner.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/dstore/universal/miners/UniversalProcessMiner.java @@ -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);