Skip to content

Commit 3d0d718

Browse files
committed
Fix handling of executable flag for encrypted WebDAV backends
1 parent d1fb14a commit 3d0d718

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/jfs/sync/dav/DavStorageAccess.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public boolean setWritable(String rootpath, String path, boolean writable) {
240240

241241
@Override
242242
public boolean setExecutable(String rootpath, String path, boolean executable) {
243-
return false;
243+
return true;
244244
} // setExecutable()
245245

246246

@@ -285,6 +285,7 @@ public InputStream getInputStream(String rootpath, String path) throws IOExcepti
285285
} // getInputStream()
286286

287287

288+
@Override
288289
protected OutputStream getOutputStream(String rootPath, final String relativePath, final boolean forPayload) throws IOException {
289290
LOG.debug("getOutputStream() {}", relativePath);
290291
final String url = getUrl(rootPath, relativePath);

src/jfs/sync/encdav/EncDavStorageAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public boolean setWritable(String rootPath, String relativePath, boolean writabl
265265

266266
@Override
267267
public boolean setExecutable(String rootPath, String relativePath, boolean executable) {
268-
return false;
268+
return true;
269269
}
270270

271271

src/jfs/sync/encryption/AbstractMetaStorageAccess.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ protected Map<String, ExtendedFileInfo> getMetaData(String rootPath, String rela
7878
ExtendedFileInfo fi = null;
7979
if (o instanceof ExtendedFileInfo) {
8080
fi = (ExtendedFileInfo)o;
81+
} else {
82+
LOG.error("getMetaData() still old limited file info in use.");
8183
} // if
8284
if ((fi==null)&&(o instanceof FileInfo)) {
8385
FileInfo info = (FileInfo)o;

0 commit comments

Comments
 (0)