-
Notifications
You must be signed in to change notification settings - Fork 2.1k
extend share_external name column length to 255 #37835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: