[Logic Apps Hybrid] Adding a File System connection is not idempotent / doesn't safely preserve existing volume mounts (duplicates & corrupts azurestorageaccounts/template.volumes)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- azure, typescript
- Ambito
- backend-api-design, cloud
Direzione di ricerca
Inizia con i rami ibrido e non ibrido di FileSystemConnectionCreationClient.ts nei percorsi AzureUX-LogicAppsPortal e LogicAppsUX, quindi confronta il mirror di CodelessWorkflows. Traccia come vengono letti e scritti template.volumes, volumeMounts e azurestorageaccounts, usando #9438 per il contesto correlato alla conservazione dei mount. Il lavoro è completato quando il salvataggio nuovamente è idempotente, tutti i mount e le condivisioni dei container esistenti rimangono intatti, il mount riservato non viene modificato e i percorsi Linux rimangono in stile POSIX.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Platform
Azure Logic Apps Hybrid (Azure Container Apps on connected/Arc environment). A parallel non-hybrid (Logic Apps Standard on App Service, Microsoft.Web/sites/config/azurestorageaccounts) path exists in the same client and is noted below.
Summary
Adding a new File System connection mutates the container app's template.volumes / template.volumeMounts (hybrid) or azurestorageaccounts (Standard) in a way that does not safely preserve prior mounts, corrupting existing volume-mount configuration (including, in combination with #9438, the reserved /home/site/wwwroot mount).
Where it happens (code)
FileSystemConnectionCreationClient.ts — same files as #9438:
- AzureUX-LogicAppsPortal:
src/Extension/Client/React/Services/FileSystemConnectionCreationClient.ts(+CodelessWorkflows/Services/mirror). - LogicAppsUX:
apps/Standalone/src/designer/app/AzureLogicAppsDesigner/Services/FileSystemConnectionCreationClient.ts.
Hybrid branch (~L167–247)
const newVolumes = [ { name: fileShareName, storageName: fileShareName, storageType: 'Smb' },
...containerAppResponse.properties.template.volumes ];
const newVolumeMounts = [ { volumeName: fileShareName, mountPath: `/mounts/${fileShareName}` },
...containerAppResponse.properties.template.containers[0].volumeMounts ];
Problems:
- Not idempotent — it unconditionally prepends. Re-saving the same connection, or reusing a
displayName, appends duplicatevolumes/volumeMountsentries for the same share. - Only
containers[0]is updated; mounts on other containers are dropped when the reconstructed template is PATCHed back. - The reconstructed template becomes the write-back source of truth (see #9438), so any drift drops existing mounts.
Non-hybrid branch (~L248–285)
const response = await httpClient.post(configFetchUrl, ...); // POST azurestorageaccounts/list
response.properties[connectionName] = newFileShareConfig; // merge
await httpClient.put(configBaseUrl, response, ...); // PUT full collection
This read-modify-writes the whole azurestorageaccounts dictionary. It preserves other entries only if the /list response returns every existing share with a usable accessKey; any masked/omitted entry is corrupted on write-back. Also emits a Windows-style mount path (\mounts\<name> → C:\mounts\<name>) which is invalid for Linux Logic Apps Standard.
Suggested fix direction
- Key each mount by a stable connector-specific name and add/update only that entry (idempotent re-save); never blind-prepend.
- Preserve every existing
volume/volumeMount(all containers) and never touch/home/site/wwwroot(see #9438). - Non-hybrid: verify
/listreturns all shares with resolvable keys before PUT; emit an OS-appropriatemountPath(POSIX on Linux).
Impact
High — File System connectors are not composable (duplicate/broken mounts), and existing mounts (incl. the runtime content mount) can be corrupted.
References
- Internal work item: https://msazure.visualstudio.com/Antares/_workitems/edit/38598433
- Related: #9438 (save drops/repoints the
/home/site/wwwrootmount).
- Lingua principale
- TypeScript
- Stelle
- 114
- Fork
- 115
- Merge medio
- 1g 3h
- PR unite (30g)
- 40
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
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 Azure/LogicAppsUX
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
Azure/LogicAppsUX#9747 ·
I maintainer di solito rispondono entro 1 giorno
-
Invalid helplink referenceForse già presa @Prefix42 l’ha presa 4 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
Azure/LogicAppsUX#9734 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Azure/LogicAppsUX#9594 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Azure/LogicAppsUX#9590 ·
I maintainer di solito rispondono entro 1 giorno
-
[Portal] In the Quick Start blade on Consumption Logic apps, the Get Started links are all brokenApertabug Portal priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Azure/LogicAppsUX#9505 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/LogicAppsUX
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ardia-browser/ardia#4778 ·
I maintainer di solito rispondono entro 1 giorno
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)Forse già presa @G-darshan-32 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
clipy-recorder/clipy#164 · 1 commento ·
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nightly-labs/openbot#18462 ·
I maintainer di solito rispondono entro 1 giorno
-
Fast and light shell approval "Always allow" button shows raw English backticks and scrambles commands in ArabicForse già presa @tylerbea l’ha presa oggi. Apertaagent-ui bug p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Windows: Ctrl+C / Ctrl+V not working in chat input boxForse già presa @PranavTJ-05 l’ha presa oggi. Apertacomp/desktop desktop/chat desktop/shell os/windows P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NousResearch/hermes-agent#161023 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno