You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the SFTP unit tests locally to verify something and noticed that the following fail on master:
1) Test\Files\Storage\SFTP::testHashInFileName
Failed asserting that false matches expected 'data'.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:395
2) Test\Files\Storage\SFTP::testRenameOverWriteDirectory
rename must return true on success
Failed asserting that false is true.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:460
@PVince81 Feel free to look into that. I've never run those and I think they've been broken for quite a while. These tests are pointless if they are not run on a regular basis.
Still happening on master / 8.2 rc1 which has an updated phpseclib:
1) Test\Files\Storage\SFTP::testHashInFileName
Failed asserting that false matches expected 'data'.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:422
2) Test\Files\Storage\SFTP::testRenameOverWriteDirectory
rename must return true on success
Failed asserting that false is true.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:487
Now I see that the upstream issue hasn't been fixed yet.
..............................................................PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 130968 bytes) in /srv/www/htdocs/owncloud/3rdparty/phpseclib/phpseclib/phpseclib/Crypt/Base.php on line 2899
Activity
bantu commentedon Oct 21, 2014
@PVince81 Feel free to look into that. I've never run those and I think they've been broken for quite a while. These tests are pointless if they are not run on a regular basis.
PVince81 commentedon Oct 21, 2014
I think the "Hash" in file name was introduced recently, so it might have discovered a bug.
LukasReschke commentedon Oct 22, 2014
March 31: 76c63a5
DeepDiver1975 commentedon Jun 1, 2015
We shall take care of this in 8.2
PVince81 commentedon Aug 17, 2015
@bantu does phpseclib support overwriting directories ? If it doesn't then we'd need to auto-delete the target dir first before calling rename.
PVince81 commentedon Aug 17, 2015
Raised the hash issue upstream: phpseclib/phpseclib#778
PVince81 commentedon Oct 7, 2015
Still happening on master / 8.2 rc1 which has an updated phpseclib:
Now I see that the upstream issue hasn't been fixed yet.
PVince81 commentedon Oct 13, 2015
The hash problem is not fixable (no workaround) due to upstream issue, needs to be fixed upstream first (see phpseclib/phpseclib#778)
I suggest moving to 9.0 and hope it will be fixed by then
PVince81 commentedon Feb 12, 2016
Fixing this requires a library update which is a bit risky past feature freeze. Moving to 9.1
PVince81 commentedon May 31, 2016
Reran the tests on master, yay!
PVince81 commentedon May 31, 2016
Something must be running in circles, I don't see why we have these memory errors now but didn't back then:
PVince81 commentedon Jul 1, 2016
After updating phpseclib with #21301 this is only one failing test left: "testRenameOverWriteDirectory"
PVince81 commentedon Jul 1, 2016
And the last piece of the puzzle: #25340
Once both PRs are merged, the SFTP tests will passed and can be put in CI @DeepDiver1975
Here are the PRs:
PVince81 commentedon Oct 4, 2016
All tests pass now on master!
lock commentedon Aug 3, 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.