extend share_external name column length to 255#37835
Conversation
de8bba8 to
ce58b99
Compare
|
@karakayasemi fails code-style https://drone.owncloud.com/owncloud/core/26430/2/6 |
|
Also I expect that you will need to bump the version in |
ce58b99 to
9614d64
Compare
|
@phil-davis Thank you for help, I fixed the code style problems. I already bumped the files_sharing app version. |
9614d64 to
84804dd
Compare
tests/acceptance/features/webUISharingExternal1/federationSharing.feature
Outdated
Show resolved
Hide resolved
84804dd to
b14c3aa
Compare
b14c3aa to
4d3f892
Compare
|
PR #37837 add acceptance test support ffor tags like I rebased and added the new skip tags. |
|
CI fails https://drone.owncloud.com/owncloud/core/26444/132/19 because the federated server is only running PR #37838 is fixing that so that the federated server will also run the code from the PR. |
| if ($schema->hasTable("${prefix}share_external")) { | ||
| $table = $schema->getTable("{$prefix}share_external"); | ||
| $nameColumn = $table->getColumn('name'); | ||
| if ($nameColumn && $nameColumn->getLength() !== 255) { |
There was a problem hiding this comment.
If this should match the filecache's name column, the current length is 250 (at least in my environment)
There was a problem hiding this comment.
You are right, but share provider adds '/' characters to the name before insterting share to the database. So, I intentionally selected the length as 255 to create buffer for this kind of situations.
4d3f892 to
f39c52a
Compare
I cherry-picked that fed-server CI |
|
codecov results have got "stuck". Actually this PR looks fine and all drone has passed. I will sort out merging it. |
f39c52a to
0367c41
Compare
Description
Extend share_external name column length to 255
Related Issue
Motivation and Context
oc_filecache allows filename up to 250 character, federated share file name should support same limits.
How Has This Been Tested?
Types of changes
Checklist: