Skip to content

Reload recording overrides per read so bbb-playback-video metadata links use current playback host/protocol - #25042

Draft
antobinary with Copilot wants to merge 5 commits into
v3.0.x-developfrom
copilot/fix-bbb-playback-video-config
Draft

antobinary with Copilot wants to merge 5 commits into
v3.0.x-developfrom
copilot/fix-bbb-playback-video-config

Conversation

Copilot AI commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

bbb-playback-video metadata generation could emit links using stale/default playback URL settings, even when playback_host and playback_protocol were overridden in /etc/bigbluebutton/recording/recording.yml. This caused published recording links (notably from Greenlight) to point to the wrong domain/protocol.

  • Config loading behavior

    • Updated BigBlueButton.read_props to reload config on each call instead of returning cached values.
    • Preserved merge precedence of override config (recording.yml over bigbluebutton.yml), so playback URL fields reflect current runtime overrides.
  • Safer YAML parsing

    • Replaced YAML.load(File.open(...)) with YAML.safe_load(File.read(...)) for both base and override files.
  • Focused regression coverage

    • Added a minitest verifying consecutive read_props calls pick up updated override values (e.g., changed playback_host) rather than reusing stale in-memory props.
def self.read_props
  filepathRecOverride = "/etc/bigbluebutton/recording/recording.yml"
  filepath = File.join(BigBlueButton.rap_scripts_path, 'bigbluebutton.yml')
  @props = YAML.safe_load(File.read(filepath))
  if File.file?(filepathRecOverride)
    recOverrideProps = YAML.safe_load(File.read(filepathRecOverride))
    @props = @props.merge(recOverrideProps)
  end
  @props
end

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=BUILDDIR=/usr/src/ruby3.2-3.2.3-1ubuntu0.24.04.7 -fPIC (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Investigate and propose solution for playback configuration issue Reload recording overrides per read so bbb-playback-video metadata links use current playback host/protocol May 7, 2026
Copilot AI requested a review from antobinary May 7, 2026 21:03
@sonarqubecloud

sonarqubecloud Bot commented May 7, 2026

Copy link
Copy Markdown

antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Jul 23, 2026
read_props cached its result in a module ivar, so long-lived processes
like the resque workers kept serving stale config: editing
/etc/bigbluebutton/recording/recording.yml had no effect until the
worker was restarted.

Drop the cache and re-read both files per call, switch to
YAML.safe_load, tolerate an empty override file (previously a
TypeError on merge(nil)), and take the override path as a parameter so
the behavior is testable. Add a minitest covering merge precedence,
per-call reload, and the empty/missing override cases.

Reworked from bigbluebutton#25042 (which targeted v3.0.x-develop).

Fixes bigbluebutton#21125

Co-Authored-By: Claude Fable 5 <[email protected]>
@antobinary antobinary mentioned this pull request Jul 23, 2026
1 task done
@antobinary antobinary added this to the Release 3.0 milestone Oct 6, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ 2.7 - 3.0 ] bbb-playback-video does not use override config

2 participants