dotCMS / dotCMS/core

Binary Image Field does not show the Correct Image Preview

Open
#33,053 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Frontend stale Team : Maintenance Type : Defect
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

My content type has different types of binary/file/image fields that could have a preview when an image is loaded
In this case, when I load a binary and an image, publish contents, then reload the dialog. The binary field shows the incorrect preview. It shows the preview of the image, not the one that has really been loaded in it.

The binary field contents can be verified using the file info icon.

Steps to Reproduce

I have a content type that looks like this:

Image

It has a binary field, and it also has a file field and an image field

When I get to upload a binary and an image (using different files) then reload the dialog I get the wrong preview

Image

I'm including a Bundle that can be used to recreate the content type and a piece of content where the issue is visible

tori-magnus-01K36EAZCJPVFEGANM775SE7ZK.tar.gz

Acceptance Criteria

All fields should show their respective preview accurately

dotCMS Version

main

Proposed Objective

Customer Success

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by importing the attached Bundle and reproducing the content type with binary, file, and image fields. Reload the dialog after uploading different binary and image files, then compare each preview with the file info shown for the binary field. Done means every field displays the preview for its own uploaded content.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.