Skip to content

refactor(core): Identify presentation pages by an opaque page id - #26623

Merged
antobinary merged 17 commits into
bigbluebutton:v4.1.x-developfrom
imdt-claudiop:pageid-opaque
Nov 25, 2026
Merged

antobinary merged 17 commits into
bigbluebutton:v4.1.x-developfrom
imdt-claudiop:pageid-opaque

Conversation

@imdt-claudiop

@imdt-claudiop imdt-claudiop commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Every presentation page gets a fixed id: a UUID (pageId) given to the page when it is converted, which never changes and is never reused. The page number (num) only says where the page is in the presentation. Nothing changes for presenters and viewers; this is the groundwork for inserting pages into a presentation that is already open, which needs page numbers that can change without moving annotations, zoom and text from one page to another.

The page id replaces the page number everywhere a page is named:

  • Files and URLs. Slide artifacts are named by page id (svgs/slide<pageId>.svg, pngs/slide-<pageId>.png, thumbnails/thumb-<pageId>.png, textfiles/slide-<pageId>.txt), through a single list of artifact types (PageArtifacts). The svg, png, thumbnail and text URLs, the slide authorization, the page token and the nginx locations take the page id; a page number there answers 404. The page token is an HMAC over conference|room|presId|pageId, and the asset actions resolve their files through resolvePresentationFile.
  • Conversion. UploadedPresentation registers the ids of an upload once: minted after the page count, or adopted from the conversion cache. The png and thumbnail renames no longer depend on how many files the directory holds.
  • Conversion cache. Entries move to the key <hash>.v2.tar.gz and carry a manifest.json (page number to page id). A restore gives the cached pages new ids, so two uploads of the same file never share a page id. Entries stored under the old key are not read, so the cache starts empty after the upgrade.
  • akka-apps. Pages are found by id in any pod, or by position in a presentation. Whiteboard, cursor and delete messages carry pageRefs (presentation and position of each page), which the recorder writes to events.xml. The cursor is accepted only for a page of the meeting, like annotations and deletes. Zoom no longer writes the page number. The poll result shape has page:<pageId> as parent and the presentation id in meta.
  • Changing page by position. New GraphQL action presentationSetPageByNum(presentationId, pageNum, seenTotalPages) and message SetCurrentPageByNumPubMsg: the client sends a position with the total number of pages it saw with it, and the server converts the position if the order changed meanwhile (it cannot change yet, so the position is used as sent). The toolbar, the keys (with or without focus on the whiteboard) and "go to slide" use it.
  • Client. tldraw page, camera, background shape and asset ids, the zoom caches, presence and the snapshot use the page id. The page number is only displayed and used to ask for a page by position.
  • Recording. events.xml gains pageIds in ConversionCompletedEvent; GotoSlideEvent has the page id in id; whiteboard events have the page id in whiteboardId, plus the presentation and position. A recording with page ids is processed by page id as a whole (published slide files and presentation_text.json keys by page id, a presentation starts at its first page, the preview shows the first three pages); a recording made before keeps the numeric path, unchanged.
  • Export, slide capture and learning dashboard read the slide files and build the slide URLs by page id.
  • Removed: the bbb-web endpoints that counted the files of a presentation (/bigbluebutton/presentation/{conference}/{room}/{presentationName}/slides, /thumbnails, /svgs, /textfiles), and the unrouted thumbnail action. The api-conformance suite moves them to the removed routes, each with a case that expects 404.
  • Docs: new-features.md lists what changes for integrations; plugins.md says currentPage.id is opaque and currentPage.num is the position.

Closes Issue(s)

None. This replaces the page identity part of #25380.

Motivation

Pages were identified by <presentationId>/<pageNumber>, and that id was cut back into a number in the client, the recorder, the export and the dashboard. Inserting a page would shift every number after it and move annotations, zoom, text and recordings to the wrong page. With an id that never changes, inserting pages only changes positions.

For integrations

  • Slide image, thumbnail, png and text links use the page id; links with a page number answer 404.
  • Every request that names a page (current page, annotations, zoom, cursor) uses the page id; an id built as <presentationId>/<pageNumber> has no effect.
  • The four count endpoints above are removed.
  • Recordings name pages by page id in events.xml and in the published files; recordings made before this change are still processed as before.
  • Upgrading restarts akka-apps and ends running meetings, as any upgrade does.

Limitations

  • akka-apps finds a page by id with a linear search over the meeting's pods and presentations, and the cursor goes through it.
  • Running meetings are not migrated: upgrading ends them (checked below).
  • A poll published during screen sharing records no whiteboard event, exactly as before this change, so that recorder path is checked by comparison with the current behaviour, not end to end.
  • For recordings made before this change and reprocessed with this branch, only the presentation format outputs were compared with the current ones; their video format was not compared.
  • When switching presentations, the client briefly shows a transitional frame with the incoming slide partially zoomed (visible around 00:00:43 and 00:00:48 of the demonstration video); this transition was not compared with the current behaviour.

How to test

Navigation, annotations, zoom, polls, recording, export and breakout rooms work as before; the page id shows in the slide URL (.../svg/<pageId>).

Checked on a development server built from this branch (production builds of the client, bbb-web, akka-apps and graphql-actions):

Preview of the demonstration video below - click the GIF to open the full MP4 (one meeting, recorded, then the playback of that recording):

Navigation, annotations, poll, zoom and slide change with page ids

Timestamps in the MP4:

  • Navigation by the toolbar buttons - 00:00:12

  • Navigation by the arrow keys, focus outside the whiteboard - 00:00:19

  • Navigation by the arrow keys, whiteboard focused - 00:00:23

  • Navigation by "go to slide" - 00:00:28

  • Annotations drawn on slides 1, 2 and 3 - 00:00:34

  • Switch to another presentation, which has no annotations - 00:00:43

  • Back to the first presentation: each slide keeps its own annotations (slide 3, then 2, then 1) - 00:00:47

  • Poll result published on slide 4 - 00:00:56 (on the slide from 00:01:00)

  • The poll result is not on slide 5 and is back on slide 4 - 00:01:05

  • Zoom per slide: slide 5 at 150%, slide 4 at 100%, slide 5 back at 150% - 00:01:11

  • Slide change of issue 25397: jump to slide 9 with the first request for its image held back 1.5 s; slide 5 stays on screen until slide 9 is painted - 00:01:22, apart from at most one blank frame when the jump starts from a zoomed slide, the same as the current behaviour

  • Learning dashboard of the meeting, timeline with the visited pages - 00:01:54

  • Playback of the recording of this meeting (presentation format), slide by slide - 00:02:05: slide 3, 2 and 1 with their annotations after the presentation switch at 00:02:50, 00:02:53 and 00:02:55, the poll result on slide 4 at 00:03:03

  • Navigation by toolbar, by keys with and without focus on the whiteboard, and by "go to slide". The slide url is /svg/<pageId>.

    Client after navigating to slide 3

  • GraphQL. pres_page.content has the text of each page; a zoom request with a different pageNum does not change the page number; presentationSetPageByNum with a different seenTotalPages goes to the position asked; presentationSetPage with an id in the old form leaves the current page unchanged.

  • Conversion cache (with a local S3 server): two uploads of the same file, the second restored from the cache with new page ids and only the artifacts of its pages in the upload directory; a file with only an old-key entry is converted, not restored.

  • Recordings. A new recording (annotations on three slides, a poll on a slide, a poll during screen sharing, a presentation removed while another user draws, a six-page presentation shared without navigating) publishes slides and texts by page id, with each annotation on its slide; the presentation starts at its first page and the preview shows pages 1, 2 and 3. Recordings made before this change, reprocessed with this branch, publish the same files, texts, annotations, polls and preview as before.

    Presentation playback of a new recording
    Video format of a new recording, slide 3 with its annotations

  • Export with annotations of a PDF, an office document, an image and a PDF with a soft mask: same pages and page sizes as before, same slide content.

    Export of an office document, before (left) and with this branch (right)

  • Breakout rooms with the current slide and with a whole presentation receive the same pages as before; capturing slides when the rooms end works as before.

  • Learning dashboard: the timeline shows the thumbnails of the visited pages.

    Learning dashboard timeline

  • Upgrade with a running meeting: the meeting ends; a meeting created afterwards uploads, navigates and annotates normally.

Playwright: the tests that depended on the page number now read the page id (navigation, slide change, slide position, annotation allowlist), and new tests check that annotations stay on their slide across a presentation switch, that taking presenter keeps navigation and the infinite whiteboard toggle working, that removing a presentation while another user draws raises no error, that each slide keeps its own zoom, that a poll result stays on its slide, and that the snapshot works on slide 2. Run against the development server, these pass.

Unit tests

