Repository navigation
fix: accept file URI bases for image resources - #4912
PeterStaar-IBM merged 3 commits into
Conversation
Signed-off-by: 苍穹外卖-01 <2046083414@qq.com>
|
✅ DCO Check Passed Thanks @bushidapengyou-cell, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Signed-off-by: 苍穹外卖-01 <2046083414@qq.com>
|
Fixed the Ubuntu UNC test. Full UNC only on Windows now, plus a cross-platform test. PR updated—waiting on CI. |
Signed-off-by: 苍穹外卖-01 <2046083414@qq.com>
AI triage (advisory)Checked commit This PR adds support for Topic labels added: CI safety: no concern found. A maintainer must still approve CI. 5 related pull request(s) in the same code
The |
There was a problem hiding this comment.
AI first review (advisory): no blocker found
This review covers the full diff at 8d53347c60. It read the code and did not run it.
The _local_base_path conversion and the ValueError guard in md_backend.py are correct. The unresolved risk is the broken CI run that produced the low Codecov number; the author says the fixed head has not been verified yet. The reviewer must confirm that the corrected CI run passes all 10 new tests before merging.
A maintainer makes the merge decision. This review never approves the pull request.
|
#4921 (closed in favor of this PR) also covered JATS: Two more points:
Nit: |
Resolves #4911
Accept explicit
file://source URIs when resolving relative images in Markdown and HTML. Local-fetch permissions and path traversal checks remain enforced. Related to #4816.Review evidence:
Before: file URI bases caused Markdown conversion to fail. HTML kept converting through #4601's tolerance but left the image empty.
After: valid relative images load when local fetching is enabled. Rejected images remain empty, and Markdown conversion continues. Empty file URI paths are rejected.
Tests cover encoded paths, localhost, UNC normalization, local-fetch permissions, and traversal handling. Full UNC resolution is tested only on Windows. No reference data changed.
Validation:
ty checkreturned 0 with warnings. Full read-only checks still report existing line-limit and local skill-link issues.CI follow-up:
cc1f6fa6fixes the Ubuntu UNC test failure by adding a Windows-only condition and a portable normalization test. The previous failure skipped core coverage upload. Updated CI and Codecov results remain to be verified.Checklist: