Skip to content

Missing public/ directory in release archive #310

Description

@jeremy-bepoix

The official 1.3.0 release archive (glpi-carbon-1.3.0.tar.bz2) does not contain a public/ directory.
GLPI 11 requires plugin front-end assets (JS/CSS/vendor bundles) to be served from public/ under the new Symfony-based routing.
As a result, after installing 1.3.0, all Carbon front-end assets return 404 (F12 mode dev on chrome) :

Failed to load resource: the server responded with a status of 404 (Not Found)
VM2096:104 JQMIGRATE: Migrate is installed with logging active, version 3.5.2
carbon.js:1  Failed to load resource: the server responded with a status of 404 (Not Found)
apexcharts.js:1  Failed to load resource: the server responded with a status of 404 (Not Found)
base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156 jQuery.Deferred exception: ApexCharts is not defined ReferenceError: ApexCharts is not defined
    at HTMLDocument.<anonymous> (<anonymous>:9:39)
    at u (https://itam.lps.lan/lib/base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156:28457)
    at c (https://itam.lps.lan/lib/base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156:28785) undefined
A.Deferred.exceptionHook @ base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156
base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156 Uncaught ReferenceError: ApexCharts is not defined
    at HTMLDocument.<anonymous> (<anonymous>:9:39)
    at u (base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156:28457)
    at c (base.min.js?v=27a45ea0e3b9046b86381b22fd95c869e5caab13:156:28785)
carbon.css:1  Failed to load resource: the server responded with a status of 404 (Not Found)

Because the JS never loads:

  • The Carbon dashboard ("Rapport carbone") shows a broken widget card: Erreur de rendu de la carte ! plugin_carbon_assets_completeness_ratio
  • No charts render anywhere in the plugin
  • The "Calculer les données" (Compute data) button on an asset's "Impact environnemental" tab appears to fail with a generic error, even when the underlying PHP computation actually succeeds — the failure is purely front-end (no server-side error is logged when this happens)

Workaround (used locally, not a real fix)

Manually created public/lib/ and public/images/, copied carbon.js/carbon.css/pics from their non-public locations, and copied a pre-built apexcharts.js bundle from an older 1.2.0 install (~538 KB) since the 1.3.0 source-only stub (~1.2 KB) is not usable as-is in a browser without a build step.

Environment

  • GLPI version: 11.x
  • Carbon plugin version: 1.3.0
  • OS: Debian 13 (trixie), MariaDB 11.8.6

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