Skip to content
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

Path length in database needs to be higher #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OliverParoczai
Copy link

Some of the users on my server had used paths longer than 191 characters, and this breaks the cache rebuild process.

Server output:

Server# sudo -u www-data php occ carnet:cache rebuild
list of user files
/username/files/Documents/QuickNote/companyname/Á###á####/#######ó á###á######/500- 700 #á#á### #####é# 6 ##á###é#. #ö###á# #6 #7 ##########á# #ö#######á#. #ő#### #######é## 800 1000 ####### ####á## ##á##ő##é# ####á# .sqd (the problematic file, private information blanked out)

In ExceptionConverter.php line 114:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'path' at row 1

In Exception.php line 26:
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'path' at row 1

In Statement.php line 82:
[22001]: String data, right truncated: 1406 Data too long for column 'path' at row 1

@PhieF
Copy link
Collaborator

PhieF commented Jan 23, 2022

I had a problem with some SQL version when puttin a longer path, I will need to study this a bit before mergin, sorry for being that late

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants