Open
Description
Steps to reproduce
- create a file called
123456789012345678901234567890123456789012345678901234567890.txt
- share that file to a federated server
Expected behaviour
one of:
- sharing works correctly
- nice message shown that a shared file-name cannot have > 63 char
Actual behaviour
message shown:
Server error response [url] http://localhost/owncloud-core/ocs/v2.php/cloud/shares?format=json [status code] 500 [reason phrase] Internal Server Error
Server configuration
Operating system:
Ubuntu 18.04
Web server:
Apache2
Database:
MySQL
PHP version:
7.1
ownCloud version: (see ownCloud admin page)
10.0.10 RC4 (git)
Updated from an older ownCloud or fresh install:
fresh
Where did you install ownCloud from:
git
ownCloud log (data/owncloud.log)
{"reqId":"AtyF2aQFtNm1T7BatEll","level":3,"time":"2018-09-17T12:00:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"files_sharing","method":"POST","url":"\/owncloud-core\/ocs\/v2.php\/cloud\/shares?format=json","message":"server can not add remote share, An exception occurred while executing 'INSERT INTO `oc_share_external` (`remote`,`share_token`,`password`,`name`,`owner`,`user`,`mountpoint`,`mountpoint_hash`,`accepted`,`remote_id`) SELECT ?,?,?,?,?,?,?,?,?,? FROM `oc_share_external` WHERE `user` = ? AND `mountpoint_hash` = ? HAVING COUNT(*) = 0' with params [\"http:\\\/\\\/localhost\\\/owncloud-core\\\/\", \"d9O5FruD6NmqbIi\", \"\", \"\\\/123456789012345678901234567890123456789012345678901234567890.txt\", \"uu1\", \"admin\", \"{{TemporaryMountPointName#\\\/123456789012345678901234567890123456789012345678901234567890.txt}}\", \"5e1a7690067b7a69f2cfd1d6b1bd7c2e\", 0, 6, \"admin\", \"5e1a7690067b7a69f2cfd1d6b1bd7c2e\"]:\n\nSQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1"}
{"reqId":"7woFxaPCcCGGWd4PcyWV","level":3,"time":"2018-09-17T12:00:25+00:00","remoteAddr":"127.0.0.1","user":"uu1","app":"no app in context","method":"POST","url":"\/owncloud-core\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"Failed to notify remote server of federated share, removing share (Server error response [url] http:\/\/localhost\/owncloud-core\/ocs\/v2.php\/cloud\/shares?format=json [status code] 500 [reason phrase] Internal Server Error)"}