Skip to content

Commit

Permalink
webdav:HTTPS PUT req issue
Browse files Browse the repository at this point in the history
Motivation

webdav HTTPS redirect to encrypt transfers is working for GET requests but it is not for PUT requests and  after redirect the location is  still with http.

The problem was that the isSSl flag, based on the value of which either https or http protocl is used,  was not set  for upload.

Modification

Https PUT is possible.

Target: master, 6.2, 6.1, 6.0
Require-book: no
Require-notes: yes
Acked-by: Paul Millar
Patch: https://rb.dcache.org/r/12631/
  • Loading branch information
mksahakyan committed Oct 29, 2020
1 parent 7ba8ba1 commit fd24275
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ public String getWriteUrl(FsPath path, Long length)

String uri = null;
WriteTransfer transfer = new WriteTransfer(_pnfs, subject, restriction, path);
transfer.setSSL(_redirectToHttps && ServletRequest.getRequest().isSecure());
_transfers.put((int) transfer.getId(), transfer);
try {
transfer.createNameSpaceEntry();
Expand Down

0 comments on commit fd24275

Please # to comment.