Skip to content

mp dev-env pull integration silently fails to deconstruct integrations when pulling items with UUIDs #589

@hzmndt-debug

Description

@hzmndt-debug

Description
When pulling a custom integration from the SecOps environment using mp dev-env pull integration <IntegrationName>, the pulled zip file name includes a UUID (e.g., CaseFederation__cf77f51a-0ffb-43bb-ab14-e6ff7c4f0a8d.zip) and extracts to a similarly named folder.
During the deconstruct phase, the mp CLI's is_integration function checks if the folder corresponds to a valid integration by looking for a .def file matching the folder name (e.g., Integration-CaseFederation__cf77f51a-0ffb-43bb-ab14-e6ff7c4f0a8d.def).

However, the internal .def file is simply named Integration-CaseFederation.def. Because the filenames do not match due to the UUID suffix, the validation fails. As a result, the mp tool silently skips extracting and deconstructing the integration, leaving the destination directory completely empty despite outputting a success message.

Steps to Reproduce

  1. Have a custom integration deployed in Google SecOps (e.g., CaseFederation).
    1. Run mp dev-env pull integration CaseFederation__<UUID>.
    1. Notice that the command outputs a success message, but the target destination directory is empty.
    1. Using the --keep-zip flag shows that the zip downloads correctly, but the deconstruct process aborts because the UUID suffix in the folder name doesn't match the .def file name.
      Expected Behavior
      The pull command should successfully download, extract, and deconstruct the integration into the destination folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions