Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA-15380: Issue with customized preview and aliased user #18

Merged

Conversation

baptistegrimaud
Copy link
Collaborator

@baptistegrimaud baptistegrimaud commented Dec 13, 2024

https://jira.jahia.org/browse/QA-15380

Description

Fix an issue with customized preview for Javascript modules for content with virtual nodes.

The virtual nodes are correctly created (temporarily) in the session of the aliased user, however the rendering was performed with the current user, causing a ItemNotFoundException. The rendering now uses the aliased user if any, and fallback to the current user otherwise.

Tests

The following are included in this PR

  • Integration Tests

@baptistegrimaud baptistegrimaud requested a review from a team as a code owner December 13, 2024 15:46
@baptistegrimaud baptistegrimaud force-pushed the QA-15380-issue-with-customized-preview-and-aliased-user branch 2 times, most recently from 89a791d to 90d480f Compare December 13, 2024 15:55
@baptistegrimaud baptistegrimaud force-pushed the QA-15380-issue-with-customized-preview-and-aliased-user branch from 90d480f to 155d17d Compare December 13, 2024 22:04
@baptistegrimaud baptistegrimaud enabled auto-merge (squash) December 13, 2024 22:05
@baptistegrimaud baptistegrimaud merged commit 9c734a8 into main Dec 13, 2024
6 checks passed
@baptistegrimaud baptistegrimaud deleted the QA-15380-issue-with-customized-preview-and-aliased-user branch December 13, 2024 22:34
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.

2 participants