Repository navigation
fix(webapps): recognize more license file names - #3094
Merged
Merged
Conversation
Backported commits 7a1eab0dda73c89533ca4cf4f63057fa5510f04b and 411012a5ef95e4415cb120d2221a786eb58fb2c9 from the cibseven repository. Original author: Serge Krot <[email protected]> Backport change units: 635, 663
|
kthoms
approved these changes
Jun 11, 2026
kthoms
pushed a commit
that referenced
this pull request
Jun 11, 2026
Backported commits 7a1eab0dda73c89533ca4cf4f63057fa5510f04b and 411012a5ef95e4415cb120d2221a786eb58fb2c9 from the cibseven repository. Original author: Serge Krot <[email protected]> Backport change units: 635, 663 (cherry picked from commit a7890cf)
Contributor
|
Cherry-picked for 2.1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This backports two small CIBSeven fixes for the frontend
license-header-loader.The loader adds license headers for bundled npm dependencies by reading a license file from the package directory. Until now, Operaton only checked a small set of filenames through nested
try/catchblocks:LICENSELICENSE.mdLICENSE-MIT.txtLICENSE.txtSome npm packages use other common variants, for example
LICENCE,LICENCE.md,LICENSE-MIT, or lowercaselicense. In those cases the loader could miss an existing license file and fall back to the package.jsonlicensefield or log that no license file exists.What This Fixes
The backport replaces the nested lookup with an explicit list of known license filenames and checks them in order. This makes the build-time license header generation more robust without changing runtime behavior.
The Operaton-specific package fallback remains unchanged:
node_modules/<pkg>node_modules/operaton-bpm-webapp/node_modules/<pkg>Reviewer Notes
This is a build/compliance helper change only. It does not affect shipped application logic except for improving which license text can be embedded during frontend bundling.
The two CIBSeven commits are kept together because the second commit only extends the filename list introduced by the first one.
Attribution
Backported from CIBSeven:
Backport tracking:
backport/cibseven-635-663-license-header-filenamesTesting
git diff --checknode --check webapps/frontend/scripts/license-header-loader.jsnpx --yes [email protected] --check scripts/license-header-loader.jsLICENCE,license, andLICENSE-MITfiles