Only local files should be passed to _locale_parse_js_file()

Created on 4 October 2018, over 6 years ago
Updated 30 October 2024, 3 months ago

Hi, just want to let you know that after upgrading core to 8.6.1 and openapi_ui_redoc to 1.0-rc2
it's not possible to explore /admin/api pages anymore.

This is caused by locale module, because it can parse local file only, so it can't parse file from https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js'.
The corresponding core issue can be found here: https://www.drupal.org/project/drupal/issues/2735717 🐛 Stream wrapper reference in JS library causes error in _locale_parse_js_file() Needs work

As a workaround for now, I've manually downloaded redoc.min.js file and changed library.info to use that local file,
another idea for solution can be found in comment #3 🐛 Stream wrapper reference in JS library causes error in _locale_parse_js_file() Needs work of related core issue.

Not sure which approach will be better in that situation, patching the module or waiting for core issue to be resolved?

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇵🇱Poland sandboxpl Poland 🇵🇱

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