Load skips resources without an error when the SourcesRoot directory is missing
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
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- backend
Direzione di ricerca
Start with ipm2/src/cls/IPM/ResourceProcessor/Default/Document.cls around line 114 and the Reload caller in ipm2/src/cls/IPM/Lifecycle/Base.cls around line 738. Trace how a missing sources directory affects normal resources, preload resources, and package test or verify loads; the issue identifies possible cases that may rely on the current skip. Done means Reload reports a clear error naming the missing directory for affected resources without breaking legitimate skips.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
When a module's SourcesRoot directory does not exist, load and install skip the module's code without reporting it.
This matters because a mistyped or missing SourcesRoot either fails with an error that points the wrong way or doesn't fail at all:
- A compiled resource fails later in Compile with "Class does not exist", which does not mention the missing directory.
- A resource that is never compiled doesn't fail at all. With
Compile="0", every phase reports success and the class doesn't exist after install. Lookup tables and other uncompiled types likely behave the same, so the module looks installed until something uses them.
Every resource handled by %IPM.ResourceProcessor.Default.Document is affected, which covers classes, routines, include files and most other document types. Document.cls:114 checks that the module's sources directory exists and quits the load loop if it doesn't:
set tResourceDirectory = ##class(%File).NormalizeDirectory(tRoot_"/"_tSubDirectory)
if ('##class(%File).DirectoryExists(tResourceDirectory)) {
quit
}
tResourceDirectory is {Root}/{SourcesRoot} (or {Root}/preload/ for preload resources), not the resource's own file. Leaving the loop skips both the source load and the "Resource path not found" error below it. The Reload caller (Base.cls:738) doesn't check pResourceHandled, so Reload reports success.
When the directory exists but the file doesn't, Reload fails with a clear error. Only a missing directory is silent.
To Reproduce
- Create a module whose
SourcesRootnames a directory that doesn't exist, with the class under a different directory:srcroot-repro/ ├── module.xml <SourcesRoot>src</SourcesRoot> │ <Resource Name="SrcRootRepro.Main.CLS"/> └── source/cls/SrcRootRepro/Main.cls load /path/to/srcroot-repro- Reload succeeds and Compile fails:
[USER|srcroot-repro] Reload START (/usr/irissys/mgr/srcroot-repro-21584/) [USER|srcroot-repro] Reload SUCCESS ... [USER|srcroot-repro] Compile START [srcroot-repro] Compile FAILURE ERROR! Class 'SrcRootRepro.Main' does not exist.
For comparison, setting <SourcesRoot>source</SourcesRoot> and naming a resource with no file (SrcRootRepro.Missing.CLS) fails in Reload:
[srcroot-repro] Reload FAILURE
ERROR! Resource path '/usr/irissys/mgr/srcroot-repro-21602/source/cls/SrcRootRepro/Missing.xml' not found
Expected behavior
Reload fails for a resource whose sources directory is missing, with an error naming that directory, just as it does for a missing file.
Screenshots
N/A
System information (please complete the following information):
- IPM version: 0.10.11-SNAPSHOT (branch
fix-deployed-load-1279-1125, which doesn't change this path) - IRIS version: IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2026.1 (Build 234U)
- OS: Unix
- Docker or local: Docker
Additional context
Found while fixing #1279, which this same quit caused for deployed code. That fix moves the deployed-project install ahead of the directory check, so deployed resources no longer reach it. Non-deployed resources still do.
Before replacing the quit with an error, check which loads may rely on the silent skip:
- Preload resources only set
^Sourcesin this branch, because the preload tree is imported separately. A missingpreload/directory may be legitimate for them. testorverifyon a module installed from a package, where test-scoped resources come into scope but the package may not include their sources.
- Lingua principale
- ObjectScript
- Stelle
- 41
- Fork
- 33
- Merge medio
- 23h 20m
- PR unite (30g)
- 29
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un 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 intersystems/ipm
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
intersystems/ipm#1338 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
intersystems/ipm#1241 ·
I maintainer di solito rispondono entro 1 giorno
-
CI checks on IRIS for Health Community 2025.3 failing: license expiredForse già presa @isc-eneil l’ha presa 2 giorni fa. Apertabug
intersystems/ipm#1335 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
intersystems/ipm#1328 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 53/100
intersystems/ipm#1327 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di intersystems/ipm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
aws-documentation-mcp-server: empty spanning headers shift table column labelsForse già presa @pradeep-ramola l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
opensearch-project/sql#5990 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
GustavoBaranda/chatflow-agent#238 ·
I maintainer di solito rispondono entro 1 giorno