-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP5, 7.2.10.2 DXP SP2, 7.2.X, 7.3.0 CE GA1, 7.3.1 CE GA2, 7.3.2 CE GA3, 7.3.10 DXP GA1, Master
-
Component/s: Item Selector
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Issue
After the used image is updated with a new image, the Image fragment will still render the old image instead.
Steps to reproduce
- Setup Liferay DXP 7.2 + FixPack 3
- Star Liferay
- Navigate to Content & Data > Documents and Media
- Add a any image
- Navigate to Site Builder > Pages
- Add a Content Page
- Navigate to content page added in step 6
- Add a "Image" basic component to the page
- Double click the image component and select "Image Properties"
- Select the image added in step 4
- Inspect the element with browser's developer feature
Actual result
src tag includes the version. The latest version of the image will not be displayed.
Expected result
src tag does not include the version. The latest version of the image will always be displayed.
Background
It is possible to edit images in Document and Media and each will have its own version.
If using version-agnostic URL, the latest version will be rendered.
If a version is specified, the proper version will be displayed
Current behavior
With Web Content (structure with image field) or AP, the version is not included.
When using the "Image" fragment in a Content Page, it's src property will include the version.