Skip to content

fix(samples/workflow): honor openidm.context.path in Accept Notice script#178

Merged
vharseko merged 6 commits into
OpenIdentityPlatform:masterfrom
vharseko:workflow-errors
May 14, 2026
Merged

fix(samples/workflow): honor openidm.context.path in Accept Notice script#178
vharseko merged 6 commits into
OpenIdentityPlatform:masterfrom
vharseko:workflow-errors

Conversation

@vharseko
Copy link
Copy Markdown
Member

Problem

The samples/workflow end-to-end smoke job
ui-smoke-tests (… , /myidm, samples/workflow) consistently fails on
both Java 17 and Java 26 in
Build run #25805813364
while every other matrix combination is green:

context_path sample result
(default) samples/workflow ✅ pass
/myidm samples/getting-started ✅ pass
/myidm (no sample) ✅ pass
/myidm samples/workflow ❌ fail

The job's final step (Print openidm logs) scans
openidm/logs/* for ERROR|SEVERE|Exception|Throwable and exits 1 if
anything matches. With -Dopenidm.context.path=/myidm the workflow
sample's Accept Notice Groovy script task in
contractorOnboarding.bpmn20.xml was calling a hard-coded REST URL:

"url": "https://localhost:" + identityServer.getProperty('openidm.port.https')
       + "/openidm/selfservice/reset?_action=submitRequirements"

vharseko added 6 commits May 13, 2026 12:06
Add org.apache.felix.prefs bundle to provide org.osgi.service.prefs
package (including BackingStoreException class) at runtime, fixing:
  INFO: org.apache.felix.webconsole.internal.compendium.PreferencesConfigurationPrinter
  not enabled. Reason: Class org/osgi/service/prefs/BackingStoreException missing
Select-String in PowerShell is case-insensitive by default, so the
Windows smoke-test step was matching benign INFO records such as
"ErrorServletComponent activate" / "Registered servlet at /error"
against the ERROR|SEVERE|Exception|Throwable pattern and failing
the build. The equivalent Unix step uses `grep -E`, which is
case-sensitive, so the same lines pass on Linux/macOS.

Add the -CaseSensitive flag to both Select-String invocations in the
"Test on Windows" step of .github/workflows/build.yml so the check
behaves identically across OSes.
…script

### Problem

The `samples/workflow` end-to-end smoke job
`ui-smoke-tests (… , /myidm, samples/workflow)` consistently fails on
both Java 17 and Java 26 in
[Build run #25805813364](https://github.com/OpenIdentityPlatform/OpenIDM/actions/runs/25805813364)
while every other matrix combination is green:

| context_path | sample              | result   |
|--------------|---------------------|----------|
| (default)    | samples/workflow    | ✅ pass |
| /myidm       | samples/getting-started | ✅ pass |
| /myidm       | (no sample)         | ✅ pass |
| **/myidm**   | **samples/workflow**| ❌ fail |

The job's final step (`Print openidm logs`) scans
`openidm/logs/*` for `ERROR|SEVERE|Exception|Throwable` and exits 1 if
anything matches. With `-Dopenidm.context.path=/myidm` the workflow
sample's `Accept Notice` Groovy script task in
`contractorOnboarding.bpmn20.xml` was calling a hard-coded REST URL:

```groovy
"url": "https://localhost:" + identityServer.getProperty('openidm.port.https')
       + "/openidm/selfservice/reset?_action=submitRequirements"
@vharseko vharseko requested a review from maximthomas May 13, 2026 16:18
@vharseko vharseko merged commit 193f550 into OpenIdentityPlatform:master May 14, 2026
22 of 41 checks passed
@vharseko vharseko deleted the workflow-errors branch May 14, 2026 16:08
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.

2 participants