jclouds-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject jclouds git commit: Add error handling for missing xattr
Date Fri, 04 Jan 2019 19:41:59 GMT
Repository: jclouds
Updated Branches:
  refs/heads/master 70f0635ac -> f9cebd59f


Add error handling for missing xattr

Previously this prevented listing inside a directory when using file
systems like HFS and NFS.  References gaul/s3proxy#279.


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/f9cebd59
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/f9cebd59
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/f9cebd59

Branch: refs/heads/master
Commit: f9cebd59f8acbf9628046960fe409915a644f9ef
Parents: 70f0635
Author: Andrew Gaul <gaul@apache.org>
Authored: Fri Jan 4 11:40:10 2019 -0800
Committer: Andrew Gaul <gaul@apache.org>
Committed: Fri Jan 4 11:41:32 2019 -0800

----------------------------------------------------------------------
 .../strategy/internal/FilesystemStorageStrategyImpl.java       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/f9cebd59/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
----------------------------------------------------------------------
diff --git a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
index f9491b2..b557845 100644
--- a/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
+++ b/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java
@@ -736,7 +736,11 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy
{
       if (!exists && getDirectoryBlobSuffix(tokens[tokens.length - 1]) != null
               && file.isDirectory()) {
          UserDefinedFileAttributeView view = getUserDefinedFileAttributeView(file.toPath());
-         exists = view != null && view.list().contains(XATTR_CONTENT_MD5);
+         try {
+            exists = view != null && view.list().contains(XATTR_CONTENT_MD5);
+         } catch (IOException ioe) {
+            logger.debug("xattrs not supported on %s", file.toPath());
+         }
       }
       return exists;
    }


Mime
View raw message