Skip to content

Manually parse viewName parameter.#7574

Merged
labkey-klum merged 4 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_issue_936
Apr 29, 2026
Merged

Manually parse viewName parameter.#7574
labkey-klum merged 4 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_issue_936

Conversation

@labkey-klum
Copy link
Copy Markdown
Contributor

Rationale

https://github.com/LabKey/internal-issues/issues/936

Avoid automatic conversion to String[] when the view name contains commas.

@labkey-klum labkey-klum marked this pull request as ready for review April 27, 2026 17:38
if (value instanceof String[] strs)
_viewName = strs;
else if (value instanceof String str)
_viewName = new String[] { str };
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can't think of a way that we'd get here without it being a string or string[] but do we need an else that throws an error / or logs an error? Maybe we have presedence from other bindParameters overrides.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can log an error.

@labkey-klum labkey-klum merged commit e2ff7d4 into release26.3-SNAPSHOT Apr 29, 2026
8 checks passed
@labkey-klum labkey-klum deleted the 26.3_fb_issue_936 branch April 29, 2026 02:06
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