Skip to content

FOUR-28994: Fix self-service lock after interstitial redirect#1908

Open
eiresendez wants to merge 1 commit intodevelopfrom
bugfix/FOUR-28994
Open

FOUR-28994: Fix self-service lock after interstitial redirect#1908
eiresendez wants to merge 1 commit intodevelopfrom
bugfix/FOUR-28994

Conversation

@eiresendez
Copy link
Copy Markdown
Contributor

@eiresendez eiresendez commented Apr 1, 2026

Issue & Reproduction Steps

When the Start Event interstitial is enabled, launching a case first loads the start event token and then transitions client-side to the real self-service task.

  1. Enable the Start Event interstitial on the process.
  2. Launch a new case.
  3. Land on the task edit page after the interstitial redirect.
  4. Notice the task is editable on first load.
  5. Refresh the page.
  6. Notice the self-service overlay appears and the task becomes blocked.

Expected behavior:
The self-service task should be blocked immediately on first load after the interstitial redirect, without requiring a manual refresh.

Actual behavior:
The task is editable on first load, and only becomes blocked after refreshing the page.

Solution

  • Recalculate the self-service lock state from the currently loaded task instead of relying on the initial window.ProcessMaker.isSelfService flag.
  • Refresh isSelfService immediately after loadTask() receives the real task payload and again during checkTaskStatus().
  • Add regression coverage for resolveSelfService, setSelfService, checkTaskStatus, and loadTask.

How to Test

Test the steps above

Related Tickets & Packages

ci:deploy

@eiresendez
Copy link
Copy Markdown
Contributor Author

Solution:

solution.mov

@cypress
Copy link
Copy Markdown

cypress bot commented Apr 1, 2026

screen-builder    Run #2231

Run Properties:  status check passed Passed #2231  •  git commit 71990be3ed: FOUR-28994: Fix self-service lock after interstitial redirect
Project screen-builder
Branch Review bugfix/FOUR-28994
Run status status check passed Passed #2231
Run duration 09m 43s
Commit git commit 71990be3ed: FOUR-28994: Fix self-service lock after interstitial redirect
Committer Eleazar Resendez
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 389
View all changes introduced in this branch ↗︎

@processmaker-sonarqube
Copy link
Copy Markdown

@Kookster310
Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-c858fa4405.engk8s.processmaker.net

@eiresendez eiresendez requested review from caleeli and gproly April 1, 2026 23:54
Copy link
Copy Markdown
Contributor

@gproly gproly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. Please move it to testing and check for possible regressions.

@eiresendez eiresendez removed the request for review from caleeli April 2, 2026 23:09
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.

3 participants