Skip to content

fix: detect engineering licenses via capabilities instead of acquire#11

Merged
kreinhar merged 4 commits intomainfrom
fix/engineering-license-detection
May 5, 2026
Merged

fix: detect engineering licenses via capabilities instead of acquire#11
kreinhar merged 4 commits intomainfrom
fix/engineering-license-detection

Conversation

@kreinhar
Copy link
Copy Markdown
Collaborator

@kreinhar kreinhar commented May 5, 2026

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.

Kai Reinhardt 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.
@kreinhar kreinhar merged commit 28e7067 into main May 5, 2026
6 checks passed
@kreinhar kreinhar deleted the fix/engineering-license-detection branch May 5, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant