tool_ipfs: accept IPFS gateway URL without set port number#20957
tool_ipfs: accept IPFS gateway URL without set port number#20957
Conversation
Follow-up to: 5612971 Test 1851 added to verify Pointed out by Codex Security
|
augment review |
🤖 Augment PR SummarySummary: Makes curl’s IPFS gateway handling accept gateway URLs that omit an explicit port. Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Pull request overview
Updates curl’s IPFS URL rewriting to accept gateway URLs that omit an explicit port number, and adds a regression test to validate the behavior.
Changes:
- Adjust
ipfs_url_rewrite()to fetch the gateway port usingCURLU_DEFAULT_PORTwhen none is explicitly provided. - Add new test case
test1851to verify rewriting through a proxy when the gateway URL has no port specified. - Register the new test in
tests/data/Makefile.am.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/data/test1851 | New IPFS regression test exercising gateway URL rewriting without an explicit port |
| tests/data/Makefile.am | Adds test1851 to the testcases list |
| src/tool_ipfs.c | Uses CURLU_DEFAULT_PORT when extracting the gateway port |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|
Analysis of PR #20957 at 8477679b: Test 1851 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 18 different CI jobs (the link just goes to one of them). Generated by Testclutch |
Follow-up to: 5612971
Test 1851 added to verify
Pointed out by Codex Security