[Bug]: External Storage - Document Attachments fails on Purch. Cr. Memo Hdr. due to trailing dot in generated SharePoint folder name
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia in codeunit 8751 "DA External Storage Impl.", nello specifico in GetTableNameFolder, e riproduci il caricamento degli allegati di Posted Purchase Credit Memo tramite il SharePoint connector. Il lavoro è completato quando i nomi delle cartelle generate rimuovono i caratteri finali non supportati, incluso il punto finale in "Purch. Cr. Memo Hdr.", prima della creazione delle cartelle.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the issue
We are testing the integration between:
- External Storage - Document Attachments
- External File Storage - SharePoint Connector
When attempting to upload a document attachment from a Posted Purchase Credit Memo, the upload fails with the following error:
Expected behavior
Before creating folders in SharePoint, the connector should sanitize folder names and remove invalid trailing characters "." (and other character not supported by sharepoint).
For Example "Purch. Cr. Memo Hdr." should became "Purch._Cr._Memo_Hdr"
Steps to reproduce
- Configure External File Storage - SharePoint Connector
- Configure a valid SharePoint site
- Enable external storage for Document Attachments
- Open "Posted Purchase Credit Memos" and upload an attachment
Additional context
Business Central 28.5 SaaS
External Storage - Document Attachments
External File Storage - SharePoint Connector
No legacy API
I will provide a fix for a bug
- I will provide a fix for a bug
Suggested fix
codeunit 8751 "DA External Storage Impl." implements "File Scenario"
Current code:
local procedure GetTableNameFolder(TableID: Integer): Text[100]
var
TableName: Text;
begin
// Try to get table name from metadata, fallback to table ID if not available
if not TryGetTableName(TableID, TableName) then
TableName := 'Table_' + Format(TableID);
// Replace invalid characters for folder names
TableName := DelChr(TableName, '=', '<>:"/\|?*');
TableName := ConvertStr(TableName, ' ', '_');
exit(CopyStr(TableName, 1, 100));
end;
New code:
procedure GetTableNameFolder(TableID: Integer): Text[100]
var
TableName: Text;
begin
// Try to get table name from metadata, fallback to table ID if not available
if not TryGetTableName(TableID, TableName) then
TableName := 'Table_' + Format(TableID);
// Replace invalid characters for folder names
TableName := DelChr(TableName, '=', '<>:"/\|?*');
TableName := ConvertStr(TableName, ' ', '_');
**TableName := DelChr(TableName, '>', '. ');**
exit(CopyStr(TableName, 1, 100));
end;
- Lingua principale
- AL
- Stelle
- 683
- Fork
- 459
- Merge medio
- 3g 44m
- PR unite (30g)
- 563
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/BCApps
-
Team: SCM
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Team: SCM
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Approved Ownership: Needs Review Team: Other
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
microsoft/BCApps#11800 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Ownership: Needs Review Team: Other
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/BCApps#11746 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Approved event-request ext-ready-to-implement Team: Finance
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/BCApps#11725 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/BCApps
Issue simili
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
DataDog/dd-trace-go#5469 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Reusing BFSDeepCrawlStrategy leaks the previous crawl's max_pages budget into a fresh runAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
unconfirmed bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Rapptz/discord.py#10529 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: MRV2 prepare_inputs signature is incompatible with updated vLLM num_active_loras argumentApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
vllm-project/vllm-ascend#17710 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno