Closed (fixed)
Project:
Drupal Canvas
Version:
1.x-dev
Component:
AI
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2025 at 05:30 UTC
Updated:
22 Dec 2025 at 22:14 UTC
Jump to comment: Most recent
The src property for image doesn't accept uri-reference (like public://, private:// etc.) The src property for image is mapped with src_with_alternate_widths prop. See here:
https://git.drupalcode.org/project/canvas/-/blob/1.x/src/Hook/ShapeMatch...
And the prop src_with_alternate_widths has a constraint validation that uri scheme must be http or https. See here: https://git.drupalcode.org/project/canvas/-/blob/1.x/src/Plugin/Field/Fi...
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
utkarsh_33 commentedComment #4
vishalkhode commentedReviewed changes, looks good to me. Also, verified and can confirm that I don't see an error log, when asking AI to Create an image component. Hence, marking as RTBC.
Comment #5
tedbowThis look ok but this file is very confusing #3562095: Document why PropsSchema.json works that way it does or change it. Lets fix this
Comment #7
tedbow🎉 Thanks!