Skip to content

Commit e70c5ef

Browse files
committed
B2B-2015: [AWS S3] [Integration Tests]: Investigate Test Failures in Framework
1 parent 9467552 commit e70c5ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/code/Magento/RemoteStorage/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getDirectoryRead($directoryCode, $driverCode = DriverPool::REMOT
8686
*/
8787
public function getDirectoryWrite($directoryCode, $driverCode = DriverPool::REMOTE)
8888
{
89-
$hasCode = $this->directoryCodes && in_array($directoryCode, $this->directoryCodes, true);
89+
$hasCode = !$this->directoryCodes || in_array($directoryCode, $this->directoryCodes, true);
9090

9191
if ($driverCode === DriverPool::REMOTE && $hasCode && $this->isEnabled) {
9292
$code = $directoryCode . '_' . $driverCode;

app/code/Magento/RemoteStorage/etc/di.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@
133133
<argument name="filesystem" xsi:type="object">fullRemoteFilesystem</argument>
134134
</arguments>
135135
</type>
136+
<type name="Magento\Framework\File\Uploader">
137+
<arguments>
138+
<argument name="filesystem" xsi:type="object">customRemoteFilesystem</argument>
139+
</arguments>
140+
</type>
136141
<type name="Magento\RemoteStorage\Model\Synchronizer">
137142
<arguments>
138143
<argument name="filesystem" xsi:type="object">customRemoteFilesystem</argument>

0 commit comments

Comments
 (0)