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

Created on 25 July 2015, almost 9 years ago
Updated 20 March 2023, about 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

Postponed: needs info

Version

9.5

Component
File system 

Last updated about 3 hours ago

Created by

🇨🇭Switzerland Berdir Switzerland

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.69.0 2024