Skip to content

COLDBOX-1482: strip leading slash from proxy component path - #742

Merged
lmajano merged 2 commits into
developmentfrom
code/festive-keller-363my5
Nov 19, 2026
Merged

lmajano merged 2 commits into
developmentfrom
code/festive-keller-363my5

Conversation

@lmajano

@lmajano lmajano commented Nov 19, 2026

Copy link
Copy Markdown
Member

Description

ColdboxProxy.selfAutoWire() turned CGI.SCRIPT_NAME into a component path without removing the leading /, so /remote/textMessagesProxy.cfc became .remote.textMessagesProxy. This extracts the logic into a private getProxyComponentPath() helper and removes leading slashes before converting separators to dots.

Jira Issues

https://ortussolutions.atlassian.net/browse/COLDBOX-1482

Type of change

  • Bug Fix

Checklist

  • My code follows the style guidelines of this project cfformat
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Testing notes: the helper was verified on BoxLang via miniserver for four cases (no context root, /app root, / root, nested .bx). The new TestBox spec and format:check have not been run locally.


Generated by Claude Code

…elfAutoWire

Extract path derivation into getProxyComponentPath() and remove leading
slashes before converting separators to dots, so /remote/MyProxy.cfc no
longer becomes .remote.MyProxy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aF6okUSkxZW3STzeV7Q9B
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 64338ce. ± Comparison against base commit 7a91727.

♻️ This comment has been updated with latest results.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aF6okUSkxZW3STzeV7Q9B

lmajano commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

CI status on 64338ce: formatting, BoxLang, BoxLang CFML, Lucee 5 and Lucee 6 pass. Adobe 2023 and Adobe 2025 each report 1 failure, and it is not from this PR.

The failing spec is tests/specs/web/RendererTest.cfc, "explains that implicit views are disabled when no view is set" (renderView() should have thrown). I confirmed this from the Adobe 2023 job log for this PR. The 2025 job reports the same counts.

It is also red on development at 7a91727 (the merge of #741, which added that spec). The latest Daily Test Run (run 44470089063) fails Adobe 2023 and Adobe 2025 with the identical message, at 927 tests run and 1 failed. This PR runs 928, the extra one being the new testProxyComponentPathHasNoLeadingDot, which passes on every engine. This PR does not touch the renderer, so I'm not changing anything for it here. It likely needs a separate fix on #741's spec or renderView().


Generated by Claude Code

@lmajano
lmajano merged commit 7915aef into development Nov 19, 2026
15 of 19 checks passed
@lmajano
lmajano deleted the code/festive-keller-363my5 branch November 19, 2026 13:58
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