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

fix loading legacy app.php with multi app dir #33270

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jul 18, 2022

Scenarion: two app dirs are configured in config.php, and in both dirs is a copy of a file, with different versions. The business logic should only load from the location with the highest version.

The issue in a screenshot:

Screenshot_20220718_200729

  • requireAppFile() only appends /appinfo/app.php
  • without the absolute path, require_once looks into include_path
  • the first match in inlcude_path however migth be different from appPath
  • fixed by providing the tested(!), full path to the app

contributes to fixing #8929

- requireAppFile() only appends /appinfo/app.php
- without the absolute path, require_once looks into include_path
- the first match in inlcude_path however migth be different from appPath
- fixed by providing the tested(!), full path to the app


Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

lgtm but did not test

@juliusknorr juliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 18, 2022
@blizzz
Copy link
Member Author

blizzz commented Jul 18, 2022

/backport to stable24

@blizzz
Copy link
Member Author

blizzz commented Jul 18, 2022

/backport to stable23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: apps management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants