Allow stream wrappers not to provide the underlying stream #40659
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.








This is mainly for streams that don't wrap another one, or use a stream not provided by the native fopen function such as smbclient_open
NOTE: This PR targets the release branch.
Description
Provide a way not to provide the source of the stream, otherwise we'd get an annoying log complaining about the missing
getSourcemethod in the stream, or we could get real errors if the last stream isn't native.Related Issue
No opened issue yet.
Motivation and Context
Prevent annoying logs. The flow still works without problems, but the log will keep appearing
How Has This Been Tested?
Manually tested
The warning log appears.
Note that this PR won't solve the issue by itself. It requires changes in the WND app.
Changes in the app (not core) are expected to be backwards-compatible.
Screenshots (if appropriate):
Types of changes
Checklist:
Expected logs with this PR:
As told in the log, the app will provide such method (still to be done)