[Bug]: "Ext. File Share Connector Impl" MoveFile uses "AFS File Client" RenameFile with parameters flipped
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
- 78/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 tại ExtFileShareConnectorImpl.Codeunit.al, ở thủ tục MoveFile, rồi kiểm tra khai báo và phần triển khai RenameFile trong AFS File Client Impl. Issue chỉ ra rằng các đối số nguồn và đích bị đảo vị trí; hãy đối chiếu lời gọi với thứ tự tham số của RenameFile. Hoàn tất khi việc di chuyển tệp từ FolderA/ sang FolderA/Archive/ thành công và tệp nguồn nằm ở đí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 MoveFile procedure in codeunit 4570 "Ext. File Share Connector Impl" calls RenameFile on codeunit 8950 "AFS File Client" with SourceFilePath and DestinationFilePath swapped:
// ExtFileShareConnectorImpl.Codeunit.al, MoveFile
AFSOperationResponse := AFSFileClient.RenameFile(TargetPath, SourcePath);
RenameFile is declared as RenameFile(SourceFilePath: Text; DestinationFilePath: Text). Its implementation in "AFS File Client Impl." puts the first parameter in the x-ms-file-rename-source header and uses the second as the request path (the destination):
AFSOperationPayload.AddRequestHeader('x-ms-file-rename-source', SourceFilePath);
...
AFSOperationPayload.SetPath(DestinationFilePath);
So when External File Storage.MoveFile(SourcePath, TargetPath) is used with an Azure File Share account, the connector asks Azure to rename the target file to the source location. The target file does not exist yet, so the move fails.
Expected behavior
The file is moved from FolderA/ to FolderA/Archive/.
Steps to reproduce
-
Set up an "Ext. File Share Account" and assign it the default file scenario.
-
Upload a file, e.g.
FolderA/Test file.txt. -
Run:
ExternalFileStorage.Initialize(Enum::"File Scenario"::Default); ExternalFileStorage.MoveFile('FolderA/Test file.txt', 'FolderA/Archive/Test file.txt');
Additional context
No response
I will provide a fix for a bug
- I will provide a fix for a bug
- Ngôn ngữ chính
- AL
- Star
- 714
- Fork
- 482
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 556
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
-
Approved extensibility-enhancement Team: SCM
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
microsoft/BCApps#13352 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Team: SCM
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
microsoft/BCApps#13322 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Team: SCM
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
microsoft/BCApps#13250 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Deliv.-Rem. Ext. Text Transfer: OnAfterReadLines will never be reached due to exit(true)Đang mởTeam: Finance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/BCApps#13205 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: FI reference payment matching scans Cust. Ledger Entry because "Reference No." has no keyCó thể đã có người làm @AndersLarsenMicrosoft đã nhận 6 ngày trước. Đang mởApproved Team: Finance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/BCApps#13101 · 2 bình luận · 1 reaction · 1 người được giao ·
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
Maintainer thường phản hồi trong vòng 1 ngày
-
Support .aac audio uploadsCó thể đã có người làm @julien731 đã nhận hôm nay. Đang mởfeature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nimblehq/audio-transcriber#153 ·
-
[Bug]: Anthropic Responses converter forwards empty text blocks, upstream rejects with 400Có thể đã có người làm @david-choi-querypie đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:core bug priority:p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aomarai/minecraft-mcp#247 ·
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 78/100