Skip to content

Selectively undeploying classes within a package fails with IPM 0.10.x #823

Closed

Description

@isc-eneil

We have encountered some strange behavior when trying to package and deploy modules that contain a mix of deployed and undeployed code. When trying to deploy a package but explicitly leave some classes within that package undeployed, only the undeployed classes are loaded. The expected behavior is that all classes will be loaded, but those marked as deployed do not show any source upon being loaded.

There is a workaround: mark the smallest unit of each resource with Deploy="true" or Deploy="false"

Example:

  1. When loading an IPM module with the following module.xml from a tarball (via CPF merge), all classes are loaded.
<?xml version="1.0" encoding="UTF-8"?><Export generator="IRIS" version="26">
<Document name="TestIPMMod.ZPM">
   <Module>
     <Name>TestIPMMod</Name>
     <Version>1.0.0+snapshot</Version>
     <Description>Test module for initial IPM release</Description>
     <Packaging>module</Packaging>
     <Resources>
       <Resource Name="HS.Test.PKG" Deploy="true"></Resource>
     </Resources>
   </Module>
</Document></Export> 
  1. When loading an IPM module with the following module.xml from a tarball (via CPF merge), only the class marked with Deploy="false" is loaded.
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="IRIS" version="26">
<Document name="testipmmod.ZPM"><Module>
<Name>TestIPMMod</Name>
<Version>1.0.0-snapshot/Version>
<Description>Test module for initial IPM release</Description>
<Resource Deploy="true" Name="HS.Test.PKG"/>
<Resource Deploy="false" Name="HS.Test.Test.CLS"/>
</Module></Document></Export>

Internal reference: HSIEO-12749

Activity

  1. added this to the Backlog milestone on May 23, 2025
  2. added theissue type on May 23, 2025
  3. modified the milestones: Backlog, v0.10.3 on May 23, 2025
  4. self-assigned this
    on Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions