Skip to content

PDF Comments can not be saved if path containes a # #1102

Open
@Serophos

Description

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Upload PDF to a folder starting or containing the special character #
  2. Open PDF in Viewer
  3. Create a comment
  4. Save results in error "File upload failed"

Expected behaviour

Comments should be saved in PDF

Actual behaviour

Save results in error "File upload failed"

Server configuration

Web server: Nginx

Database: Maria

PHP version: 8.2

Nextcloud version: 30.0.2

Installed Apps - activity: 3.0.0 - admin_audit: 1.20.0 - announcementcenter: 7.0.1 - assistant: 2.1.1 - bruteforcesettings: 3.0.0 - calendar: 5.0.6 - circles: 30.0.0 - cloud_federation_api: 1.13.0 - comments: 1.20.1 - contacts: 6.1.1 - contactsinteraction: 1.11.0 - dashboard: 7.10.0 - dav: 1.31.1 - deck: 1.14.2 - external: 5.5.2 - federatedfilesharing: 1.20.0 - federation: 1.20.0 - files: 2.2.0 - files_downloadlimit: 3.0.0 - files_markdown: 2.4.1 - files_pdfviewer: 3.0.0 - files_reminders: 1.3.0 - files_sharing: 1.22.0 - files_trashbin: 1.20.1 - files_versions: 1.23.0 - firstrunwizard: 3.0.0 - forms: 4.3.4 - groupfolders: 18.0.6 - impersonate: 1.17.0 - integration_openai: 3.2.0 - integration_replicate: 4.0.1 - keeweb: 0.6.20 - login_notes: 1.6.1 - logreader: 3.0.0 - lookup_server_connector: 1.18.0 - notes: 4.11.0 - notifications: 3.0.0 - oauth2: 1.18.1 - ownershiptransfer: 1.0.1 - password_policy: 2.0.0 - photos: 3.0.2 - polls: 7.2.5 - previewgenerator: 5.7.0 - privacy: 2.0.0 - provisioning_api: 1.20.0 - ransomware_protection: 1.14.0 - recommendations: 3.0.0 - related_resources: 1.5.0 - richdocuments: 8.5.2 - serverinfo: 2.0.0 - settings: 1.13.0 - sharebymail: 1.20.0 - spreed: 20.1.0 - systemtags: 1.20.0 - text: 4.1.0 - theming: 2.5.0 - twofactor_backupcodes: 1.19.0 - twofactor_totp: 12.0.0-dev - updatenotification: 1.20.0 - user_ldap: 1.21.0 - user_status: 1.10.0 - viewer: 3.0.0 - weather_status: 1.10.0 - webhook_listeners: 1.1.0-dev - welcome: 1.2.0 - whiteboard: 1.0.4 - workflowengine: 2.12.0 Disabled: - app_api: 4.0.0 (installed 4.0.0) - encryption: 2.18.0 - files_external: 1.22.0 - multiboards: 1.0.4 (installed 1.0.4) - nextcloud_announcements: 2.0.0 (installed 1.13.0) - support: 2.0.0 (installed 1.5.0) - survey_client: 2.0.0 (installed 1.10.0) - suspicious_login: 8.0.0 - twofactor_nextcloud_notification: 4.0.0 - user_saml: 6.3.0 (installed 6.3.0)
Nextcloud configuration

{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"REMOVED SENSITIVE VALUE"
],
"trusted_proxies": "REMOVED SENSITIVE VALUE",
"overwritehost": "REMOVED SENSITIVE VALUE",
"overwriteprotocol": "https",
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "mysql",
"version": "30.0.2.2",
"overwrite.cli.url": "https://REMOVED SENSITIVE VALUE,
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"app_install_overwrite": [
"whiteboard",
"mindmap_app",
"deck",
"richdocuments",
"camerarawpreviews",
"extract",
"files_markdown",
"ransomware_protection"
],
"default_phone_region": "DE",
"skeletondirectory": "/opt/nextcloud/web/core/skeleton_REMOVED SENSITIVE VALUE",
"filelocking.enabled": "true",
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.local": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 6379
},
"enable_previews": true,
"enabledPreviewProviders": [
"OC\Preview\Movie",
"OC\Preview\PNG",
"OC\Preview\JPEG",
"OC\Preview\GIF",
"OC\Preview\BMP",
"OC\Preview\XBitmap",
"OC\Preview\MP3",
"OC\Preview\MP4",
"OC\Preview\TXT",
"OC\Preview\MarkDown",
"OC\Preview\PDF"
],
"maintenance": false,
"maintenance_window_start": 1,
"mysql.utf8mb4": true,
"default_language": "de_DE",
"default_local": "de_DE",
"defaultapp": "dashboard",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "465",
"mail_smtpsecure": "ssl",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"theme": "",
"loglevel": 2,
"ldapProviderFactory": "OCA\User_LDAP\LDAPProviderFactory"
}
}

Browser

Browser name: Google Chrome

Browser version: 129.0.6668.90

Operating system: Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions