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

BUGFIX: Don’t load the same files twice in the static resource collection #3418

Open
wants to merge 1 commit into
base: 8.3
Choose a base branch
from

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Nov 20, 2024

The second pattern included a 99% subset of the first pattern except the files in the public folders themselves. Therefore all files in subfolders were loaded twice in the \Neos\Flow\ResourceManagement\Collection::getObjects method and afterwards also published twice.

In a medium sized project the first pattern loaded 1165 files and the second pattern 1155 which were all duplicates.

An additional change is required to deduplicate paths loaded in the Collection class to prevent further configuration regressions for cases like this.

Resolves: #3417

Review instructions

  • Delete the Web/_Resources/Static folder in a demo distribution
  • Run ./flow resource:publish --collection static
  • Reload the Neos backend and all the static resources like JS and CSS should still be there.

…tion

The second pattern included a 99% subset of the first pattern except the files in the public folders themselves.
Therefore all files in subfolders were loaded twice in the \Neos\Flow\ResourceManagement\Collection::getObjects method and aftterwards also published twice.

Resolves: #3417
Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable… did not test, though. 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants