Skip to content

Conversation

@forus
Copy link
Contributor

@forus forus commented Dec 24, 2025

Summary

Submitting dynamic virtual studies without explicitly defined sample IDs previously resulted in a NullPointerException. This behavior was incorrect, as dynamic studies are designed to derive their sample IDs dynamically from filters, not require them upfront.

Root Cause

The issue was traced to the public Virtual Study controller, which was invoking the session service directly. That service assumed precomputed sample IDs and therefore failed for dynamic studies.

Fix

  • Updated the public VS controller to use the ** VirtualStudy service**.
  • The controller now computes sample IDs dynamically based on the provided filters when handling public dynamic virtual studies.
  • This aligns the implementation with the intended design and prevents null-related failures.
  • Sample counts are now calculated dynamically as well, ensuring they stay in sync with the underlying filters.

Result

  • Public dynamic virtual studies can now be submitted safely without specifying sample IDs, as expected.
  • Landing page sample counts are no longer stale and reflect the current filter-based computation.

Please merge the fix to the upstream version as well #11892

Submitting dynamic virtual studies without explicitly defined sample IDs previously resulted in a NullPointerException.
This behavior was incorrect, as dynamic studies are designed to derive their sample IDs dynamically from filters, not require them upfront.
The issue revealed that the public VS controller was not
using the appropriate VirtualStudy service. This change aligns the controller
with the correct service to handle public dynamic virtual studies safely.
@forus forus force-pushed the demo_fix-sample-list-for-dynamic-virtual-studies branch from 9a484b6 to 6c768ed Compare January 7, 2026 16:18
@forus forus merged commit f4b08c0 into maintenance-v6 Jan 7, 2026
16 of 21 checks passed
@forus forus deleted the demo_fix-sample-list-for-dynamic-virtual-studies branch January 7, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants