Skip to content

FOUR-32743: Handle invalid Process Browser category IDs - #9013

Open
eiresendez wants to merge 1 commit into
developfrom
task/FOUR-32743
Open

FOUR-32743: Handle invalid Process Browser category IDs#9013
eiresendez wants to merge 1 commit into
developfrom
task/FOUR-32743

Conversation

@eiresendez

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

Opening the Process Browser with an arbitrary non-existent category ID, such as `/process-browser/?categoryId=lorem`, causes the processes API to pass a string to the integer-typed category scope and return a 500 error.

Solution

  • Validate non-empty category filters before applying the category scope.
  • Return an empty process collection for invalid category values.
  • Preserve the existing behavior for recent, empty, and valid numeric category values.
  • Add regression coverage for invalid, missing numeric, and valid category IDs.

How to Test

  • Run `./vendor/bin/phpunit tests/Feature/Api/ProcessLaunchpadTest.php`.
  • Open `/process-browser/?categoryId=lorem`.
  • Confirm the processes request returns 200, the empty state is displayed, and no Axios error is logged.

Automated result: 9 tests passed with 25 assertions.

Related Tickets & Packages

ci:deploy

@decisions-sonarqube

Copy link
Copy Markdown

@eiresendez eiresendez self-assigned this Aug 26, 2026
@nolanpro

Copy link
Copy Markdown
Contributor

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

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