Closed (fixed)
Project:
Drupal Canvas
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Nov 2025 at 11:07 UTC
Updated:
16 Dec 2025 at 10:19 UTC
Jump to comment: Most recent
Comments
Comment #3
vishalkhode commentedComment #5
vishalkhode commentedAn alternative approach could be:
getExternalUrl().However, this also less likely would catch invalid URIs. As
getExternalUrl()normalizes and encodes the path component, turning the invalid stream wrapper URIs into valid HTTP URLs. For example, the invalid URIpublic://test/file name with spaces.txtbecomeshttps://my-drupal-site.com/sites/default/files/file%20name%20with%20spaces.txt, which passes validation. We can userawurldecode($value)and then validate, but it might decode the input uri as well.Comment #6
wim leersI independently discovered this bug yesterday:
— #3515074-32: Shape matching MUST work with the resolved equivalents of $refs AND must be compatible with core's upcoming $ref resolving in SDCs
Comment #7
wim leersWow: #3352063-69: Allow schema references in Single Directory Component prop schemas → we can now just make Canvas require https://github.com/jsonrainbow/json-schema/releases/tag/6.6.2 to fix this!
Comment #8
wim leersI think this ought to be a stable blocker. Because it'll require bumping our versions.
Comment #11
vishalkhode commentedComment #12
deepakkm commentedReviewed and validated and looks good
Comment #14
wim leersThanks!
Comment #16
wim leersOops, one tiny oversight: we should now be able to remove
… to avoid continuing to carry this technical debt.
Comment #19
phenaproximaRemoved that bit of code.
Comment #21
penyaskito👌🏽
Comment #23
penyaskitoThanks!
Comment #25
wim leersNice, thanks!