Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: mailto URLs were reported as missing resources #1597

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

rdeltour
Copy link
Member

Fix a regression bug introduced in PR #1582, in the implementatiom of OCFContainer#isRemote(URL).
The buggy implementation considered mailto URLs as local URLs. As a result, it reported an error as no matching local resource could be found in the container.

The new implementation says a URL is remote when it is not a data URL and is not the URL of a resource in the container.

Fix #1595

Fix a regression bug introduced in PR #1582, in the implementatiom of
`OCFContainer#isRemote(URL)`.
The buggy implementation considered `mailto` URLs as local URLs. As a
result, it reported an error as no matching local resource could be
found in the container.

The new implementation says a URL is remote when it is not a `data`
URL and is not the URL of a resource in the container.

Fix #1595
@rdeltour rdeltour added this to the Next maintenance release milestone Jan 10, 2025
@rdeltour rdeltour self-assigned this Jan 10, 2025
@rdeltour rdeltour merged commit 70d10ac into main Jan 14, 2025
5 checks passed
@rdeltour rdeltour deleted the fix/1595/mailto-error branch January 14, 2025 08:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release v5.2.0 mailto error — resource not found
1 participant