Issue
- The fragment images that are present in the folder of the Resource tab are not visible to the guest user; however, they are visible only to an admin user.
-
Steps to reproduce:
1. Create a user.
2. Navigate to Site Menu→ Design→ Fragments, create a new collection→Resource Tab, create a folder, and add an image in that folder.
3. After that, navigate to the Fragments Tab, create a fragment, and add the below sample code present in the Fragment Set Structure with Resources:
In HTML:<div class="fragment_1"> <div class="card"></div> <img class="card-img-top" src="[resources:Folder/image]" /> <div class ="card-body"> <h5 class="card-title" data-lfr-editable-id="01-title" data-lfr-editable-type="rich-text" > </h5></div> </div>
In CSS:
.fragment_1 { max-width:100%; }.fragment_1 .card img{ display: block; height: 300px; margin-left: auto; margin-right:auto; width:auto; }
4. Navigate to the Site Builder, create a new page, and add the created fragment to the new page.
5. Now, log out of the admin user and click on the page that was created. - Expected Behavior: Images should be visible to the guest user.
- Observed Behavior: Images are not visible to guest users.
Environment
- Liferay DXP 2024.Q2.6
Resolution
- The observed behavior is a known bug that has been addressed by: LPD-31078.
- If a hotfix is required for this issue, please create a support ticket requesting a hotfix by attaching patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install this hotfix in the respective environment.
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン