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

[Bug]: Cannot open folders with spaces anymore (error 500) #32312

Closed
5 of 8 tasks
gitmgoe opened this issue May 9, 2022 · 10 comments
Closed
5 of 8 tasks

[Bug]: Cannot open folders with spaces anymore (error 500) #32312

gitmgoe opened this issue May 9, 2022 · 10 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@gitmgoe
Copy link

gitmgoe commented May 9, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

After upgrading from 23.0.4 to 24.0.0 it is not possible to open folders (files?) with spaces anymore

Steps to reproduce

  1. Maybe corresponding to [Bug]: impossible to open folder #32307
  2. Open folder "Documents" within Nextcloud UI
  3. Create a folder named "Test Test" in 23.0.4 or earlier
  4. Migrate to 24.0.0
  5. Folder "Documents" is not accessable anymore
  6. Error persists in iOS App or Web UI

Expected behavior

"Documents" should be opened and the folder "Test Test" should be shown

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{                                                                                                       
    "system": {                                                                                         
        "instanceid": "***REMOVED SENSITIVE VALUE***",                                                  
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",                                                
        "secret": "***REMOVED SENSITIVE VALUE***",                                                      
        "trusted_domains": [                                                                            
            "cloud.domain.com",                                                                        
            "www.domain.com"                                                                             
        ],                                                                                              
        "datadirectory": "***REMOVED SENSITIVE VALUE***",                                               
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",                                             
        "dbtype": "mysql",                                                                              
        "version": "24.0.0.12",                                                                         
        "logtimezone": "UTC",                                                                           
        "installed": true,                                                                              
        "theme": "",                                                                                    
        "enabledPreviewProviders": [                                                                    
            "OC\\Preview\\PDF",                                                                         
            "OC\\Preview\\MSOffice2003",                                                                
            "OC\\Preview\\MSOffice2007",                                                                
            "OC\\Preview\\JPEG",                                                                        
            "OC\\Preview\\PNG",                                                                         
            "OC\\Preview\\TXT",                                                                         
            "OC\\Preview\\GIF",                                                                         
            "OC\\Preview\\BMP",                                                                         
            "OC\\Preview\\XBitmap",                                                                     
            "OC\\Preview\\MarkDown",                                                                    
            "OC\\Preview\\MP3",                                                                         
            "OC\\Preview\\OpenDocument",                                                                
            "OC\\Preview\\SVG",                                                                         
            "OC\\Preview\\TIFF",                                                                        
            "OC\\Preview\\MSOfficeDoc",                                                                 
            "OC\\Preview\\Movie"                                                                        
        ],                                                                                              
        "loglevel": 3,                                                                                  
        "maintenance": false,                                                                           
        "dbname": "***REMOVED SENSITIVE VALUE***",                                                      
        "dbhost": "***REMOVED SENSITIVE VALUE***",                                                      
        "dbuser": "***REMOVED SENSITIVE VALUE***",                                                      
        "dbpassword": "***REMOVED SENSITIVE VALUE***",                                                  
        "memcache.locking": "OC\\Memcache\\Redis",                                                      
        "redis": {                                                                                      
            "host": "***REMOVED SENSITIVE VALUE***",                                                    
            "port": 6379                                                                                
        },                                                                                              
        "memcache.local": "\\OC\\Memcache\\Memcached",                                                  
        "app_install_overwrite": [                                                                      
            "fulltextsearch",                                                                           
            "files_fulltextsearch_tesseract",                                                           
            "files_frommail"                                                                            
        ],                                                                                              
        "mysql.utf8mb4": true,                                                                          
        "updater.release.channel": "stable",                                                            
        "mail_smtpmode": "smtp",                                                                        
        "mail_smtpsecure": "tls",                                                                       
        "mail_sendmailmode": "smtp",                                                                    
        "mail_smtpauthtype": "LOGIN",                                                                   
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",                                           
        "mail_domain": "***REMOVED SENSITIVE VALUE***",                                                 
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",                                               
        "mail_smtpport": "587",                                                                         
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",                                               
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",                                           
        "defaultapp": "files",                                                                          
        "default_phone_region": "xx"                                                                    
    }                                                                                                   
}

List of activated Apps

Enabled:                                                                                                
  - accessibility: 1.10.0                                                                               
  - activity: 2.16.0                                                                                    
  - bruteforcesettings: 2.4.0                                                                           
  - circles: 24.0.0                                                                                     
  - cloud_federation_api: 1.7.0                                                                         
  - comments: 1.14.0                                                                                    
  - contacts: 4.1.0                                                                                     
  - contactsinteraction: 1.5.0                                                                          
  - dashboard: 7.4.0                                                                                    
  - dav: 1.22.0                                                                                         
  - federatedfilesharing: 1.14.0                                                                        
  - federation: 1.14.0                                                                                  
  - files: 1.19.0                                                                                       
  - files_external: 1.16.1                                                                              
  - files_pdfviewer: 2.5.0                                                                              
  - files_rightclick: 1.3.0                                                                             
  - files_sharing: 1.16.2                                                                               
  - files_trashbin: 1.14.0                                                                              
  - files_versions: 1.17.0                                                                              
  - files_videoplayer: 1.13.0                                                                           
  - firstrunwizard: 2.13.0                                                                              
  - logreader: 2.9.0                                                                                    
  - lookup_server_connector: 1.12.0                                                                     
  - nextcloud_announcements: 1.13.0                                                                     
  - notifications: 2.12.0                                                                               
  - oauth2: 1.12.0                                                                                      
  - password_policy: 1.14.0                                                                             
  - photos: 1.6.0                                                                                       
  - previewgenerator: 4.0.0                                                                             
  - privacy: 1.8.0                                                                                      
  - provisioning_api: 1.14.0                                                                            
  - recommendations: 1.3.0                                                                              
  - serverinfo: 1.14.0                                                                                  
  - settings: 1.6.0                                                                                     
  - sharebymail: 1.14.0                                                                                 
  - support: 1.7.0                                                                                      
  - survey_client: 1.12.0                                                                               
  - systemtags: 1.14.0                                                                                  
  - text: 3.5.1                                                                                         
  - theming: 1.15.0                                                                                     
  - twofactor_backupcodes: 1.13.0                                                                       
  - updatenotification: 1.14.0                                                                          
  - user_status: 1.4.0                                                                                  
  - viewer: 1.8.0                                                                                       
  - weather_status: 1.4.0                                                                               
  - workflowengine: 2.6.0                                                                               
