Skip to content

Repair job to fix permissions for avatars#24898

Merged
PVince81 merged 3 commits intomasterfrom
avatar_repair
Jun 10, 2016
Merged

Repair job to fix permissions for avatars#24898
PVince81 merged 3 commits intomasterfrom
avatar_repair

Conversation

@rullzer
Copy link
Contributor

@rullzer rullzer commented May 30, 2016

Fixes #22978

On some older installations the permissions for the userRoot and the
avatars are not correct. This breaks since we now use the Node API in
the avatar code.

This repair job makes sure that the permissions are set correctly.

  • Unit tests added

CC: @PVince81 @nickvergessen @icewind1991 @blizzz

@karlitschek should be backported to 9.0 since that is where the issue originally happend.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @DeepDiver1975, @PVince81 and @nickvergessen to be potential reviewers

@rullzer rullzer force-pushed the avatar_repair branch 2 times, most recently from d6da6a7 to dbdaf56 Compare May 30, 2016 13:08
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nop

@karlitschek
Copy link
Contributor

Great fix. Makes sense to backport 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Column not found: 1054 Unknown column 'home::%' in 'where clause'

Needs to be a parameter in qb2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or see

$query->expr()->like(
'name',
$query->expr()->literal('%' . $this->connection->escapeLikeParameter($nameSearchPattern). '%')
)

@rullzer
Copy link
Contributor Author

rullzer commented Jun 1, 2016

All fixed. Review time!

@nickvergessen
Copy link
Contributor

Looks good, but lets wait for tests

@PVince81
Copy link
Contributor

PVince81 commented Jun 1, 2016

Guess which one failed ?

1) Test\Repair\AvatarPermissionsTest::testFixUserRootPermissions with data set #0 ('home::user', '', 0, 23)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["", 1049, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 2) Test\Repair\AvatarPermissionsTest::testFixUserRootPermissions with data set #1 ('home::user', 'foo', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["foo", 1050, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 3) Test\Repair\AvatarPermissionsTest::testFixUserRootPermissions with data set #2 ('home::user', 'avatar.jpg', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.jpg", 1051, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 4) Test\Repair\AvatarPermissionsTest::testFixUserRootPermissions with data set #3 ('ABC::user', '', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["", 1052, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 5) Test\Repair\AvatarPermissionsTest::testFixUserRootPermissions with data set #4 ('ABC::user', 'foo', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["foo", 1053, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:78
07:56:22 
07:56:22 6) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #0 ('home::user', '', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["", 1054, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 7) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #1 ('home::user', 'avatar.jpg', 0, 27)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.jpg", 1055, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 8) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #2 ('home::user', 'avatar.png', 0, 27)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.png", 1056, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 9) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #3 ('home::user', 'avatar.32.png', 0, 27)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.32.png", 1057, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 10) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #4 ('home::user', 'mine.txt', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["mine.txt", 1058, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 11) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #5 ('ABC::user', '', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["", 1059, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 12) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #6 ('ABC::user', 'avatar.jpg', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.jpg", 1060, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 13) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #7 ('ABC::user', 'avatar.png', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.png", 1061, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 14) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #8 ('ABC::user', 'avatar.32.png', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["avatar.32.png", 1062, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 15) Test\Repair\AvatarPermissionsTest::testFixAvatarPermissions with data set #9 ('ABC::user', 'mine.txt', 0, 0)
07:56:22 Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("path", "storage", "permissions") VALUES(?, ?, ?)' with params ["mine.txt", 1063, 0]:
07:56:22 
07:56:22 ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:68
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:116
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:996
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 
07:56:22 Caused by
07:56:22 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01400: cannot insert NULL into ("AUTOTEST"."oc_filecache"."path_hash")
07:56:22 
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:33
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:214
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:987
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/Connection.php:209
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php:208
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/lib/private/DB/QueryBuilder/QueryBuilder.php:141
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:155
07:56:22 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/tests/lib/Repair/AvatarPermissionsTest.php:110
07:56:22 