The Scala unit tests workflow (#26616) is merged, and this branch is rebased on v4.1.x-develop after it. Output of the three Scala modules and of the bigbluebutton-web suite at head e46291cc6e. The tree differs from the one tested only in the three quoted nginx location lines, so the suite output is unchanged:

bbb-common-message: sbt test (30 passed, 0 failed, 5 suites)
[info] UnitSpec2:
[info] JsonUtilTest:
[info] JsonUtil
[info] - should unmarshall a simple map (411 milliseconds)
[info] JsonUtil
[info] - should unmarshall a nested case class (22 milliseconds)
[info] PageIdMessagesTests:
[info] SetCurrentPageByNumPubMsgBody
[info] - should decode the body bbb-graphql-actions sends (411 milliseconds)
[info] - should decode an unknown seen total, sent as 0 (5 milliseconds)
[info] - should refuse a body without seenTotalPages (3 milliseconds)
[info] SetCurrentPageEvtMsgBody
[info] - should carry pageNum next to pageId (12 milliseconds)
[info] SendCursorPositionEvtMsgBody
[info] - should carry pageRefs (29 milliseconds)
[info] - should accept empty pageRefs for an id that is not a page (1 millisecond)
[info] SendWhiteboardAnnotationsEvtMsgBody
[info] - should carry one PageRef per page of the batch (29 milliseconds)
[info] - should refuse a body without pageRefs (1 millisecond)
[info] DeleteWhiteboardAnnotationsEvtMsgBody
[info] - should carry pageRefs (10 milliseconds)
[info] PresentationPageForExport
[info] - should carry the pageId next to the position (15 milliseconds)
[info] YamlUtilTest:
[info] diffOverrideAgainstBase
[info] - should report no issues for a valid nested override (315 milliseconds)
[info] - should flag a typo'd leaf key as unknown-key at the right path (1 millisecond)
[info] - should flag a typo'd nested section key as unknown-key (0 milliseconds)
[info] - should flag a shape-mismatch when an object is given where base has a scalar (0 milliseconds)
[info] - should flag a shape-mismatch when a scalar is given where base has an object (0 milliseconds)
[info] - should flag a bool-vs-string type-mismatch at a leaf (1 millisecond)
[info] - should not flag Int-vs-Double (integer vs decimal literal, same Number type class) (83 milliseconds)
[info] - should ignore the public.plugins subtree (3 milliseconds)
[info] - should report issues in a deterministic (sorted) order regardless of map order (1 millisecond)
[info] - should flag every top-level key as unknown when the base catalog is empty (2 milliseconds)
[info] - should ignore a nested section under public.plugins (1 millisecond)
[info] - should classify a null override leaf as a type-mismatch (no crash) (1 millisecond)
[info] - should flag a List override where the catalog has a scalar as a type-mismatch (1 millisecond)
[info] - should not flag an override of a null-default key (e.g. customStyleUrl) (1 millisecond)
[info] DeserializerTests:
[info] It
[info] - should be able to decode envelope and core message (546 milliseconds)
[info] It
[info] - should be able to decode CreateMeetingReqMsg (68 milliseconds)
[info] It
[info] - should be able to decode BbbCoreMsg (4 milliseconds)
[info] It
[info] - should be able to deserialize message from client (8 milliseconds)
[info] Run completed in 834 milliseconds.
[info] Total number of tests run: 30
[info] Suites: completed 5, aborted 0
[info] Tests: succeeded 30, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
akka-bbb-apps: sbt test (121 passed, 0 failed, 14 suites)
[info] PresAnnotationDAOSpec:
[info] PresAnnotationDAO.deleteAnnotationsQuery
[info] - should scope the update by meeting and page as well as annotation id (574 milliseconds)
[info] - should not emit an unscoped update when no annotation ids are given (52 milliseconds)
[info] PresentationPageOrderSpec:
[info] PresentationPageOrder.numNow
[info] - should return the number unchanged when the order never changed (21 milliseconds)
[info] - should move a number at or after the position of a change, and keep one before it (0 milliseconds)
[info] - should apply every change from the one whose previous total was seen (1 millisecond)
[info] - should count a page moved by an earlier change against the next change (0 milliseconds)
[info] - should apply only the changes made after the seen total (2 milliseconds)
[info] - should return the number unchanged for an unknown or unmatched seen total (1 millisecond)
[info] - should return the number unchanged when the seen total is the current one (0 milliseconds)
[info] PresentationPodsAppSpec:
[info] PresentationPodsApp.pageBelongsToMeeting
[info] - should accept a page held by one of the meeting's presentation pods (28 milliseconds)
[info] - should reject a page belonging to another meeting (1 millisecond)
[info] - should reject a page id that does not exist at all (0 milliseconds)
[info] - should reject the deskshare pseudo page, which is not a presentation page (1 millisecond)
[info] - should reject every page when the meeting has no pods or no presentations (0 milliseconds)
[info] PresentationPodsApp.pageBelongsToMeeting (multi-pod)
[info] - should find a page held by a non-default pod (1 millisecond)
[info] PresentationPodsApp.findPodWithPresentation
[info] - should return the pod that holds the presentation (1 millisecond)
[info] - should return None for a presentation held by no pod (0 milliseconds)
[info] PresentationPodsApp.podIsFullFor
[info] - should refuse a new presentation when the pod is at its limit (1 millisecond)
[info] - should not refuse a presentation the full pod already holds (0 milliseconds)
[info] - should accept a new presentation while the pod is below its limit (0 milliseconds)
[info] - should never refuse when the limit is disabled (0 milliseconds)
[info] PresentationPodsApp.maxPresentationsPerPodFor
[info] - should let server imports go past the cap, up to twice it (0 milliseconds)
[info] - should keep the cap disabled for server imports (1 millisecond)
[info] PresentationPodsApp.findPresentationPage
[info] - should return the page and its presentation (6 milliseconds)
[info] - should find a page held by a non-default pod (2 milliseconds)
[info] - should return None for an id that is not a page of the meeting (0 milliseconds)
[info] PresentationPodsApp.pageRefsFor
[info] - should give the presentation and position of each page (3 milliseconds)
[info] - should leave out an id that does not resolve and a page of another meeting (1 millisecond)
[info] - should list a repeated id once (1 millisecond)
[info] PresentationInPod.pageByNum
[info] - should find the page at a position (1 millisecond)
[info] - should find nothing at a position the presentation does not have (1 millisecond)
[info] PresentationPod.resizePage
[info] - should change the zoom of the page and keep its position (3 milliseconds)
[info] PresentationPodsApp.isPresentationId
[info] - should accept the ids generatePresentationId produces (19 milliseconds)
[info] - should reject anything else (2 milliseconds)
[info] JsonUtilsSpec:
[info] JsonUtils.mapToJson
[info] - should write integers outside the Int range exactly (47 milliseconds)
[info] - should write every value Jackson reads from an incoming annotation (535 milliseconds)
[info] - should still reject a value that has no JSON form (1 millisecond)
[info] AddTldrawShapeWhiteboardRecordEvent
[info] - should record a shape as the same JSON that is stored (24 milliseconds)
[info] PollResultShapeSpec:
[info] Polls.pollResultToWhiteboardShape
[info] - should make the page itself the parent of the shape, not its position (22 milliseconds)
[info] - should put the presentation of the page in meta (2 milliseconds)
[info] - should keep the shape id stamped from the poll (2 milliseconds)
[info] RegisteredUsersSpec:
[info] RegisteredUsers.numUniqueJoinedUsers
[info] - should count each joined external user once (29 milliseconds)
[info] - should not count a user removed from the meeting (4 milliseconds)
[info] - should not count a user banned from the meeting (1 millisecond)
[info] DroppedPresentationsSpec:
[info] - should contain only presentations that were added (23 milliseconds)
[info] - should tolerate adding the same presentation twice (0 milliseconds)
[info] - should forget the oldest presentation beyond MaxEntries (12 milliseconds)
[info] - should not count a presentation added twice against MaxEntries (1 millisecond)
[info] - should not let removals push out a refused presentation (3 milliseconds)
[info] UserInfoServiceSpec:
[info] - should mark an unlocked viewer session as not locked (22 milliseconds)
[info] - should mark a locked viewer session with its own userId (2 milliseconds)
[info] - should keep the identity variables intact (0 milliseconds)
[info] - should not expose lock variables to a session that is not in the meeting (1 millisecond)
[info] AudioCaptionsSpec:
[info] AudioCaptions.editTranscript
[info] - should open the first transcript of a locale at offset 0 (25 milliseconds)
[info] - should apply the owner's edit to its own current transcript (0 milliseconds)
[info] - should shift the owner's offsets by the text already committed in the locale (1 millisecond)
[info] - should clamp offsets outside the current transcript to its bounds (0 milliseconds)
[info] - should never let an edit reach text committed before the current transcript (1 millisecond)
[info] - should give a submission that carries another user's transcriptId its own segment (2 milliseconds)
[info] - should let the owner keep editing after a foreign submission with the same transcriptId (0 milliseconds)
[info] - should keep transcripts of different locales independent (0 milliseconds)
[info] - should refuse a new locale once MaxLocalesPerMeeting are open, but keep updating the open ones (4 milliseconds)
[info] PollHdlrHelpersSpec:
[info] - should drop an id past the last option (999) (22 milliseconds)
[info] - should drop a negative id (-1) (1 millisecond)
[info] - should drop Int.MaxValue without an index-out-of-bounds crash (0 milliseconds)
[info] - should keep a valid id (0) (0 milliseconds)
[info] - should return empty for an empty vote (no-op) (0 milliseconds)
[info] - should keep every valid id when the question is multi-response (1 millisecond)
[info] - should keep only the first id when the question is single-response (2 milliseconds)
[info] - should drop a single-response vote whose first id is out of range (1 millisecond)
[info] - should drop every id when the question has no answers (empty valid range) (1 millisecond)
[info] - should collapse duplicate valid ids on a multi-response vote (0 milliseconds)
[info] LocaleUtilSpec:
[info] LocaleUtil.isValidLocale
[info] - should accept the language tags the client can send (22 milliseconds)
[info] - should reject anything that is not a language tag (2 milliseconds)
[info] - should stop at the 15 characters the locale columns hold (1 millisecond)
[info] - should take an empty locale only where it means 'disabled' (0 milliseconds)
[info] LocaleUtil.isCanonicalLocale
[info] - should accept a tag only in its canonical BCP 47 form (1 millisecond)
[info] - should reject ill-formed tags and null (1 millisecond)
[info] LocaleUtil.isValidCaptionId
[info] - should accept the ids the clients and the transcription controller generate (1 millisecond)
[info] - should reject empty, null, overlong and non-alphanumeric ids (1 millisecond)
[info] PresentationUploadTokenRateLimiterSpec:
[info] PresentationUploadTokenRateLimiter.allow
[info] - should admit up to maxRequests within the window and refuse the next (25 milliseconds)
[info] - should admit again once earlier requests leave the window (2 milliseconds)
[info] - should always admit when the limit is disabled (3 milliseconds)
[info] PresentationUploadTokenRateLimiter.allowRateLimitRow
[info] - should allow up to maxRows rows within the window and refuse the next (2 milliseconds)
[info] - should allow rows again once earlier ones leave the window (1 millisecond)
[info] - should track users independently (4 milliseconds)
[info] PresentationUploadTokenRateLimiter.recordRejectionRow
[info] - should keep rows up to maxRows and return the oldest beyond it (1 millisecond)
[info] - should track rows per user (0 milliseconds)
[info] PresentationUploadTokenRateLimiter.maxRejectionRows
[info] - should keep every row one window can produce (1 millisecond)
[info] - should fall back to the default limit when the limit is disabled (0 milliseconds)
[info] WhiteboardModelSpec:
[info] - should reject the embed shape type (19 milliseconds)
[info] - should reject the bookmark and image shape types (1 millisecond)
[info] - should reject the video shape type and any unknown/future type (0 milliseconds)
[info] - should allow legitimate drawing shape types (plus group and the BBB poll shape) (1 millisecond)
[info] - should reject annotations whose type is absent or non-string (0 milliseconds)
[info] - should block what the previous accept-any-type behaviour allowed through (1 millisecond)
[info] effectiveAllowedTypes
[info] - should fall back to the built-in default when nothing is configured (0 milliseconds)
[info] - should keep the built-in default and the fixed exclusions disjoint (2 milliseconds)
[info] - should honour a configured list, including types the default does not know about (0 milliseconds)
[info] - should let a configured list narrow the default (0 milliseconds)
[info] - should drop the fixed exclusions no matter what is configured (11 milliseconds)
[info] - should reject everything when the configured list resolves to nothing but exclusions (1 millisecond)
[info] hasSafeAnnotationUrl
[info] - should reject a javascript: url (1 millisecond)
[info] - should reject a javascript: url however it is disguised (2 milliseconds)
[info] - should reject other non-http schemes and scheme-less urls (4 milliseconds)
[info] - should allow http and https urls (2 milliseconds)
[info] - should allow an empty or blank url, which is what an unlinked shape carries (0 milliseconds)
[info] - should reject a url that is present but not a string (2 milliseconds)
[info] - should accept shapes with no url to validate (0 milliseconds)
[info] - should apply to note shapes too, not just geo (1 millisecond)
[info] - should be the second half of the gate: an allowed type is not enough on its own (0 milliseconds)
[info] readConfiguredTypes
[info] - should return nothing when the key is absent, so the default applies (60 milliseconds)
[info] - should read a well-formed list (12 milliseconds)
[info] - should trim entries and drop blank ones (1 millisecond)
[info] - should fall back to the default for a value that is not a list (8 milliseconds)
[info] - should treat an explicitly empty list as no configuration (1 millisecond)
[info] - should fall back to the default for entries that are not quoted strings (7 milliseconds)
[info] - should reject the whole list when only some entries are strings (2 milliseconds)
[info] the shipped default
[info] - should match the list in src/universal/conf/application.conf (28 milliseconds)
[info] PresPresentationDAOSpec:
[info] PresPresentationDAO.awaitingUploadQuery
[info] - should scope the failure to the meeting, the uploader and the awaiting-upload state (578 milliseconds)
[info] PresPresentationDAO.awaitingUploadOfPresentationQuery
[info] - should scope the failure of an upload to that presentation while it awaits its file (56 milliseconds)
[info] Run completed in 926 milliseconds.
[info] Total number of tests run: 121
[info] Suites: completed 14, aborted 0
[info] Tests: succeeded 121, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
bbb-common-web: sbt test (120 passed, 0 failed, 19 suites)
[info] RequestRateLimiterTest:
[info] - should admit up to maxRequests within the window and reject the next (27 milliseconds)
[info] - should admit again once earlier requests fall out of the window (0 milliseconds)
[info] - should always allow when maxRequests is 0 (disabled) (5 milliseconds)
[info] - should track keys independently (0 milliseconds)
[info] - should never admit more than maxRequests per window under concurrent access (23 milliseconds)
[info] - should drop stale buckets on sweep (1 millisecond)
[info] - should not return budget on sweep for timestamps still inside the window (1 millisecond)
[info] - should not consume budget for a request it rejects (0 milliseconds)
[info] - should report the limit without recording a request (1 millisecond)
[info] - should never report the limit when maxRequests is 0 (disabled) (1 millisecond)
[info] - should expire a timestamp exactly one window later, not before (1 millisecond)
[info] MeetingUserCustomDataTest:
[info] addUserCustomData
[info] - should keep the data of every user of a meeting the users join at the same time (411 milliseconds)
[info] SlideRenderComparatorTest:
[info] - should not tell identical renders apart (126 milliseconds)
[info] - should ignore the rendering noise between two backends (7 milliseconds)
[info] - should detect the content missing from a blank render (11 milliseconds)
[info] - should detect the content missing from a render that is not blank (4 milliseconds)
[info] - should ignore a difference too small to matter (5 milliseconds)
[info] - should read transparent pixels as white (15 milliseconds)
[info] SvgImageCreatorImpTest:
[info] - should replace the file with the new content (6 milliseconds)
[info] - should create the file when there is none to replace (1 millisecond)
[info] - should leave the file untouched when the write fails (1 millisecond)
[info] SystemUploadExemptionTest:
[info] - should classify a token issued to the server as a system upload (1 millisecond)
[info] - should classify a token issued to a participant as a normal upload (0 milliseconds)
[info] - should treat a missing userId as a normal upload rather than throwing (0 milliseconds)
[info] - should match the system sentinel exactly (0 milliseconds)
[info] - should default every UploadedPresentation constructor to a normal upload (0 milliseconds)
[info] - should carry the flag once set from the upload token (0 milliseconds)
[info] PdfSlidesGenerationServiceTest:
[info] - should not convert a page of a rejected presentation (6 milliseconds)
[info] - should convert a page of a presentation that was not rejected (1 millisecond)
[info] RejectedPresentationRegistryTest:
[info] - should report a rejected presentation as rejected, scoped to its meeting (1 millisecond)
[info] - should ignore ids that could escape the presentation directory (1 millisecond)
[info] - should delete the presentation directory but keep the presentation rejected (10 milliseconds)
[info] - should tolerate a presentation directory that no longer exists (1 millisecond)
[info] - should stay rejected when rejected twice (1 millisecond)
[info] - should delete the directory and forget the presentation on expiry (1 millisecond)
[info] - should remove files written after the first deletion on expiry (2 milliseconds)
[info] - should map the akka rejection message onto the bbb-web message (3 milliseconds)
[info] PresentationUploadTokenTest:
[info] - should not be abandoned while the client still has time to start sending (0 milliseconds)
[info] - should be abandoned once no upload request arrived in time (0 milliseconds)
[info] - should never be abandoned once its upload request has arrived (1 millisecond)
[info] - should be started by the first upload request only (0 milliseconds)
[info] - should never be abandoned when issued for a system upload (0 milliseconds)
[info] - should treat a missing userId as a participant's token (0 milliseconds)
[info] XmlServiceImplTest:
[info] - should return a valid no recordings response (3 milliseconds)
[info] - should append total elements to a valid paginated response (127 milliseconds)
[info] - should return a failure response when pagination input XML is blank (0 milliseconds)
[info] - should return a failure response when pagination input XML cannot be parsed (13 milliseconds)
[info] ParamsUtilTest:
[info] - should strip out control chars from text (1 millisecond)
[info] - should complain about invalid chars in meetingId (14 milliseconds)
[info] - should accept valid chars in meetingId (0 milliseconds)
[info] getSessionToken
[info] - should return null when there is no URL (0 milliseconds)
[info] - should return null for an empty URL (0 milliseconds)
[info] - should return undefined for a URL without a query string (1 millisecond)
[info] - should return undefined for an empty sessionToken parameter (0 milliseconds)
[info] - should return undefined for a malformed percent escape (0 milliseconds)
[info] - should return the sessionToken parameter (0 milliseconds)
[info] - should find the sessionToken among other parameters (0 milliseconds)
[info] PresentationFileProcessorTest:
[info] process
[info] - should skip the conversion when the meeting is already gone (203 milliseconds)
[info] - should pass the meeting's page limit to the page counter while the meeting is running (10 milliseconds)
[info] RecordingProcessingInfoTest:
[info] getRecordingProcessingInfo
[info] - should report an empty pipeline as not processing (10 milliseconds)
[info] - should count a recorded meeting rap-starter hasn't queued, once with its chapter breaks, from its oldest marker (3 milliseconds)
[info] - should count an ended meeting whose events are to be kept, unless its archive failed (1 millisecond)
[info] - should count a caption upload still in the inbox, from its description (2 milliseconds)
[info] - should count each failed recording once, whichever steps and formats failed (1 millisecond)
[info] - should not count a recording left in recording/process (0 milliseconds)
[info] - should count Resque's queued jobs, from queued_at or else the recording's start time (25 milliseconds)
[info] - should count a recording with a running step once, as running (4 milliseconds)
[info] - should report when the oldest running step started, from Resque's run_at (1 millisecond)
[info] - should take the recording's start time for a running step whose run_at it can't read (0 milliseconds)
[info] - should count a failed recording that is queued again as queued (1 millisecond)
[info] - should ignore a worker on another queue (0 milliseconds)
[info] - should still count a job it can't read (5 milliseconds)
[info] - should still count a worker's job it can't read as running (0 milliseconds)
[info] - should fail rather than answer when Resque can't be read (2 milliseconds)
[info] - should fail rather than answer when the status directory is missing (3 milliseconds)
[info] - should fail rather than answer without a Redis connection (1 millisecond)
[info] RecordingProcessingCounter.recordId
[info] - should take the record ID a name starts with (0 milliseconds)
[info] ClientSettingsValidatorTest:
[info] - should return no issues for a valid override (213 milliseconds)
[info] - should report an unknown key placed at the wrong path (3 milliseconds)
[info] - should report a type mismatch (2 milliseconds)
[info] - should report unparseable override JSON as an issue so strict mode fails fast (1 millisecond)
[info] - should not block when the catalog could not be loaded (empty) (2 milliseconds)
[info] PresentationConversionCacheTest:
[info] A cache hit
[info] - should restore the pages under new ids, registered once, and nothing else of the archive (210 milliseconds)
[info] - should accept an archive without pngs and restore the other artifacts (6 milliseconds)
[info] A restore
[info] - should leave nothing when an archive entry cannot be restored (6 milliseconds)
[info] - should leave nothing when the manifest has an invalid id (4 milliseconds)
[info] - should leave nothing when the manifest pages are not contiguous (6 milliseconds)
[info] - should leave nothing when a page lacks a required artifact (5 milliseconds)
[info] - should remove what it already moved when it fails in the middle (6 milliseconds)
[info] - should never read an entry stored under the old key (2 milliseconds)
[info] Storing a conversion
[info] - should use the v2 key and a manifest naming the files of each page (1 second, 20 milliseconds)
[info] PageIdsTest:
[info] UploadedPresentation.mintPageIds
[info] - should mint one distinct, valid page id per page, in order (14 milliseconds)
[info] - should refuse a second call (1 millisecond)
[info] - should refuse a call after adoptPageIds (0 milliseconds)
[info] UploadedPresentation.adoptPageIds
[info] - should register the given ids in order (0 milliseconds)
[info] - should refuse a call after mintPageIds (1 millisecond)
[info] UploadedPresentation.pageId
[info] - should throw before any id is registered (1 millisecond)
[info] - should throw for a page without an id (0 milliseconds)
[info] PageArtifacts
[info] - should name every artifact by page id (1 millisecond)
[info] - should refuse an invalid page id (1 millisecond)
[info] - should read the page id back from a file name (0 milliseconds)
[info] - should mark png as the only optional artifact (0 milliseconds)
[info] RecordingServiceFileImplTest:
[info] - should create the recorded marker when a recording is handed to the pipeline (2 milliseconds)
[info] - should create a recorded marker per chapter break (2 milliseconds)
[info] - should create the ended marker in the directory next to the recorded one (1 millisecond)
[info] - should leave an existing marker in place (0 milliseconds)
[info] - should not throw when the marker cannot be created (1 millisecond)
[info] SvgConversionHandlerTest:
[info] - should count mask tags from the analysis output of a generated svg with soft masks (3 milliseconds)
[info] - should count zero mask tags when the analysis output has no mask line (0 milliseconds)
[info] - should count zero tags when the analysis output is not uniq -c formatted (0 milliseconds)
[info] ConversionRateLimitEnforcementTest:
[info] - should reject a participant upload once the meeting's budget is spent (2 milliseconds)
[info] - should admit a server capture with the meeting's budget fully spent (0 milliseconds)
[info] - should not consume the meeting's budget for a server capture (0 milliseconds)
[info] - should not consume the meeting's budget for an upload that already failed (0 milliseconds)
[info] - should key the budget per meeting (0 milliseconds)
[info] - should admit everything when no limiter is wired (0 milliseconds)
[info] - should expose the decision directly (0 milliseconds)
[info] - should take the token's userId from the message header, not the body (1 millisecond)
[info] - should classify a header userId of system as a system upload (0 milliseconds)
[info] MeetingUserCustomDataConcurrencyTest:
[info] - should retain user custom data from concurrent joins (113 milliseconds)
[info] Run completed in 3 seconds, 410 milliseconds.
[info] Total number of tests run: 120
[info] Suites: completed 19, aborted 0
[info] Tests: succeeded 120, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
bigbluebutton-web: ./gradlew test (196 executed, floor 149; passed per spec)
ParamsProcessorUtilDisabledFeaturesSpec: 3 passed
UrlMappingsSpec: 9 passed
CheckPresentationBeforeUploadingSpec: 4 passed
ConnectionControllerSpec: 10 passed
ErrorControllerSpec: 3 passed
GetJoinUrlSpec: 46 passed
PresentationPageAssetsSpec: 33 passed
PresentationUploadFailureSpec: 16 passed
RecordingControllerSpec: 7 passed
ValidationServiceChecksumSpec: 20 passed
PresentationUploadFilterSpec: 15 passed
UnknownActionInterceptorSpec: 19 passed
ApiControllerSpec: 11 skipped
Test discovery check: executed 196 tests (floor 149).
BUILD SUCCESSFUL in 40s

Checks after the rebase

On a development server built from source at head e46291cc6e (same tree as tested, apart from the three quoted nginx location lines; production builds of the client, bbb-web, akka-apps, graphql-actions and export-annotations):

  • Presentation conversion suite (bigbluebutton-tests/presentation-conversion): 23 passed across 7 fixtures (PDFs, an image, a PNG, a PPTX and a file name with quotes). For each fixture, slide 1 is served with its page token (200, same bytes as on disk) and refused with a wrong one (403).
  • Playwright presentation suite: 7 passed (skip slide, both arrow-key navigations, upload of a single presentation, sending the presentation with annotations to the chat, and an upload the server refuses is shown as failed).
  • tsc --noEmit on the Playwright and presentation conversion suites: rc 0.
  • The three page-id nginx location regexes (svg, thumbnail, textfiles) are quoted, because nginx ends an unquoted regex token at the first brace. Validated live: the page is served with its page token (200) and refused with a wrong one (403) and with a page number (404), served by nginx, with the bbb-web "Nginx should be serving" fallback counter unchanged.

The 13th commit, test(presentation-conversion): find page files by page id, adapts that suite: it names the converted page files by page id, read from pres_page by page number, instead of by page number.

Not run on this head: the upstream CI run at this head (pending), the official-plugins part of the plugin job, recording playback and mobile.


The Scala unit-test outputs pasted above were run locally (the mirror repo runs no Actions); the CI runs of #26616 cover the same suites.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 4

  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ab70b982-00a6-4c21-9fa0-e7ac8e82e1b7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@antobinary antobinary added this to the Release 4.1 milestone Nov 19, 2026
@antobinary antobinary changed the title Identify presentation pages by an opaque page id refactor(core): Identify presentation pages by an opaque page id Nov 19, 2026
@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@imdt-claudiop

imdt-claudiop commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor Author

The branch is rebased onto the current v4.1.x-develop (new head 17ebbb4bdc) after #26616 landed, so the commits it contributed are dropped from this PR and only the page-id work remains (13 commits; the new last one adapts the presentation-conversion suite to find page files by page id, since that suite is part of CI for PRs touching bbb-common-web/).

Conflict resolutions, for whoever reviews next:

  • SvgImageCreatorImp.java: keeps the blank-slide behavior the base added (blank SVG written at the page's size) and writes it to the page-id path this PR introduces.
  • MsgBuilder.scala: keeps the base's token binding to conference and room; the token is now an HMAC over conference|room|presId|pageId, and generatePresentationPage/generatePresentationPages take conference and room as leading arguments.
  • PresentationController.groovy: from the base, the conference/room equality check, rejectInvalidPresentationPath and the upload filter import; from this PR, the page-id format check (404 before the token check) and the page-id token in the four asset actions and the slide authorization. The page-count actions and the unrouted thumbnail action stay removed, along with the base's edits to them.
  • PresentationService.groovy: the show* methods now resolve files through the base's resolvePresentationFile; the unchecked presentationDirectory helper and the count methods are gone.
  • UrlMappingsSpec.groovy: both sides kept (the base's recording-processing test plus this PR's mapping tests).
  • Playwright presentation.ts: both import lists kept; the base's refused-upload test now checks the slide URL through the existing waitForSlidePath helper instead of a hard-coded page number.
  • build.gradle: test floor 149 (base 110 plus the 39 tests this PR adds); the executed run is 196.

Validation on the rebased head, run on a from-source environment of this branch: bbb-common-message 30 passed, akka-bbb-apps 121 passed, bbb-common-web 120 passed, bigbluebutton-web 196 executed (0 failed), presentation-conversion suite 23 passed across 7 fixtures with the page token checked per fixture (200 with token and identical bytes, 403 with a wrong token), Playwright presentation suite 7 passed, tsc clean. Not run on this head: the full automated suite, recording playback and the learning dashboard. The PR description carries these numbers and the per-file details.

@kepstin

kepstin commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

This is a significant change to the recording events, so make sure to update bbb_version in record-and-playback/core/scripts/bigbluebutton.yml

@imdt-claudiop

imdt-claudiop commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Done: bumped bbb_version to 4.1.0 in record-and-playback/core/scripts/bigbluebutton.yml (00e219cb36), as suggested in #26623 (comment). Recordings archived with page ids now carry a version that tells them apart from older ones.

@GuiLeme GuiLeme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antobinary
antobinary requested a review from kepstin November 24, 2026 17:06
@kepstin

kepstin commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

I'd really appreciate some documention for the recording events and recording file layout which describes the changes made between BigBlueButton versions. A good start would be to document the events and files changed by this PR, which appear to be:

  • ConversionCompletedEvent: added pageIds field, which contains a comma-separated list of the pageId for each page in the presentation, in order.
  • ResizeAndMoveSlideEvent: The id field now contains the pageId.
  • GotoSlideEvent: The id field now contains the pageId. The slide field is untouched (contains 0-indexed page number).
  • Various module="WHITEBOARD" events, including WhiteboardCursorMoveEvent, AddTldrawShapeEvent, etc: The whiteboardId field now contains the pageId. The pageNumber field is untouched (contains 0-indexed page number).
  • Presentation svg files are now located at presentation/{presentationName}/svgs/slide{slideId}.svg, they were previously presentation/{presentationName}/svgs/slide{pageNumber}.svg (using 1-indexed page number)
  • Presentation text files are now located at presentation/{presentationName}/textfiles/slide-{slideId}.txt, they were previously presentation/{presentationName}/textfiles/slide-{pageNumber}.txt (using 1-indexed page number)
  • Presentation thumbnails are now located at presentation/{presentationName}/thumbnails/thumb-{slideId}.png, they were previously presentation/{presentationName}/thumbnails/thumb-{pageNumber}.png (using 1-indexed page number)

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@imdt-claudiop

imdt-claudiop commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Documentation added in 17ebbb4, following the 4.0 pattern (new-features.md + development/recording.md):

  • docs/docs/new-features.md gains a "Changes to events.xml" section for 4.1 covering exactly the list in your comment: ConversionCompletedEvent pageIds, GotoSlideEvent/ResizeAndMoveSlideEvent id now carrying the page id, whiteboard events' whiteboardId (with slide/pageNumber untouched, 0-indexed), and the new published file paths (svgs/slide{pageId}.svg, textfiles/slide-{pageId}.txt, thumbnails/thumb-{pageId}.png).
  • docs/docs/development/recording.md gains per-event attribute/type/description tables for those events, AddTldrawShapeEvent/DeleteTldrawShapeEvent rows in the whiteboard table, and a short paragraph on the presentation files of a recording.

The docs site build passes and the new links resolve.

imdt-claudiop and others added 16 commits November 25, 2026 09:55
Page ids become opaque, so the messages that need a page's position no
longer read it from the id:

- SetCurrentPageEvtMsgBody gains pageNum.
- SendWhiteboardAnnotationsEvtMsgBody, SendCursorPositionEvtMsgBody and
  DeleteWhiteboardAnnotationsEvtMsgBody gain pageRefs, keyed by
  whiteboardId, with the presentation and position of each page.
- PresentationPageForExport gains pageId; page stays the position.
- New SetCurrentPageByNumPubMsg asks for a page by position, with the
  total number of pages the client saw when it read that position.

Every new field is always sent, empty when it does not apply.

Co-authored-by: Ramón Souza <[email protected]>
- Find a page by id in any pod (findPresentationPage), by position in a
  presentation (pageByNum), and the positions of a set of pages
  (pageRefsFor), which the whiteboard, cursor, delete and poll result
  messages now carry.
- The cursor is accepted only for a page of the meeting, like annotations
  and deletes.
- SetCurrentPageByNumPubMsg converts the number with
  PresentationPageOrder.numNow (no order change yet, so it returns the
  number as sent) and then follows the SetCurrentPagePubMsg path, through
  the new PresentationSender.broadcastSetCurrentPageEvtMsg with pageNum.
- Zoom no longer writes the page position.
- The poll result shape has page:<pageId> as parent and the presentation
  id in meta.
- Export and slide capture find each page by position instead of building
  presId/num.
- The recorder writes the page ids of a converted presentation in page
  order, the position of GotoSlideEvent from pageNum, and the presentation
  and position of whiteboard events from pageRefs; the case for the
  unused ClearWhiteboardEvtMsg is removed.
- The learning dashboard keeps the page id of each slide, compares slides
  by it, and adds converted pages to a presentation it already has
  (registerPages).

Co-authored-by: Ramón Souza <[email protected]>
Every page of an upload gets an opaque page id (UUID v4), registered once
in UploadedPresentation: minted after the page count, or adopted from a
conversion cache restore. PageArtifacts is the single source of the
artifact names: svgs/slide<pageId>.svg, pngs/slide-<pageId>.png,
thumbnails/thumb-<pageId>.png and textfiles/slide-<pageId>.txt.

- The svg, png, thumbnail and text creators write those names. The png
  and thumbnail renames take the temporary file of their own page instead
  of counting the files in the directory.
- Page URLs and page tokens use the page id. The generated and completed
  progress messages carry the page id and the page ids in page order.
- The conversion cache moves to the key <hash>.v2.tar.gz, with a
  manifest.json mapping page numbers to page ids. A restore extracts into
  a temporary directory, checks the manifest, and moves only the
  artifacts of the manifest's pages, renamed to new ids, so two uploads of
  the same file never share a page id. Entries under the old key are not
  read.
- The module's test suites run one at a time: the presentation processing
  tests share ServiceUtils' static MeetingService.

Co-authored-by: Ramón Souza <[email protected]>
…oints

- The svg, thumbnail, png and text routes, the slide authorization and
  the nginx locations take a page id instead of a page number. An id in
  any other format is answered 404, before the page token is checked;
  page tokens are computed with the page id in place of the page number.
- The four endpoints that counted a presentation's slides, thumbnails,
  svgs and text files are removed, with the unrouted thumbnail action.
- Specs cover the asset actions with and without pageTokenSecret, the
  slide authorization, and the removed routes; the test floor goes from
  110 to 149.
- The three page-id location regexes are quoted: nginx ends an unquoted
  location regex token at the first brace, so the {36} quantifier
  truncated the regex and pcre2_compile failed with missing closing
  parenthesis (CI run 44915731527). Quoting keeps the whole regex one
  token.

Co-authored-by: Ramón Souza <[email protected]>
New action that asks for the page at a position, with the total number of
pages the client read together with that position (0 when unknown). It
sends SetCurrentPageByNumPubMsg; presenters only.

Co-authored-by: Ramón Souza <[email protected]>
The whiteboard took its page id from the page number, and built tldraw
page, camera, background shape and asset ids from it. They now all come
from the pageId of the current page; the number is only shown and used
to ask for a page by position.

- Navigation by button, by key (with or without focus on the whiteboard)
  and by "go to slide" sends presentationSetPageByNum with the number and
  the totalPages read from the same page row, at the time of the request.
- The infinite whiteboard toggle sends the page id.
- Snapshot and import of the current slide use the page id.
- Remote shapes are matched to the presentation by meta.presentationId,
  which both the client and the poll result set.

Co-authored-by: Ramón Souza <[email protected]>
The collector and the processor read the converted slide svgs/slide<pageId>.svg
of each exported page, from the pageId that comes with it. The dropbox copy
keeps the position in its name, and the PDF is still rasterized by position.

Co-authored-by: Ramón Souza <[email protected]>
…e id

Slides recorded with a page id use it for the live URLs and for the files of
a standalone dashboard; data recorded before page ids keeps the page number.

Co-authored-by: Ramón Souza <[email protected]>
A recording whose events.xml lists the page ids of its presentations
(pageIds in ConversionCompletedEvent) is processed by page id as a whole;
other recordings keep the numeric path unchanged.

- process indexes the text of every slide by file name (slide-<pageId>),
  for PDF and image presentations.
- publish keys slides by the page id of GotoSlideEvent and of the
  whiteboard events, builds the image and text paths from it, and starts a
  presentation at its first page. A whiteboard id that is not a page id
  keeps the presentation and page number key.
- The preview uses the first three page ids.

Co-authored-by: Ramón Souza <[email protected]>
new-features lists what changes for integrations: page links, page requests
and recordings use the page id, the new presentationSetPageByNum action, the
removed count endpoints, and the conversion cache starting empty. The plugin
docs say currentPage.id is opaque and currentPage.num is the position.

Co-authored-by: Ramón Souza <[email protected]>
The four routes that counted a presentation's slides, thumbnails, svgs and
text files move under the removed routes of the bbb-web target, each with a
case that expects 404 and its reviewed recording.

Co-authored-by: Ramón Souza <[email protected]>
Slide URLs and tldraw page ids carry the page id, so the tests no longer
build them from the page number:

- Navigation checks that the slide url is /svg/<pageId>, changes, and comes
  back to the same url; a case with the focus on the whiteboard is added.
- The slide change and slide position tests read the page id of the target
  page from pres_page on the presenter's page, and match /svg/<pageId> and
  page:<pageId>.
- The snapshot of the current slide is taken on slide 2.
- The poll result stays on its slide: absent on the next one, back when
  returning.
- New page identity tests: annotations stay on their slide across a
  presentation switch, taking presenter then navigating and toggling the
  infinite whiteboard, removing a presentation while another user draws,
  and each slide keeping its own zoom.

Co-authored-by: Ramón Souza <[email protected]>
Converted page files are named by page id, so the bbb-web target names
them with {id}, read from pres_page with the page number.

Co-authored-by: Ramón Souza <[email protected]>
Recordings made with page ids carry pageIds in ConversionCompletedEvent and name pages by page id in GotoSlideEvent, ResizeAndMoveSlideEvent and the whiteboard events. Bump bbb_version so those recordings can be told apart from older ones.

Co-authored-by: Ramón Souza <[email protected]>
…and new recordings

BigBlueButton::Events.presentation_page_ids (was get_page_ids) now returns the pages of every presentation shown in the recording, for old and new recordings alike: the page ids of its ConversionCompletedEvent when the recording has them, otherwise the 1-based page numbers as strings, counted from the presentation files. Page ids are opaque strings, with no format check.

With that, the scripts key every slide by a string and need no separate path for each kind of recording:
- process iterates the presentations and pages from presentation_page_ids, replacing get_presentations and the page count;
- publish sets @version_atleast_4_1_0 with the other version flags and uses a single determine_slide_key for whiteboard events and GotoSlideEvent (pageNumber or slide before 4.1, whiteboardId or id since);
- SharePresentationEvent starts a presentation at its first page, and the slide image and text paths are built the same way for every recording;
- the preview takes the first three pages of the presentation.

Co-authored-by: Ramón Souza <[email protected]>
…ublished files

new-features lists the changes to events.xml in 4.1 (pageIds in ConversionCompletedEvent, page ids in GotoSlideEvent, ResizeAndMoveSlideEvent and the whiteboard events) and the new names of the presentation files of a recording. The recording development page describes the attributes of those events and adds AddTldrawShapeEvent and DeleteTldrawShapeEvent to the whiteboard events; the ConversionCompletedEvent row no longer lists share, which that event does not have.

Co-authored-by: Ramón Souza <[email protected]>

@kepstin kepstin left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recording processing code changes look good. I have a few minor suggested improvements to wording on a few code comments.

end

# Gathers the text from the slide
# Gathers the text from the slide; slide is the key of the page (see Events.presentation_page_ids)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment doesn't match the code, there is no "slide" variable.

BigBlueButton.logger.info('Created an updated metadata.xml with start_time and end_time')

version_atleast_2_6_0 = BigBlueButton::Events.bbb_version_compare(@doc, 2, 6, 0)
# The pages of each presentation, in page order; the files of a page are named by its key.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment wording is confusing.

Maybe something like this instead?

Suggested change
# The pages of each presentation, in page order; the files of a page are named by its key.
# List of slide filename keys for each presentation, in the original order.

# xml files as we go
last_timestamp = 0.0
events_xml = Nokogiri::XML(File.read("#{@process_dir}/events.xml"))
# The pages of each presentation, in page order (see BigBlueButton::Events.presentation_page_ids).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to say "see <functionname>" in the comment for code which just calls that function.

Probably best to make this comment match the equivalent comment in process/presentation.rb

@imdt-claudiop

imdt-claudiop commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks! All three comment-wording suggestions are applied in fa196a5 (single commit, no code changes):

  • record-and-playback/core/lib/recordandplayback/generators/presentation.rb (comment above get_text_from_slide): now reads "Gathers the text from a page; slide_num is the key of the page" - references the actual parameter and drops the cross-reference.
  • record-and-playback/presentation/scripts/process/presentation.rb: adopted your suggested wording, "List of slide filename keys for each presentation, in the original order."
  • record-and-playback/presentation/scripts/publish/presentation.rb: matched the same wording as process/presentation.rb, dropping the "see " reference.

@antobinary
antobinary merged commit 599c1d5 into bigbluebutton:v4.1.x-develop Nov 25, 2026
41 of 43 checks passed
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.

4 participants