Skip to content

Conversation

@mauricefisher64
Copy link
Collaborator

Changes in this pull request

Fix missing remote_url when loading via from_manifest_data_and_stream

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (1266e30) to head (d57e330).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1598      +/-   ##
==========================================
+ Coverage   77.97%   78.00%   +0.02%     
==========================================
  Files         165      165              
  Lines       41433    41441       +8     
==========================================
+ Hits        32308    32324      +16     
+ Misses       9125     9117       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 13, 2025

CodSpeed Performance Report

Merging #1598 will degrade performances by 12.06%

Comparing fix/missing_remote_url (d57e330) with main (1266e30)

Summary

❌ 1 regression
✅ 15 untouched
⏩ 2 skipped1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
read 100kb-signed.svg (with manifest) 8.6 ms 9.8 ms -12.06%

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.


let mut builder = Builder::from_json(manifest_json)?;
builder.set_intent(BuilderIntent::Edit);
builder.definition.claim_version = Some(2); // use v1 for this test
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't that's using v2?

Comment on lines +3770 to +3775
// fetch remote manifest if available
if let Some(ext_ref) =
crate::utils::xmp_inmemory_utils::XmpInfo::from_source(&mut stream, format).provenance
{
store.set_remote_url(&ext_ref);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The docs for Reader::remote_url is defined as:

Returns the remote url of the manifest if this Reader obtained the manifest remotely.

Here we are changing that definition but also the behavior that exists in other parts of the code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The problem is that no remote_url is returned when using this path and Tania reported an error. What do you want here?

Copy link
Contributor

Choose a reason for hiding this comment

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

The current behavior is to ignore remote_url if the manifest is found as embedded first. Here we are always setting the remote_url. It's an unusual situation though because we aren't actually looking for an embedded manifest anyways.

If we are going to make this change here, we should probably make that change in the other constructors and change the reader docs to state that it's always returned regardless of how the manifest was obtained.

Copy link
Contributor

@tmathern tmathern Nov 16, 2025

Choose a reason for hiding this comment

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

(For context, on the error, if it's the one I am thinking of( #1532): The reported issue is that in certain cases you can "keep" and outdated remote URL manifest. Even if our SDK does not look at it, it still could be found. For instance, even if our SDK does the right thing, you could still "find" URLs by using exiftool. More details in #1532).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants