Skip to content

MLE-31423: Change xdmp:is-forwarded to xdmp:request-forwarded - #611

Merged
vzhang-progress merged 1 commit into
developfrom
MLE-31423-change-builtin-name
Jul 24, 2026
Merged

MLE-31423: Change xdmp:is-forwarded to xdmp:request-forwarded#611
vzhang-progress merged 1 commit into
developfrom
MLE-31423-change-builtin-name

Conversation

@vzhang-progress

Copy link
Copy Markdown
Contributor
  • Change xdmp:is-forwarded to xdmp:request-forwarded as the builtin name changed in xdmp
  • Tests: Unit tests all passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the XQuery used by the Hadoop connector to detect forwarded requests by switching from the deprecated/renamed MarkLogic builtin xdmp:is-forwarded to xdmp:request-forwarded, while preserving backward compatibility via fn:function-lookup.

Changes:

  • Replaced fn:function-lookup(xs:QName('xdmp:is-forwarded'), 0) with fn:function-lookup(xs:QName('xdmp:request-forwarded'), 0) for HTTP forwarded-request detection.
  • Applied the same replacement in the XDBC forwarded-request detection query, keeping existing header-based fallbacks intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vzhang-progress
vzhang-progress merged commit 757c6ec into develop Jul 24, 2026
5 checks passed
@vzhang-progress
vzhang-progress deleted the MLE-31423-change-builtin-name branch July 24, 2026 23:46
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