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, almost 2 years 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 3 days 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