Skip to content

Spurious, unreadable ZIPs created when working with unpacked resources that contain nested folders #538

@davidmreed

Description

@davidmreed

ForceCLI version: 0.25.0 (latest released)
Environment: Windows 7/Git Bash

When working with unpacked Static Resources, issuing force push -t StaticResource results in ForceCLI creating spurious ZIPs. For example, the following directory tree:

src/
    staticresources/
         Leaflet/
             ... various content files ...
             images/
                 ... various content files ...

results in the creation of three resource files:

  • src/staticresources.resource
  • src/staticresources/Leaflet.resource
  • src/staticresources/Leaflet/images.resources

All three resource files are invalid ZIPs according to Windows Explorer and 7zip. (I do not have access to a Linux machine at work to validate these files). References within the static resource on Salesforce return 404 errors.

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