OneDrive是否支持TLS 1.2?

时间:2019-01-22 01:48:48

标签: onedrive

当源URL到TLS 1.2服务器时,OneDrive文件上传失败

$ curl -L -H"Authorization: $ACCESS_TOKEN"  -H"Content-Type: application/json" -H"Prefer: respond-async" "https://graph.microsoft.com/v1.0/me/drive/root/children" -d'{
  "@microsoft.graph.sourceUrl": "https://tls-v1-2.badssl.com:1012/icons/icon-green.png",
  "name": "icon-green.png",
  "file": { }
}'

这将返回“ 202接受”,带有一个包含用于跟踪上传的URL的Location标头。返回以下信息:

{"operation":"DownloadUrl","status":"failed","statusDescription":"Unexpected response 'InternalServerError The underlying connection was closed: An unexpected error occurred on a send.' when downloading all content"}

使用TLS 1.0服务器(遵循Location标头)

$ curl -L -H"Authorization: $ACCESS_TOKEN"  -H"Content-Type: application/json" -H"Prefer: respond-async" "https://graph.microsoft.com/v1.0/me/drive/root/children" -d'{
  "@microsoft.graph.sourceUrl": "https://tls-v1-0.badssl.com:1010/icons/icon-red.png",
  "name": "icon-green.png",
  "file": { }
}'

{"operation":"DownloadUrl","percentageComplete":100.0,"resourceId":"6A071D3FEEC6C6B6!115","status":"completed","statusDescription":"URL was successfully downloaded to target"}

1 个答案:

答案 0 :(得分:0)

应该,但显然不是。我们将研究添加支持。

更新:

此问题现已修复-在TLS 1.2端点上下载文件的请求应该可以使用。