Serialized xml is nested too deeply - TestToolkit
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- powershell
- Ambito
- tooling
Direzione di ricerca
Start by reproducing the reported error with the supplied PowerShell script and -includeTestToolkit, then compare it with the Import-TestToolkitToBcContainer command mentioned in the report. The issue does not identify repository files or tests, so locate the relevant TestToolkit import/container entry points before tracing the XML serialization failure. Done means the container can be created with the Test Toolkit without the nested-XML error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
1. Describe the bug
I am getting the "Serialized xml is nested too deeply" error message when I create a docker container using a PowerShell script. The script includes the -includeTestToolkit flag.
2. To Reproduce
Steps to reproduce the behavior:
- Execute the following script
/*********************** Script begins ************************/
install-module BcContainerHelper -force
$accept_eula = $true
$containername = 'bc29'
$licenseFile = ''
$auth = 'Windows'
$usessl = $false
$updateHosts = $true
$assignPremiumPlan = $true
$shortcuts = 'Desktop'
$bcVersion = '29.0.0.0'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'CA' -version $bcVersion -select 'Closest' -accept_insiderEula -storageAccount bcinsider
if ($auth -eq 'Windows') {
$credential = get-credential -UserName $env:USERNAME -Message 'Using Windows Authentication. Please enter your Windows credentials.'
}
elseif ($auth -eq 'UserPassword') {
$credential = get-credential -Message 'Using Username/Password Authentication. Please enter credentials.'
}
else {
throw '$auth needs to be either Windows or UserPassword'
}
if (!$accept_eula) {
throw 'You have to accept the eula in order to create a Container.'
}
if (!($containername)) {
throw 'You have to specify a container name in order to create a container.'
}
if (!($artifactUrl)) {
throw 'No matching build was found for your version of Business Central'
}
New-BcContainer -accept_eula:$accept_eula -accept_insiderEula
-containername $containername -artifactUrl $artifactUrl
-auth $auth -Credential $credential
-usessl:$usessl -updateHosts:$updateHosts
-licenseFile $licenseFile -assignPremiumPlan:$assignPremiumPlan
-shortcuts $shortcuts `
-includeTestToolkit
if ($licenseFile) {
Setup-BcContainerTestUsers -containerName $containername -password $credential.Password
}
/*********************** Script ends ************************/
3. Expected behavior
The docker container should be created without any errors and include all the Tests extensions.
4. Actual behavior
Le XML sérialisé est imbriqué trop profondément. Line 1, position 3605. (Serialized xml is nested too deeply. Line 1, position 3605.)
NOTE: I also tried to the following command:
Import-TestToolkitToBcContainer -containerName bc29 -includeTestRunnerOnly and got the following result:
5. Versions:
- AL Language: 18
- Visual Studio Code: N/A
- Business Central: 29.0.52454.0
- List of Visual Studio Code extensions that you have installed: None
- Operating System:
- Windows
- Linux
- MacOS
- Lingua principale
- PowerShell
- Stelle
- 884
- Fork
- 285
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la 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 microsoft/AL
-
accepted al-tools bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
-
accepted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
-
suggestion
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di microsoft/AL
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
acsandmann/rift#577 ·
I maintainer di solito rispondono entro 1 giorno
-
type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
blamechris/chroxy#8579 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
darnitdevorg/darnit#587 ·
I maintainer di solito rispondono entro 1 giorno