@rullzer
Copy link
Contributor Author

rullzer commented Jun 1, 2016

of course... man... oracle... will take care...

@rullzer
Copy link
Contributor Author

rullzer commented Jun 3, 2016

Ah right the platform stuff... yeah lets fix that indeed...

@rullzer
Copy link
Contributor Author

rullzer commented Jun 3, 2016

Ok now using platform...

@PVince81
Copy link
Contributor

PVince81 commented Jun 6, 2016

looks like pgsql had a hiccup 😦

@rullzer
Copy link
Contributor Author

rullzer commented Jun 6, 2016

Rebased...

@rullzer
Copy link
Contributor Author

rullzer commented Jun 8, 2016

Postgres is still having trouble... but is unrelated to this PR from my POV... final review time

->where($path)
->andWhere($qb2->expr()->in('storage', $qb2->createFunction($qb->getSQL())))
->andWhere($qb2->expr()->neq('permissions', $qb2->createNamedParameter(23)))
->setParameter('like', 'home::%');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ew, this will not work with LDAP and long storage IDs 😢

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need to use the Storage/Cache API to find the matching storage and adjust permissions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? ldap also has home::.... right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is some twisted logic in the storage id code: if the actual storage id string is bigger than the column width (64?) then it will convert it to the md5 of the storage id instead. With LDAP user ids it is more likely to happen.

See https://github.com/owncloud/core/wiki/Storage-IDs#random-numberstring

It has and is still a nightmare...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmpf, should have the same as with share:: that is keeping the prefix outside of the md5.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O that is nasty... I still propose to merge this and have a separate job that does the query magic...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

second job could search for "not starting with home::, local:: and shared::" and then only analyze those, but I agree, lets get this in and continue in a second PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A second job to fill in the gaps ? Ideally there should be only one job that does the work to its full extent. Because else later if a dev fixes a bug in one, they might forget the second one...

The sad part is that it requires iterating over users https://github.com/owncloud/core/blob/v9.0.2/lib/private/repair/repairlegacystorages.php#L214

Copy link
Contributor

@PVince81 PVince81 Jun 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, the piece that iterates over user should be added in this same job, not in a separate one.
In this case this PR is acceptable as a start.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough

@PVince81
Copy link
Contributor

@rullzer how to test ? I guess manually set the permissions wrong in the database ?

@rullzer
Copy link
Contributor Author

rullzer commented Jun 10, 2016

@PVince81 yes... the only way indeed... look at the test so see.

rullzer and others added 3 commits June 10, 2016 12:44
Fixes #22978

On some older installations the permissions for the userRoot and the
avatars are not correct. This breaks since we now use the Node API in
the avatar code.

This repair job makes sure that the permissions are set correctly.

* Unit tests added
@rullzer
Copy link
Contributor Author

rullzer commented Jun 10, 2016

Rebased so solve conflict

@PVince81
Copy link
Contributor

Tested, works 👍

I set the permissions to 0 on the user's storage root and also on the avatar files. The UI would not show them any more. Then I ran the upgrade (had to increase version.php) with this PR and the avatars were back.

@PVince81 PVince81 merged commit 21de838 into master Jun 10, 2016
@PVince81 PVince81 deleted the avatar_repair branch June 10, 2016 15:02
@PVince81
Copy link
Contributor

@rullzer please prepare the backport PR for 9.0

rullzer added a commit that referenced this pull request Jun 10, 2016
Backport of #24898

Cherry-picked:
1b66db7
6022528
28d9ad2

But manually since we renamed stuff and the repair procedures changed
@rullzer
Copy link
Contributor Author

rullzer commented Jun 10, 2016

Stable9 in #25068

DeepDiver1975 pushed a commit that referenced this pull request Jun 13, 2016
Backport of #24898

Cherry-picked:
1b66db7
6022528
28d9ad2

But manually since we renamed stuff and the repair procedures changed
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Avatar after upgrade from 8.2.3 to 9.0.0

7 participants