Skip to content

Conversation

@phiz71
Copy link
Member

@phiz71 phiz71 commented Feb 11, 2026

Issue

https://gravitee.atlassian.net/browse/APIM-12705

Description

Since 4.10.x and MCP Proxy, oauth2 policy implements a new method "onWellKnown".
This method requires that the attribute gravitee.attribute.request.original-url is set.

In the default reactor, it's the XForwardedProcessor which is responsible for computing this URL. However, the DebugPlatformProcessorChainFactory is created by default without this processor.

This fix adds an init debug processor to compute a simple original URL

@phiz71 phiz71 requested a review from a team as a code owner February 11, 2026 23:43
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!


@Override
public Completable execute(final HttpExecutionContextInternal ctx) {
return Completable.defer(() -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use Completable.fromRunnable I think.


ctx.setAttribute(ContextAttributes.ATTR_REQUEST_ORIGINAL_URL, originalUrl);
return Completable.complete();
}).subscribeOn(Schedulers.io());
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it is necessary to switch to Schedulers.io() here as it is just about setting an attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants