[stable9.1] Integration test encryption homedir#26993
Conversation
|
I've run that failing test locally and it works fine. - With OC_TEST_ENCRYPTION_ENABLED=1. The problem happens when running with OC_TEST_ALT_HOME=1. |
|
#26920 should be backported first. To avoid that failure. |
|
And that PR requires #26865 also. |
4829120 to
0874ed3
Compare
|
I added the commits of #27003 here before the previous ones. Let's let Jenkins do the testing for hopefully better results. |
|
Ran the tests locally (but had to cherry-pick #27008):
So far, tests passed. |
ah - this is why I'm getting notifications about broken build 😉 |
|
Running with OC_TEST_ALT_HOME=1 there are two failures: build/integration/features/sharing-v1.feature:860 Our old friend the blinking merging shares tests: And "Creating a folder with special chars" |
|
For me locally all tests passed with OC_TEST_ALT_HOME=1. @SergioBertolinSG what's yours ? |
|
MySQL as well. |
|
And Jenkins only has a single failure: |
|
Consistency, where are thou ? |
|
I'm out of ideas and I can't debug this locally since it all works fine. @SergioBertolinSG can you debug the failures on your side, I suggest you start with the one that you have in common with Jenkins. Thanks. |
|
@PVince81 sure, I'm trying in a new environment to see if those errors happen again. |
|
Ok in my new environment all has passed correctly. 👍 (using OC_TEST_ALT_HOME=1) |
|
The remaining problem happens only using OC_TEST_ENCRYPTION_ENABLED=1 and it happens locally as well. |
|
The remaining error is also happening in master. So I guess it would be better to fix it in another PR for master and add the backport here. Running locally OC_TEST_ENCRYPTION_ENABLED=1 ./run.sh features/external-storage.feature It passes when the server is fresh installed. A second run makes it fail. |
|
Error logs: [Tue Jan 24 12:24:52 2017] fclose() expects parameter 1 to be resource, string given at /var/www/html/encryption_vincent/lib/private/Files/Storage/Wrapper/Encryption.php#749
[Tue Jan 24 12:24:52 2017] Exception: {"Message":"multikeydecrypt with share key failed:error:0E06D06C:configuration file routines:NCONF_get_string:no value","Exception":"OCA\\Encryption\\Exceptions\\MultiKeyDecryptException","Code":0,"Trace":"#0 \/var\/www\/html\/encryption_vincent\/apps\/encryption\/lib\/KeyManager.php(423): OCA\\Encryption\\Crypto\\Crypt->multiKeyDecrypt('\\x93\\t\\x8E\\xBA~\\xA4.\\x9D\\xCE2\\xFC\\x8A\\xF5G\\x97...', '\\xA1-\\xAC\\x12\\f\\xF6o\\x84\\xE9Z[Bh\\xC51...', '-----BEGIN PRIV...')\n#1 \/var\/www\/html\/encryption_vincent\/apps\/encryption\/lib\/Crypto\/Encryption.php(186): OCA\\Encryption\\KeyManager->getFileKey('\/user0\/files\/lo...', 'user0')\n#2 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Stream\/Encryption.php(257): OCA\\Encryption\\Crypto\\Encryption->begin('\/user0\/files\/lo...', 'user0', 'w', Array, Array)\n#3 [internal function]: OC\\Files\\Stream\\Encryption->stream_open('ocencryption:\/\/', 'w', 0, NULL)\n#4 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Stream\/Encryption.php(197): fopen('ocencryption:\/\/', 'w', false, Resource id #63)\n#5 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Stream\/Encryption.php(179): OC\\Files\\Stream\\Encryption::wrapSource(Resource id #62, Resource id #63, 'ocencryption', 'OC\\\\Files\\\\Stream...', 'w')\n#6 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(459): OC\\Files\\Stream\\Encryption::wrap(Resource id #62, 'foo\/textfile0.t...', '\/user0\/files\/lo...', Array, 'user0', Object(OCA\\Encryption\\Crypto\\Encryption), Object(OC\\Files\\Storage\\Local), Object(OC\\Files\\Storage\\Wrapper\\Encryption), Object(OC\\Encryption\\Util), Object(OC\\Encryption\\File), 'w', 0, 0, 0, true)\n#7 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(743): OC\\Files\\Storage\\Wrapper\\Encryption->fopen('foo\/textfile0.t...', 'w')\n#8 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(613): OC\\Files\\Storage\\Wrapper\\Encryption->copyBetweenStorage(Object(OCA\\Files_Trashbin\\Storage), 'files\/textfile0...', 'foo\/textfile0.t...', true, true)\n#9 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(568): OC\\Files\\Storage\\Wrapper\\Encryption->moveFromStorage(Object(OCA\\Files_Trashbin\\Storage), 'files\/textfile0...', 'foo\/textfile0.t...')\n#10 \/var\/www\/html\/encryption_vincent\/lib\/private\/Files\/View.php(789): OC\\Files\\Storage\\Wrapper\\Wrapper->moveFromStorage(Object(OCA\\Files_Trashbin\\Storage), 'files\/textfile0...', 'foo\/textfile0.t...')\n#11 \/var\/www\/html\/encryption_vincent\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php(262): OC\\Files\\View->rename('\/textfile0.txt', '\/local_storage\/...')\n#12 \/var\/www\/html\/encryption_vincent\/lib\/composer\/sabre\/dav\/lib\/DAV\/CorePlugin.php(642): OCA\\DAV\\Connector\\Sabre\\ObjectTree->move('textfile0.txt', 'local_storage\/f...')\n#13 [internal function]: Sabre\\DAV\\CorePlugin->httpMove(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#14 \/var\/www\/html\/encryption_vincent\/lib\/composer\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#15 \/var\/www\/html\/encryption_vincent\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:MOVE', Array)\n#16 \/var\/www\/html\/encryption_vincent\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#17 \/var\/www\/html\/encryption_vincent\/apps\/dav\/appinfo\/v1\/webdav.php(58): Sabre\\DAV\\Server->exec()\n#18 \/var\/www\/html\/encryption_vincent\/remote.php(164): require_once('\/var\/www\/html\/e...')\n#19 {main}","File":"\/var\/www\/html\/encryption_vincent\/apps\/encryption\/lib\/Crypto\/Crypt.php","Line":653,"User":"user0"}
[Tue Jan 24 12:24:52 2017] 127.0.0.1:37838 [500]: /remote.php/webdav/textfile0.txt
And User "user0" moved file "/textfile0.txt" to "/local_storage/foo/textfile0.txt" # FeatureContext::userMovedFile()
Server error response [url] http://localhost:8080/remote.php/webdav/textfile0.txt [status code] 500 [reason phrase] Internal Server Error (GuzzleHttp\Exception\ServerException) |
|
Let's investigate if the env is properly cleant up, maybe something remains between runs. |
|
Known issue with ext storages and encryption: deleting an ext storage leaves stray keys: #10371
|
|
Cherry-picked #27015, hopefully all will pass on Jenkins at least. |
|
I've run locally the remaining case using only encryption. All tests have passed. |
Added filter to disable some tests when encryption is enabled.
Because encryption leaves stray keys that sabotage subsequent runs. Needs to be fixed separately.
5a0a2f5 to
df6e2a5
Compare
|
and you've removed the "TEMP" commit now, thanks. Merging. |
|
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. |
Backport of #26844 to stable9.1
@DeepDiver1975 @SergioBertolinSG