fix: detect engineering licenses via capabilities instead of acquire#11
Merged
fix: detect engineering licenses via capabilities instead of acquire#11
Conversation
added 4 commits
May 5, 2026 10:45
Engineering/demo licenses (SWL_XCR_ENGINEERING_4H, SWL_XCB_ENGINEERING_4H) are held device-wide and always report availableCount=0, causing the acquire POST to fail. As a result the license file was never written and the UI showed a spurious 'License missing' banner. Fix: after a failed acquire cycle, check /license-manager/api/v1/capabilities for active engineering licenses. If found, write an 'engineering:<name>' marker to the license file (no UUID to release) and re-check after 5 minutes. On startup, skip the release call for engineering markers.
Instead of relying on an in-memory flag (lost on page reload), check whether the current certificate is CA-signed by comparing Issuer vs Subject in the cert-info output. If CA-signed, set the download status display to green using the 'Valid from' date as the timestamp.
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.
Engineering/demo licenses (SWL_XCR_ENGINEERING_4H, SWL_XCB_ENGINEERING_4H) are held device-wide and always report availableCount=0, causing the acquire POST to fail. As a result the license file was never written and the UI showed a spurious 'License missing' banner.
Fix: after a failed acquire cycle, check /license-manager/api/v1/capabilities for active engineering licenses. If found, write an 'engineering:' marker to the license file (no UUID to release) and re-check after 5 minutes. On startup, skip the release call for engineering markers.