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

[stable30] fix(apps-store): Fix exception on generating preview url for installed app screenshot #49044

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Nov 1, 2024

Backport of PR #48912

claucambra and others added 2 commits November 1, 2024 14:48
…enshots

Some installed apps meant for older server versions might unexpectedly
offer up screenshot values in a non-string format (e.g. health). Avoid
an exception by checking first if the first app screenshot is indeed a
string and otherwise we take the value of the parameter

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
…rays

Signed-off-by: Joas Schilling <coding@schilljs.com>
$appScreenshot = $appScreenshot['@value'];
}

$app['screenshot'] = $this->createProxyPreviewUrl($appScreenshot);

Check notice

Code scanning / Psalm

PossiblyNullArgument Note

Argument 1 of OCA\Settings\Controller\AppSettingsController::createProxyPreviewUrl cannot be null, possibly null value provided
@joshtrichards
Copy link
Member

This should be merged before 30.0.2 final to avoid #49042

@joshtrichards joshtrichards added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 1, 2024
@Altahrim Altahrim mentioned this pull request Nov 4, 2024
5 tasks
@Altahrim Altahrim merged commit b1759e9 into stable30 Nov 4, 2024
170 of 171 checks passed
@Altahrim Altahrim deleted the backport/48912/stable30 branch November 4, 2024 20:33
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.

[Bug]: admin selects apps menu gets error message "An error occurred during the request. Unable to proceed."
5 participants