dynatrace-extensions / dynatrace-extensions-vscode

A VisualStudio Code extension to support all aspects of developing Dynatrace Extensions 2.0
Apache License 2.0
16 stars 7 forks source link

[Bug]: Building extensions on windows produces invalid .zip #245

Closed radu-stefan-dt closed 3 months ago

radu-stefan-dt commented 3 months ago

Description

The .zip archives created when building extensions on Windows end up containing Windows-style paths (\ separators) when other folders are included.

Although the archive is fine, cluster-side validation (Java based) sees this as invalid and throws an error:

{
  "code": 400,
  "message": "'alerts\\' ZIP entry is empty."
}

Steps to reproduce

  1. Create an extension that references a folder (e.g. alerts or dashboards)
  2. Run the build command
  3. At validation step, it fails

Support information

radu-stefan-dt commented 3 months ago

Currently, there is no workaround but to rollback the extension.

Find the extension in the VSCode extensions menu, click the cog icon, choose Install another version and select 2.6.2 until the issue is resolved.