intersystems / intersystems/ipm
Dependency modules that come from an ORAS repo not getting installed correctly
- Dominant language
- ObjectScript
- Stars
- 41
- Forks
- 29
- Avg merge
- 23h 54m
- Merged PRs (30d)
- 4
Description
This bug occurred when was working on a last test case for the lock file where dependencies are in different repository types. For my oras module, I saw the following error: `ERROR #6301: SAX XML Parser Error: attribute name expected while processing Anonymous Stream at line 1 offset 181`
After doing some digging I isolated the error to the line in BuildDependencyGraph() (line 1083 in %IPM.Storage.Module): `set tSC = tReader.OpenStream(tManifest)`). For the other dependencies, tManifest is a `%Stream.GlobalCharacter` with the dependencies module.xml file contents in the (Buffer) property. For the oras dependency, tManifest is just a string with the contents of the module.xml file as a string. So, more specifically, the error appears to me to be the definition of `%IPM.Repo.Oras.PackageService::GetModuleManifest()` actually returning a `%String` even though it says it should be returning `%Stream.Object` (returns ..GetModuleXMLPy(...) but that method says it returns a string, not `%Stream.Object`.
Note: Doing an install of the oras module works, this appears to just be an issue when the oras module is a dependency of another module
Contributor guide
Assessment
This issue has not been assessed yet.