ramu11 commented on PR #9509:
URL: https://github.com/apache/camel-quarkus/pull/9509#issuecomment-7188844157
Thanks for the follow-up review. I've pushed the round-3 updates in commit
`dc2f343b34` (`CAMEL-26360: Address MCP round 3 review feedback`).
**1. DNS-rebinding assertion**
Updated the untrusted-Origin test to assert the exact status-line suffix:
```java
assertThat(response.getStatusLine()).endsWith(" 403 Invalid origin");
```
This distinguishes the MCP server's DNS-rebinding rejection from Quarkus
CORS rejection, which can also return HTTP 403 with an `Invalid origin` message.
**2. Dotted URI-template literals**
I agree that rejecting `.` also excludes otherwise-valid templates
containing hostnames, version strings and file paths. I've retained the
conservative restriction for now rather than allowing potentially ambiguous
matches: the current Quarkiverse matcher treats literal URI-template text as
raw regex, where `.` is a wildcard.
Updated both the extension usage guide and generated reference documentation
with concrete examples, including:
- `crm://api.example.com/customers/{id}`
- `docs://manual/v4.24/{page}`
- `file:///data/reports.d/{name}`
The restriction should be revisited once the upstream `quarkus-mcp-server`
matcher quotes literal URI segments and overlap behavior is covered by
regression tests. This remains an upstream follow-up.
**Verification**
Ran:
```bash
./mvnw -pl integration-tests/mcp-server -am test
```
Result: **60 tests passed, 0 failures, 0 errors, 0 skipped.** The full Maven
reactor completed successfully.
**Dependency / CI blocker**
The Quarkiverse MCP Server `3.0.0-SNAPSHOT` is still not published to a
repository accessible by GitHub Actions. I have intentionally retained this
Quarkus 4-compatible development version rather than reverting to the Quarkus
3-compatible `2.0.4`.
As requested, I've converted PR #9509 to **Draft** while waiting for a
compatible upstream release. The flattened BOMs will be regenerated when the
released version is available.
Thanks again for the detailed review and the useful reproducer cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]