Skip to content

Commit

Permalink
Merge pull request #28914 from owncloud/webui-back-to-olddav
Browse files Browse the repository at this point in the history
Web UI goes back to old DAV endpoint
  • Loading branch information
Vincent Petry authored Sep 6, 2017
2 parents d4261ca + 9f96ea2 commit 9d6cf21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/js/files/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@

var client = new OC.Files.Client({
host: OC.getHost(),
root: OC.linkToRemoteBase('dav') + '/files/' + encodeURIComponent(OC.getCurrentUser().uid) + '/',
root: OC.linkToRemoteBase('webdav'),
useHTTPS: OC.getProtocol() === 'https'
});
OC.Files._defaultClient = client;
Expand Down
2 changes: 1 addition & 1 deletion core/js/tests/specs/files/clientSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ describe('OC.Files.Client tests', function() {

expect(propFindStub.calledOnce).toEqual(true);
expect(propFindStub.getCall(0).args[0])
.toEqual('https://somehost:8080/owncloud/remote.php/dav/files/test%40%23%3F%25test/path/to%20sp%40ce/a%40b%23%3F%25/x');
.toEqual('https://somehost:8080/owncloud/remote.php/webdav/path/to%20sp%40ce/a%40b%23%3F%25/x');
});
});
});

0 comments on commit 9d6cf21

Please sign in to comment.