Skip to content

GH Issue 1710: Fix doubled slash in Rlabkey request URLs - #131

Merged
cnathe merged 6 commits into
developfrom
fb_rlabkey_double_slash_1710
Nov 12, 2026
Merged

cnathe merged 6 commits into
developfrom
fb_rlabkey_double_slash_1710

Conversation

@cnathe

@cnathe cnathe commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Every request built by labkey.buildURL without query parameters (in practice, every POST) starts its path with //, which splits R traffic from other clients in access logs and Datadog and would be blocked by any WAF rule
that rejects //. See GH Issue 1710.

Related Pull Requests

Changes

  • labkey.buildURL no longer adds a leading slash to the folder path, since the base URL already ends with one
  • The RStudio viewer URL is built with labkey.buildURL, fixing the same doubled slash when the base URL ends in /
  • Bump to 3.5.1

Comment thread Rlabkey/R/labkey.defaults.R Resolved
@cnathe
cnathe merged commit 8d8e64b into develop Nov 12, 2026
8 checks passed
@cnathe
cnathe deleted the fb_rlabkey_double_slash_1710 branch November 12, 2026 14:25
cnathe added a commit to LabKey/testAutomation that referenced this pull request Nov 12, 2026
## Rationale
Adds test coverage for the Rlabkey doubled-slash fix in [GH Issue
1710](LabKey/internal-issues#1710).

## Related Pull Requests
- LabKey/labkey-api-r#131
- #3288

## Changes
- New `RlabkeyTest` case checking that `labkey.buildURL` produces a
single slash between the base URL and folder path, across combinations
of trailing and leading slashes, a context path, the root folder, and
query parameters
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