Disabled:                                                                                               
  - admin_audit                                                                                         
  - encryption                                                                                          
  - external: 3.7.3                                                                                     
  - files_fulltextsearch: 20.0.4                                                                        
  - files_fulltextsearch_tesseract: 20.0.1                                                              
  - fulltextsearch: 20.0.2                                                                              
  - fulltextsearch_elasticsearch: 20.0.2                                                                
  - user_ldap

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"Qk6QzTb0uhiplofig95v","level":4,"time":"2022-05-09T14:25:39+00:00","remoteAddr":"147.161.171.117","user":"user","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/user/Test/Space","message":"Error 33 interacting with memcached : A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32","version":"24.0.0.12","exception":{"Exception":"Exception","Message":"Error 33 interacting with memcached : A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE","Code":0,"Trace":[{"file":"/var/www/clients/client2/web24/web/lib/private/Memcache/Memcached.php","line":123,"function":"verifyReturnCode","class":"OC\\Memcache\\Memcached","type":"->"},{"file":"/var/www/clients/client2/web24/web/lib/private/legacy/OC_Helper.php","line":599,"function":"set","class":"OC\\Memcache\\Memcached","type":"->"},{"file":"/var/www/clients/client2/web24/web/apps/dav/lib/Connector/Sabre/Director.php","line":341,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":765,"function":"getQuotaInfo","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":95,"function":"Sabre\\DAV\\{closure}","class":"Sabre\\DAV\\CorePlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":769,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"propFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdpartysabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/apps/dav/lib/Server.php","line":352,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/clients/client2/web24/web/remote.php","line":166,"args":["/var/www/clients/client2/web24/web/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/clients/client2/web24/web/lib/private/Memcache/Memcached.php","Line":212,"CustomMessage":"--"}}

Additional info

No response

@gitmgoe gitmgoe added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 9, 2022
@solracsf
Copy link
Member

solracsf commented May 9, 2022

Can you see if you get same Browser Console error than #32286 ('Additional Info' section) ?

@gitmgoe
Copy link
Author

gitmgoe commented May 9, 2022

In Edge and Safari I just receive a message that the folder is unavailable. If I open a folder containing another folder with a space character, the iOS app tells me „No files here“ even if there are folders and/or files stored without spaces.

@gitmgoe
Copy link
Author

gitmgoe commented May 9, 2022

No, I don’t receive any error message like shown in the other bug-# you are referring to

@solracsf
Copy link
Member

solracsf commented May 9, 2022

What do you get in your browser console?

@gitmgoe
Copy link
Author

gitmgoe commented May 10, 2022


client.js:270
PROPFIND https://domain.com/remote.php/dav/files/user/Test/Space 500 (Internal Server Error)
  request @ client.js:270
  propFind @ client.js:92
  getFolderContents @ client.js:523
  reload @ merged-index.js?v=8875220e-8:6266
  changeDirectory @ merged-index.js?v=8875220e-8:6120
  actionHandler @ merged-index.js?v=8875220e-8:3625
  action @ merged-index.js?v=8875220e-8:3040
  _onClickFile @ merged-index.js?v=8875220e-8:4974
  ge @ _executeBound.js:8
  (anonym) @ bind.js:10
  (anonym) @ restArguments.js:16
  dispatch @ jquery.js:5430
  f.handle @ jquery.js:5234

@solracsf solracsf changed the title [Bug]: Cannot open folders with spaces anymore [Bug]: Cannot open folders with spaces anymore (error 500) May 10, 2022
@Anarch157a
Copy link

Apparently itś something to do with Memcache protocol. Switching to Binary protocol solved this issue for me. I found the solution on an old (2017) Owncloud bug (https://github.com/owncloud/core/blob/stable9.1/config/config.sample.php#L947-L968).

I added

  'memcached_options' => array(
    // Enable Binary Protocol
    \Memcached::OPT_BINARY_PROTOCOL =>      true,
  ),  

to config.php and it fixed the problem

@gitmgoe
Copy link
Author

gitmgoe commented May 12, 2022

Thanks. Those changed worked for me like a charm

@skjnldsv
Copy link
Member

Seems like this is the fix #32312 (comment)
Closing 🚀

@Mer0me
Copy link

Mer0me commented May 13, 2022

When I add those lines to config.php , I get an internal server error.
I've tried to add quotes around field name and value, it solves the internal server error but not the folder opening bug.

What am I doing wrong ?

I'm using Redis cache.

@Nitrama
Copy link

Nitrama commented May 17, 2022

When I add those lines to config.php , I get an internal server error. I've tried to add quotes around field name and value, it solves the internal server error but not the folder opening bug.

What am I doing wrong ?

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

7 participants