Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decomposePermissionSetsBeta2 creates invalid XMLs for custom permissions #3165

Open
mcarvin8 opened this issue Jan 3, 2025 · 3 comments
Open
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@mcarvin8
Copy link

mcarvin8 commented Jan 3, 2025

Summary

The new decomposed beta, decomposePermissionSetBeta2, for permission sets introduced via #2993 creates invalid XMLs when decomposing custom permissions.

Each *.customPermission-meta.xml file has empty XML elements as seen in the screenshot below:

image

This wasn't an issue with the 1st decomposePermissionSetBeta.

Steps To Reproduce

  1. Add decomposePermissionSetBeta2 to the sfdx-project.json file
  2. Delete all current permission sets in the project
  3. Retrieve all permission sets from an org and confirm they are decomposed
  4. Review the *.customPermission-meta.xml files and confirm they are valid XMLs

Expected result

Each *.customPermission-meta.xml file is a valid XML file.

Actual result

Each *.customPermission-meta.xml file has empty XML elements (<>)

Additional information

System Information

Windows 11

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.70.7",
  "nodeVersion": "node-v22.11.0",
  "osVersion": "Windows_NT 10.0.22621",
  "rootPath": "C:\\Users\\matthew.carvin\\AppData\\Local\\sf\\client\\2.70.7-b4edef3",
  "shell": "powershell",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.13 (core)",
    "@oclif/plugin-commands 4.1.13 (core)",
    "@oclif/plugin-help 6.2.19 (core)",
    "@oclif/plugin-not-found 3.2.30 (core)",
    "@oclif/plugin-plugins 5.4.22 (core)",
    "@oclif/plugin-search 1.2.17 (core)",
    "@oclif/plugin-update 4.6.17 (core)",
    "@oclif/plugin-version 2.2.17 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.26 (core)",
    "@oclif/plugin-which 3.2.20 (core)",
    "@salesforce/cli 2.70.7 (core)",
    "apex 3.6.7 (core)",
    "api 1.3.2 (core)",
    "auth 3.6.80 (core)",
    "data 3.13.1 (core)",
    "deploy-retrieve 3.15.20 (core)",
    "info 3.4.27 (core)",
    "limits 3.3.42 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.2.9 (core)",
    "packaging 2.9.6 (core)",
    "schema 3.3.44 (core)",
    "settings 2.4.9 (core)",
    "sobject 1.4.46 (core)",
    "telemetry 3.6.27 (core)",
    "templates 56.3.33 (core)",
    "trust 3.7.50 (core)",
    "user 3.6.4 (core)",
    "apextestlist 1.9.5 (user) published 11 days ago (Mon Dec 23 2024)",
    "sf-decomposer 5.2.1 (user) published 1 days ago (Thu Jan 02 2025)"
  ]
}
@mcarvin8 mcarvin8 added the investigating We're actively investigating this issue label Jan 3, 2025
Copy link

github-actions bot commented Jan 3, 2025

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added the validated Version information for this issue has been validated label Jan 3, 2025
@mcarvin8 mcarvin8 changed the title Decomposed Permission Sets Beta 2 create invalid XMLs Decomposed Permission Sets Beta 2 creates invalid XMLs for custom permissions Jan 3, 2025
@mcarvin8 mcarvin8 changed the title Decomposed Permission Sets Beta 2 creates invalid XMLs for custom permissions decomposePermissionSetsBeta2 creates invalid XMLs for custom permissions Jan 7, 2025
@iowillhoit
Copy link
Contributor

Thanks for the issue @mcarvin8, I am able to reproduce this also. I'll get a work item created.

@iowillhoit iowillhoit added the bug Issue or pull request that identifies or fixes a bug label Jan 9, 2025
Copy link

git2gus bot commented Jan 9, 2025

This issue has been linked to a new work item: W-17568988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

2 participants