github / github/app

[AzureDevOpsExtension] Inline work item attachment images do not render in canvas

Đang mở
#3,274 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Affected version or release

1.0.80

### Installation context

GitHub Copilot app on Windows, using the built-in Azure DevOps canvas to view a work item.

### What happened?

Images uploaded as Azure DevOps work item attachments and embedded inline in the work item description do not render in the Azure DevOps canvas. The canvas shows a broken-image icon followed by the image alt text. The rest of the description renders normally.

The same description, including its inline images, renders correctly in the Azure DevOps web UI.

### Steps to reproduce

1. Open an Azure DevOps work item in the web UI.
2. Upload an image into the work item description so Azure DevOps stores it as a work item attachment.
3. Save the work item and confirm that the image renders inline in the Azure DevOps web UI.
4. Open the same work item in the built-in Azure DevOps canvas in the GitHub Copilot app.
5. Observe the broken-image icon and alt text instead of the image.

### Expected behavior

Authenticated Azure DevOps attachment images embedded in a work item description should render inline in the canvas, matching the Azure DevOps web UI.

### Additional context

This appears specific to protected Azure DevOps attachment URLs. The canvas can render the surrounding rich text, but its image request may not use the Azure DevOps extension's authenticated request path.

#### Example failing image reference

```markdown
![Template Package Import from file selection through Import check, Confirm, Import, and opening the imported Configuration Template.](https://dev.azure.com///_apis/wit/attachments/)
```

The failing source is a direct authenticated `_apis/wit/attachments/{id}` URL without a public access token or query string. The organization, project ID, and attachment ID are redacted because this is a public issue.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start in the Azure DevOps canvas rendering path and trace how the markdown image URL for _apis/wit/attachments/{id} is requested. Compare that request with the Azure DevOps extension's authenticated request path; done means protected attachment images render inline in the canvas, matching the Azure DevOps web UI, without breaking surrounding rich text.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
azure
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.