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(settings): SetupChecks were broken for subdirectory installations #47949

Closed

Conversation

marcelklehr
Copy link
Member

Summary

The URL generator adds the subdir, but the getTestUrls method adds it as well, so we need to remove it once.

Checklist

@@ -44,7 +44,7 @@
$dataUrl = $this->urlGenerator->linkTo('', $dataDir . '/.ncdata');

$noResponse = true;
foreach ($this->runRequest('GET', $dataUrl, [ 'httpErrors' => false ]) as $response) {
foreach ($this->runRequest('GET', $dataUrl, [ 'httpErrors' => false ], removeWebroot: true) as $response) {

Check failure

Code scanning / Psalm

InvalidNamedArgument Error

Parameter $removeWebroot does not exist on function OCA\Settings\SetupChecks\DataDirectoryProtected::runRequest
@@ -51,7 +51,7 @@

foreach ($urls as [$verb,$url,$validStatuses]) {
$works = null;
foreach ($this->runRequest($verb, $url, ['httpErrors' => false]) as $response) {
foreach ($this->runRequest($verb, $url, ['httpErrors' => false], removeWebroot: true) as $response) {

Check failure

Code scanning / Psalm

InvalidNamedArgument Error

Parameter $removeWebroot does not exist on function OCA\Settings\SetupChecks\SecurityHeaders::runRequest
@marcelklehr
Copy link
Member Author

Ah, it's fixed already. Sorry for the noise.

@solracsf solracsf deleted the fix/setupchecks/webroot-subdir-installation branch September 14, 2024 09:01
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.

1 participant