CumulusCI icon indicating copy to clipboard operation
CumulusCI copied to clipboard

password_env_name bleeding over to next package

Open yippie opened this issue 2 years ago • 2 comments

Describe the bug

When listing dependencies, if some require an installation key and others don't, the key settings is reused for the next package unless it is overwritten

Reproduction steps

  1. Have a cumulusCI project with at least two managed dependencies.
  2. First dependency should require an install key and the second one should not. Dependencies will look like this:
dependencies:
    - version_id: 04t3x0000015ElnAAE
      password_env_name: PLTFM_INSTALL_KEY
    - version_id: 04t3x000000WxbSAAS
  1. cci task run update_dependencies

EXPECTED: both dependencies will install ACTUAL: Second dependency fails with the following error:

Error: Malformed request https://customer-fun-1122.scratch.my.salesforce.com/services/data/v55.0/tooling/sobjects/PackageInstallRequest/. Response content: [{'message': 'Can’t install package. This 
package doesn’t require an installation key. Install the package without specifying an installation key.: Password', 'errorCode': 'FIELD_INTEGRITY_EXCEPTION', 'fields': ['Password']}]

Your CumulusCI and Python versions

CumulusCI version: 3.73.0 (/Users/kai.amundsen/.local/bin/cci) Python version: 3.10.9 (/Users/kai.amundsen/.local/pipx/venvs/cumulusci/bin/python)

Operating System

macOS Ventura 13.0.1

Windows environment

No response

CumulusCI installation method

pipx

Error Gist

No response

Additional information

WORKAROUND: on second package that is not supposed to have a key set password_env_name: NO_KEY where NO_KEY does not actually exist as an env var.

yippie avatar Feb 23 '23 13:02 yippie

@yippie Thanks for the report. We're working on a reproduction and will update this issue once we know more.

jstvz avatar Mar 03 '23 01:03 jstvz