OneDrive for Business中缺少quickXorHash属性

时间:2017-10-16 14:37:28

标签: microsoft-graph onedrive

使用Graph Explorer我使用https://graph.microsoft.com/v1.0/me/drive/root/delta查询了所有文件。

我在结果JSON中收到了所有文件和文件夹信息,但缺少一个字段quickXorHash。我想知道在哪种情况下会发生这种情况。

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)",
    "@odata.deltaLink": "https://graph.microsoft.com/v1.0/users('77997c16-1d92-49c0-916e-9546f17866bd')/drive/root/microsoft.graph.delta(token='3;%234;%231;3;427e0cf7-4afd-4274-a4d1-31b37c663ddd;636437480223070000;84091625;%23;%23;%234')",
    "value": [{
            "@odata.type": "#microsoft.graph.driveItem",
            "createdDateTime": "2017-09-18T21:31:37Z",
            "id": "01UPFXVZF6Y2GOVW7725BZO354PWSELRRZ",
            "lastModifiedDateTime": "2017-10-16T10:47:54Z",
            "name": "root",
            "parentReference": {
                "driveId": "b!pwTcL3vJrkKoO2ZY-WwxrVlgzgu27gdHr48cEKyBAxT3DH5C_Up0QqTRMbN8Zj3d",
                "driveType": "business"
            },
            "webUrl": "https://alohatest-my.sharepoint.com/personal/ankit_alohatest_onmicrosoft_com/Documents",
            "fileSystemInfo": {
                "createdDateTime": "2017-09-18T21:31:37Z",
                "lastModifiedDateTime": "2017-10-16T10:47:54Z"
            },
            "folder": {
                "childCount": 2
            },
            "root": {},
            "size": 21900
        },
        {
            "@odata.type": "#microsoft.graph.driveItem",
            "createdBy": {
                "user": {
                    "displayName": "Ankitkumar Trivedi"
                }
            },
            "createdDateTime": "2017-09-25T13:00:51Z",
            "eTag": "\"{2DB5D262-F619-4211-90C8-022E88BDA026},1\"",
            "id": "01UPFXVZDC2K2S2GPWCFBJBSACF2EL3IBG",
            "lastModifiedDateTime": "2017-09-25T13:00:51Z",
            "name": "Attachments",
            "parentReference": {
                "driveId": "b!pwTcL3vJrkKoO2ZY-WwxrVlgzgu27gdHr48cEKyBAxT3DH5C_Up0QqTRMbN8Zj3d",
                "driveType": "business",
                "id": "01UPFXVZF6Y2GOVW7725BZO354PWSELRRZ",
                "path": "/drive/root:"
            },
            "webUrl": "https://alohatest-my.sharepoint.com/personal/ankit_alohatest_onmicrosoft_com/Documents/Attachments",
            "fileSystemInfo": {
                "createdDateTime": "2017-09-25T13:00:51Z",
                "lastModifiedDateTime": "2017-09-25T13:00:51Z"
            },
            "folder": {
                "childCount": 1
            },
            "size": 10950,
            "specialFolder": {
                "name": "attachments"
            }
        },
        {
            "@odata.type": "#microsoft.graph.driveItem",
            "createdBy": {
                "user": {
                    "displayName": "Ankitkumar Trivedi"
                }
            },
            "createdDateTime": "2017-10-16T10:46:08Z",
            "eTag": "\"{D09EC733-7BBD-44A8-B28D-F77377D52F9B},10\"",
            "id": "01UPFXVZBTY6PNBPL3VBCLFDPXON35KL43",
            "lastModifiedDateTime": "2017-10-16T10:47:40Z",
            "name": "MyFile.docx",
            "parentReference": {
                "driveId": "b!pwTcL3vJrkKoO2ZY-WwxrVlgzgu27gdHr48cEKyBAxT3DH5C_Up0QqTRMbN8Zj3d",
                "driveType": "business",
                "id": "01UPFXVZDC2K2S2GPWCFBJBSACF2EL3IBG",
                "path": "/drive/root:/Attachments"
            },
            "webUrl": "https://alohatest-my.sharepoint.com/personal/ankit_alohatest_onmicrosoft_com/Documents/Attachments/MyFile.docx",
            "file": {
                "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
            },
            "fileSystemInfo": {
                "createdDateTime": "2017-10-16T10:46:08Z",
                "lastModifiedDateTime": "2017-10-16T10:47:40Z"
            },
            "size": 10950
        }
    ]
}

以下是我的观察。

  1. 所有文件都缺少哈希。
  2. 然后我查询单个文件的元数据" XYZ.txt"并收到元数据JSON,其中包含HASH。
  3. 然后我又查询了所有文件和文件夹JSON,令我惊讶的是它包含了以前查询过的文件的HASH,但是对于所有其他文件,HASH丢失了。
  4. 然后我再次查询其他文件的元数据" 123.txt"我收到了那个有HASH的文件的元数据。
  5. 然后我又查询了所有文件和文件夹JSON,令我惊讶的是它包含查询文件的HASH。
  6. 在此之后,我开始接收已存在或新添加的所有文件的HASH。

0 个答案:

没有答案