From 3197a368df39f1de501e2183b566dabe3093709f Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 17 Jan 2008 21:50:01 +0000 Subject: [PATCH] [209593] make sure the check the service for canGet...() --- .../internal/files/ui/view/SystemViewRemoteFileAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java index cb031063d25..6ba652a3058 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java @@ -1317,7 +1317,7 @@ public class SystemViewRemoteFileAdapter if (file instanceof IAdaptable){ final IFilePermissionsService service = (IFilePermissionsService)((IAdaptable)file).getAdapter(IFilePermissionsService.class); - if (service != null){ + if (service != null && service.canGetFilePermissions(file.getParentPath(), file.getName())){ final IRemoteFile rFile = file; @@ -1358,7 +1358,7 @@ public class SystemViewRemoteFileAdapter if (file instanceof IAdaptable){ final IFileOwnerService service = (IFileOwnerService)((IAdaptable)file).getAdapter(IFileOwnerService.class); - if (service != null){ + if (service != null && service.canGetFileOwner(file.getParentPath(), file.getName())){ final IRemoteFile rFile = file; @@ -1398,7 +1398,7 @@ public class SystemViewRemoteFileAdapter if (group == null){ if (file instanceof IAdaptable){ final IFileOwnerService service = (IFileOwnerService)((IAdaptable)file).getAdapter(IFileOwnerService.class); - if (service != null){ + if (service != null && service.canGetFileOwner(file.getParentPath(), file.getName())){ final IRemoteFile rFile = file; Job deferredFetch = new Job(FileResources.MESSAGE_GETTING_GROUP)