-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from City-of-Helsinki/revert-27-UHF-10462
UHF-10533
- Loading branch information
Showing
5 changed files
with
20 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: HELfi azure file system | ||
type: module | ||
package: Custom | ||
core_version_requirement: ^9 || ^10 || ^11 | ||
core_version_requirement: ^10 || ^11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/core/modules/image/src/Controller/ImageStyleDownloadController.php b/core/modules/image/src/Controller/ImageStyleDownloadController.php | ||
index bfc5c985d8..18d513b97e 100644 | ||
--- a/core/modules/image/src/Controller/ImageStyleDownloadController.php | ||
+++ b/core/modules/image/src/Controller/ImageStyleDownloadController.php | ||
@@ -158,7 +158,9 @@ public function deliver(Request $request, $scheme, ImageStyleInterface $image_st | ||
$derivative_scheme = $this->streamWrapperManager->getScheme($derivative_uri); | ||
|
||
if ($required_derivative_scheme !== $derivative_scheme) { | ||
- throw new AccessDeniedHttpException("The scheme for this image doesn't match the scheme for the original image"); | ||
+ // Remove 10.3 security check. Hel.fi should only serve public files, so | ||
+ // this should be fine for use while we are working on a more permanent solution. | ||
+ $this->logger->info('Got %derivative_uri, expected scheme %required_scheme.', ['%derivative_uri' => $derivative_uri, '%required_scheme' => $required_derivative_scheme]); | ||
} | ||
|
||
if ($token_is_valid) { |
This file was deleted.
Oops, something went wrong.