[Bug]: Public share links are not properly created
⚠️ This issue respects the following points: ⚠️
- [x] This is a bug, not a question or a configuration/webserver/proxy issue.
- [x] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [x] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct.
Bug description
When I share a file or folder via the sharing menu in the nextcloud web UI, and I try to create a public link, I'm being presented this URL: https://my.nextcloud.domain/s/%7Btoken%7D So, instead of creating a proper token, I'm being presented a URL that just shows a variable.
Steps to reproduce
- Log into the web UI
- Select a file or folder and click the "Sharing Options" icon (little person icon with a plus)
- Click "Create public link"
Expected behavior
A functioning share URL should have been created.
Nextcloud Server version
32
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [x] 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": [
"my.nextcloud.domain"
],
"allow_local_remote_servers": true,
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/my.nextcloud.domain",
"dbtype": "mysql",
"version": "32.0.1.2",
"activity_expire_days": 14,
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "Europe\/Berlin",
"installed": true,
"maintenance": false,
"maintenance_window_start": 1,
"theme": "",
"loglevel": 2,
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"memcache.local": "\\OC\\Memcache\\APCu",
"updater.release.channel": "stable",
"htaccess.RewriteBase": "\/",
"enable_previews": true,
"mysql.utf8mb4": true,
"trashbin_retention_obligation": "30, 180",
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"app_install_overwrite": [
"groupquota",
"groupfolders"
],
"default_phone_region": "GB",
"mail_sendmailmode": "smtp",
"mail_smtpdebug": true
}
}
List of activated Apps
Enabled:
- activity: 5.0.0-dev.0
- admin_audit: 1.22.0
- announcementcenter: 7.2.2
- app_api: 32.0.0
- bookmarks: 16.0.0
- calendar: 6.0.2
- cloud_federation_api: 1.16.0
- comments: 1.22.0
- contacts: 8.0.4
- contactsinteraction: 1.13.1
- dashboard: 7.12.0
- dav: 1.34.2
- federatedfilesharing: 1.22.0
- federation: 1.22.0
- files: 2.4.0
- files_downloadlimit: 5.0.0-dev.0
- files_pdfviewer: 5.0.0-dev.0
- files_reminders: 1.5.0
- files_sharing: 1.24.0
- files_trashbin: 1.22.0
- files_versions: 1.25.0
- firstrunwizard: 5.0.0-dev.0
- forms: 5.2.2
- groupfolders: 20.1.2
- groupquota: 0.2.3
- impersonate: 3.0.0
- logreader: 5.0.0-dev.0
- lookup_server_connector: 1.20.0
- notes: 4.12.3
- notifications: 5.0.0-dev.0
- notify_push: 1.2.0
- oauth2: 1.20.0
- password_policy: 4.0.0-dev.0
- photos: 5.0.0-dev.1
- privacy: 4.0.0-dev.0
- profile: 1.1.0
- provisioning_api: 1.22.0
- quota_warning: 1.22.0
- recommendations: 5.0.0-dev.0
- related_resources: 3.0.0-dev.0
- richdocuments: 9.0.1
- serverinfo: 4.0.0-dev.0
- settings: 1.15.1
- sharebymail: 1.22.0
- spreed: 22.0.1
- support: 4.0.0-dev.0
- survey_client: 4.0.0-dev.0
- systemtags: 1.22.0
- theming: 2.7.0
- twofactor_backupcodes: 1.21.0
- twofactor_totp: 14.0.0
- updatenotification: 1.22.0
- user_status: 1.12.0
- viewer: 5.0.0-dev.0
- weather_status: 1.12.0
- webhook_listeners: 1.3.0
- workflowengine: 2.14.0
Disabled:
- appointments: 2.6.1 (installed 2.6.1)
- apporder: 0.15.0 (installed 0.15.0)
- bruteforcesettings: 5.0.0-dev.0 (installed 2.4.0)
- circles: 32.0.0 (installed 0.19.5)
- deck: 1.16.0 (installed 1.16.0)
- encryption: 2.20.0
- event_update_notification: 2.7.0 (installed 2.7.0)
- files_accesscontrol: 3.0.1 (installed 3.0.1)
- files_external: 1.24.0
- files_rightclick: 0.15.1 (installed 1.6.0)
- fulltextsearch: 32.0.0 (installed 32.0.0)
- imageconverter: 2.0.5 (installed 2.0.5)
- nextcloud_announcements: 4.0.0-dev.0 (installed 1.5.0)
- polls: 8.5.0 (installed 8.5.0)
- ransomware_protection: 1.14.0 (installed 1.14.0)
- social: 0.7.0 (installed 0.7.0)
- socialsharing_email: 3.3.0 (installed 3.3.0)
- suspicious_login: 10.0.0-dev.0
- talk_simple_poll: 1.3.1 (installed 1.3.1)
- tasks: 0.17.0 (installed 0.17.0)
- text: 6.0.1 (installed 2.0.0)
- twofactor_nextcloud_notification: 6.0.0-dev.0
- user_ldap: 1.23.0
- webapppassword: 25.8.0 (installed 25.8.0)
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
Additional info
No response
cc @nextcloud/server-frontend
I cannot reproduce this on stable 32.0.1
I just tried it again and took a look at my browsers developer consoles to see the response the server is sending.
So, I can see a POST request against https://my.nextcloud.domain/ocs/v2.php/apps/files_sharing/api/v1/shares with this payload:
{"path":"/Nextcloud.mp4","shareType":3,"expireDate":"","attributes":"[]"}
And I got this respons:
{"ocs":{"meta":{"status":"failure","statuscode":998,"message":"Invalid query, please check the syntax. API specifications are here: http:\/\/www.freedesktop.org\/wiki\/Specifications\/open-collaboration-services.\n","totalitems":"","itemsperpage":""},"data":[]}}
First I strongly recommend to uninstall files_rightclick app as this is unmaintained for Nextcloud as its included in the files app since Nextcloud 28.
What you could try is if this is caused by the cache and restart php-fpm
First I strongly recommend to uninstall
files_rightclickapp as this is unmaintained for Nextcloud as its included in the files app since Nextcloud 28.
The app was already disabled but now it's completely removed. I did try restarting php and clearing the cache.
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically locked because it has been closed for more than 14 days. As we do not monitor closed issues, we are locking this issue to prevent further comments from getting lost in the noise. Please open a new issue if you have a similar problem instead. For general discussions, please use our forum: https://help.nextcloud.com