owncloud / smashbox

:collision: main test suite
GNU Affero General Public License v3.0
16 stars 6 forks source link

test_filenames.py fails #166

Closed thack1 closed 6 years ago

thack1 commented 7 years ago

I'm using ownCloud 10.0.3 (stable) and try to run the tests. It fails with the following error:

bin/smash lib/test_filenames.py SUMMARY:smash.:runid: 170921-084641 SUMMARY:smash.:URL: http://test:***@127.0.0.1/owncloud/remote.php/webdav/ SUMMARY:smash.:Running iteration 1 SUMMARY:smash.:running lib/test_filenames.py in smashbox/results/test_filenames as test default 2017-09-21 08:47:23,725 - WARNING - creator - Non-zero exit code 1 from command '/usr/bin/owncloudcmd --trust smashbox/results/test_filenames/creator/ owncloud://test:****@127.0.0.1/owncloud/remote.php/webdav/ >> smashbox/results/test_filenames/creator-ocsync.step01.cnt001.log 2>&1' 2017-09-21 08:47:49,070 - ERROR - propagator - the file has not been propagated: ' ' error_check(False, "the file has not been propagated: %s"%repr(fn)) failed in propagator() ["smashbox/lib/test_filenames.py" at line 157] 2017-09-21 08:47:50,275 - ERROR - propagator - 1 error(s) reported SUMMARY:smash.:Elapsed time: 69s (0:01:09.228197) CRITICAL:smash.:Aborting run -- non-zero exit code (2)

In the log file i found the following: void OCC::PropagateUploadFileV1::slotPutFinished() QUrl("http://test@127.0.0.1/owncloud/remote.php/webdav/ ") FINISHED WITH STATUS QNetworkReply::NetworkError(ProtocolInvalidOperationError) "Error transferring http://test:****@127.0.0.1/owncloud/remote.php/webdav/ - server replied: Bad Request" QVariant(int, 400) QVariant(QString, "Bad Request") "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\" xmlns:o=\"http://owncloud.org/ns\">\n <s:exception>OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath</s:exception>\n <s:message>Empty filename is not allowed</s:message>\n <o:retry xmlns:o=\"o:\">false</o:retry>\n <o:reason xmlns:o=\"o:\">Empty filename is not allowed</o:reason>\n</d:error>\n" set blacklist entry for " " 1 "Error transferring http://test:test@127.0.0.1/owncloud/remote.php/webdav/ - server replied: Bad Request (Empty filename is not allowed)" 1505917261 25 1505917260 "" "" void OCC::SyncEngine::slotItemCompleted(const SyncFileItemPtr&) " " INSTRUCTION_NEW 2 "Error transferring http://test:test@127.0.0.1/owncloud/remote.php/webdav/ - server replied: Bad Request (Empty filename is not allowed)"