我使用VSTS使用修补程序请求将附件上载到工作项,它运行良好。现在,如果我在同一个团队项目中使用另一个用户从工作项访问附件,它表示未经授权的读取访问。
{"$id":"1","innerException":null,"message":"VS402330: Unauthorized Read access to the attachment under the areas ","typeName":"Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemUnauthorizedAttachmentException, Microsoft.TeamFoundation.WorkItemTracking.Server","typeKey":"WorkItemUnauthorizedAttachmentException","errorCode":0,"eventId":3200} 注意:我使用的其他用户是在默认域中的Azure中创建的- ie - user.account@xyz.onmicrosoft.com。
这里是Repro步骤:
普雷库斯岩
复制步骤:
1. After a successful upload, the API returns the reference url. Get the url;
2. Stick the url in browser and try to get the file using the same account that was used to upload it; The file should showup/download successfully.
3. Log off from vsts and login as one of the other users created in the prerequsites.
4. Stick the attachment url in browser and try to get the file again;
5. Instead of downloading the file, it throws Unauthorised read access. `{ "$id": "1", "innerException": null, "message": "VS402330: Unauthorized Read access to the attachment under the areas ", "typeName": "Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemUnauthorizedAttachmentException, Microsoft.TeamFoundation.WorkItemTracking.Server", "typeKey": "WorkItemUnauthorizedAttachmentException", "errorCode": 0, "eventId": 3200 }`
发布于 2017-08-24 05:22:35
在上传用户将附件关联到工作项之前,我可以复制此问题。有一个反馈,您可以投票和跟踪:VSTS REST上载附件文件问题。
解决办法是,您可以将附件关联到工作项,然后其他人可以访问它们。
https://stackoverflow.com/questions/45817926
复制相似问题