Repository navigation
fix(media): resolve MEDIA: paths containing spaces (one grammar, JS + Python) #6607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
samfoy
wants to merge
17
commits into
nesquena:master
from
samfoy:fix/media-spaced-paths-and-dotted-model-labels
Closed
Changes from 8 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
64339fd
fix(render): match spaced MEDIA paths and strip dotted model-ID prefixes
e4bbb62
fix(media): resolve spaced MEDIA paths in the allow-list and share in…
caba3b5
fix(media): one MEDIA grammar across JS+Python; buffer streams to a r…
5de59e4
fix(media): partition the stream-end flush; share one grammar with TT…
122b5c9
fix(media): bound the tail buffer by the buffer, not the prose; stop …
1e267ac
fix(media): partition stream flush, honor code policy, and pin token …
samfoy 9981a44
fix(media): stop spaced refs before dotted prose
samfoy 7bff14a
fix(media): partition oversized stream tails
samfoy d8b6392
fix(shares): reject http(s) MEDIA refs that hide a local target
c0c4146
fix(media): make the length cap and the quote rule part of the shared…
7219307
test(structural): scope JS assertions by brace depth, not fixed windows
cab0b1c
fix(media): measure the MEDIA token cap in UTF-16 code units
3d891e3
fix(media): use one inclusive candidate ceiling when streaming
a929bb4
fix(shares): guard every URL sink in a public snapshot, not only MEDIA:
8d888f5
fix(shares): classify nested public URLs instead of refusing their sc…
5e90f1f
fix(shares): re-apply the public-reference guard when loading a snapshot
7ef58d9
fix(shares): rebuild public rows and classify scheme-relative descend…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a complete token is followed by prose ending in a slash-bearing filename, such as
MEDIA:/tmp/a.png see /other/README.md, the slash-excluding discriminator fails and the spaced branch captures the entire fragment. The renderer and backend consumers then use/tmp/a.png see /other/README.mdas a nonexistent path, losing the attachment and swallowing the trailing prose.