[Bug]: Avalara connector uses an unsupported Accept media type for document downloads
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend
Hướng nghiên cứu
Bắt đầu với src/Apps/W1/EDocumentConnectors/Avalara/App/src/Connection/Requests.Codeunit.al, trong codeunit 6376 Requests và procedure CreateDownloadRequest. Kiểm tra cách chọn header Accept của UBL và liệu loại phương tiện được đề xuất có áp dụng cho tất cả các mandate và môi trường Avalara được hỗ trợ hay không. Công việc hoàn tất khi tài liệu bị ảnh hưởng được tải xuống thành công bằng loại phương tiện được hỗ trợ và quy trình xử lý XML hiện có vẫn tương thích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the issue
The Avalara E-Document connector hardcodes the following HTTP header
in codeunit 6376 Requests, procedure CreateDownloadRequest(Id: Text):
line 195: Accept: application/vnd.oasis.ubl+xml
This media type is no longer accepted for the documents tested in our
Avalara environment, preventing downloads using this request.
When testing the same request in Postman, the following Accept values
are accepted:
**- application/vnd.oasis.ubl.flow2+xml
- application/vnd.oasis.sbdh.flow2+xml**
The XML structure seems to appear unchange for the UBL representation with application/vnd.oasis.ubl.flow2+xml;
the issue appears to concern the accepted media type rather than
a change to the document structure.
We have observed this behavior since approximately July 2026.
Actual response with application/vnd.oasis.ubl+xml:
{
"error": 404,
"message": "The requested media type has not been generated yet or is unavailable."
}
While with application/vnd.oasis.ubl.flow2+xml we obtain a code 200 with the UBL.
Expected behavior
The connector should use an Accept media type supported by Avalara
so that documents can be downloaded successfully.
For the affected scenario, updating the UBL Accept header to
application/vnd.oasis.ubl.flow2+xml appears sufficient, without
changing the existing XML processing.
Steps to reproduce
-
Identify a document available for download in the affected
Avalara environment. -
Send the following request in Postman with valid authentication:
GET {baseUrl}/einvoicing/documents/{documentId}/$download
avalara-version: 1.6
Accept: application/vnd.oasis.ubl+xml -
Observe that the request fails:
{
"error": 404,
"message": "The requested media type has not been generated yet or is unavailable."
} -
Repeat the same request for the same document, changing only
the Accept header to:application/vnd.oasis.ubl.flow2+xml
-
Observe that the document is successfully downloaded.
Additional context
Environment:
- Business Central version/build: FR Business Central 29.0 (Platform 29.0.57751.0 + Application 29.0.54011.57536)
- E-Document Connector - Avalara app version: 29.0.54011.55407
- Avalara environment: sandbox
- Tested on the latest bcinsider build: not tested
Proposed fix:
Update the hardcoded UBL Accept media type to application/vnd.oasis.ubl.flow2+xml for the affected scenario, subject to confirmation of its applicability across supported Avalara mandates and environments.
I am willing to contribute a fix once the proposed approach has been reviewed and approved.
I will provide a fix for a bug
- I will provide a fix for a bug
- Ngôn ngữ chính
- AL
- Star
- 730
- Fork
- 514
- Merge trung bình
- 2 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 601
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/BCApps
-
[Bug]: Cannot add sales line item to sales order, on an on-prem installation with basic licenseĐang mởTeam: SCM
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/BCApps#14569 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BCIdea Team: Finance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/BCApps#14478 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Approved Team: Finance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
microsoft/BCApps#14443 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Contribution Process Bug]: Incorrect Spanish translation for Billing Line Document Type enum value "Invoice"Có thể đã có người làm @JesperSchulz đã nhận 1 ngày trước. Đang mởApproved Ownership: Needs Review Team: Other
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
microsoft/BCApps#14391 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Approved Team: Integrations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/BCApps#14386 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/BCApps
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
langgenius/graphon#443 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
docling-project/docling-serve#788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
HaxeFoundation/haxe#13246 ·
Maintainer thường phản hồi trong vòng 1 ngày