Skip to content

Commit

Permalink
Test fix for proppatch
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Apr 23, 2020
1 parent 8bde5b2 commit 3534d51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/dav/lib/DAV/FileCustomPropertiesBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
use OCA\DAV\Connector\Sabre\Node;
use OC\Cache\CappedMemoryCache;
use Sabre\DAV\INode;
use Sabre\DAV\Xml\Property\Complex;

/**
* Class FileCustomPropertiesBackend
Expand Down Expand Up @@ -186,6 +187,12 @@ protected function updateProperties($path, INode $node, $changedProperties) {
);
}
} else {
// FIXME: PHP 7.4 handles object serialization differently so we store 'Object' here
// to keep old (wrong) behavior and fix Oracle failure
// see https://github.com/owncloud/core/issues/32670
if ($propertyValue instanceof Complex) {
$propertyValue = 'Object';
}
if (!$propertyExists) {
$this->connection->executeUpdate($insertStatement,
[
Expand Down

0 comments on commit 3534d51

Please sign in to comment.