소스 검색

Don't strip slashes from fullPath

The lack of a fitting slash causes strict servers like nginx to refuse
deletion of a collection (resulting in a "409 Conflict" error, which
strictly speaking should probably be a 404).

Keeping fullPath as it is on received propfind entries should generally
be the right thing, as the server (which is the authority of its URIs)
can be expected to provide them in the very form it later expects them
used. (And for legitimate concatenation as in the creation of names for
to-be-uploaded files, the slash will be stripped when the paths are
joint anyway).
chrysn 5 년 전
부모
커밋
6a3e833f31
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/lib/DAV/Entry.js

+ 1 - 1
src/lib/DAV/Entry.js

@@ -34,7 +34,7 @@ export default class Entry extends EventObject {
     super();
 
     this.#directory = directory;
-    this.#fullPath = joinPath(fullPath);
+    this.#fullPath = fullPath;
     [this.#path, this.#name] = this.getFilename();
     this.#title = title;
     this.#modified = modified;