File uri field type has default formatter uri_link, throws exception when trying to render

Created on 25 July 2015, over 9 years ago
Updated 20 March 2023, over 1 year ago

Problem/Motivation

File uses the type uri. Which has caused weird problems before, because the file URI isn't actually a valid URI. There are validation problems and so on.

The UriItem field type uses uri_link as the default formatter. But that is not compatible with public:// / private://

Proposed resolution

Switch to use string? Maybe actually support stream wrappers in fromUri() ?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

9.5

Component
File system 

Last updated about 12 hours ago

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024