Skip to content

Fix Windows FileLike path resolution for background R report outputs#7528

Merged
labkey-bpatel merged 4 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_rreport_files
Mar 27, 2026
Merged

Fix Windows FileLike path resolution for background R report outputs#7528
labkey-bpatel merged 4 commits intorelease26.3-SNAPSHOTfrom
26.3_fb_rreport_files

Conversation

@labkey-bpatel
Copy link
Copy Markdown
Contributor

Rationale

Test failure: https://teamcity.labkey.org/buildConfiguration/LabKey_263Release_Premium_CommunitySqlserver_DailyASqlserver/3903944?buildTab=tests&status=failed&name=DataReportsTest.doRReportsTest&expandedTest=build%3A%28id%3A3903944%29%2Cid%3A2000000031

This failure revealed an underlying path-resolution bug: on Windows, FileLike’s internal LabKey Path was getting malformed because Path.parse() was fed a backslash-separated string (resulting in report dir path like so: /reports_temp/851e5acd-09f3-103f-a81c-b7028cf24fe8\Report_db_182\46502904-09f4-103g-a81c-b6028cf24fe8).
FileLike's getName() and getParent() were therefore computing against the wrong path.

Related Pull Requests

Changes

  • Fix R report output directory resolution
  • Add debug logs

Testing

Copy link
Copy Markdown
Contributor

@labkey-klum labkey-klum left a comment

Choose a reason for hiding this comment

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

Is this change different from the PR targeting develop? If not we could just take this PR and wait for the changes to be merged forward to develop

@labkey-bpatel
Copy link
Copy Markdown
Contributor Author

Is this change different from the PR targeting develop? If not we could just take this PR and wait for the changes to be merged forward to develop

Nope not different than the one targeting develop, about to delete it.

@labkey-bpatel labkey-bpatel merged commit 49c3073 into release26.3-SNAPSHOT Mar 27, 2026
10 checks passed
@labkey-bpatel labkey-bpatel deleted the 26.3_fb_rreport_files branch March 27, 2026 03:11
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