Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Strapi 5 Media Library Gallery Contamination Bug Report #23176

Closed as not planned
Labels
flag: invalid templateAutomation Flag to handle invalid bug report templates
@TheOuen

Description

@TheOuen

Issue Description

  • When editing an collection in Strapi 5's admin panel, the draft version's gallery can become contaminated with images from other entries in collection. The published version remains correct, but the draft version accumulates additional unwanted images.
  • Steps to Reproduce
  • Edit collection entry A's gallery in Strapi admin
  • Navigate to collection entry A and edit its gallery
  • Return to collection A and view its draft version
  • Observe that collection A's draft version now contains images from collection entry B

Expected Behavior

  • When editing a collection's gallery, only the images explicitly selected for that collection should be saved, with no cross-contamination between entries.
  • Actual Behavior
  • The draft version of a collection item accumulates images from other collection items. This creates a significant discrepancy between published and draft versions.

Technical Details

  • When editing a gallery and switching between collection entries, Strapi 5 appears to maintain a state of previously selected media library items.
  • The contamination is linked to browser session state, as different image sets appear depending on browsing history.
  • The new Document System in Strapi 5 (which manages content variations like drafts and published states) is likely responsible, as this was introduced as a significant change from Strapi 4.

Verification

  • We confirmed contamination by:
  • Checking database records showing a significant discrepancy between published and draft versions (e.g., 15 images in published vs. 27 in draft).
  • Identifying specific contaminating images that belong to other collection entries.
  • Successfully cleaning contamination using direct database operations.
  • Observing the pattern repeats when editing even after cleanup.

Impact

  • This bug creates significant data integrity issues, as content editors may:
  • Accidentally publish drafts with incorrect images from other collections
  • Spend extra time manually identifying and removing contaminated images

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: invalid templateAutomation Flag to handle invalid bug report templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp