nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.38k stars 4.07k forks source link

[Bug]: Nextcloud does not execute openfile=true on new files in empty folder #47631

Closed sunetfreitag closed 1 month ago

sunetfreitag commented 2 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

When creating a new file (text or office document) in an empty folder, openfile=true is appended to the URL, but will not be opened. Reloading the URL then opens the file as expected.

Steps to reproduce

  1. Log on to Nextcloud
  2. Open files app
  3. Create empty folder
  4. Create new text file or office document

openfile=true is appended to the URL, but the document does not open automatically.

Expected behavior

The file automatically opens for editing.

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

{
    "system": {
        "app_install_overwrite": [
            "globalsiteselector"
        ],
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "appstoreenabled": false,
        "config_is_read_only": false,
        "csrf.disabled": true,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "davstorage.request_timeout": 86401,
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbport": "3306",
        "dbtableprefix": "oc_",
        "dbtype": "mysql",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "SE",
        "drive_email_template_text_left": "G\u00e5 till Sunet Drive",
        "drive_email_template_plain_text_left": "G\u00e5 till Sunet Drive",
        "drive_email_template_url_left": "https:\/\/drive.test.sunet.se\/",
        "filelocking.debug": true,
        "files_external_allow_create_new_local": false,
        "forcessl": true,
        "gs.enabled": "true",
        "gs.federation": "global",
        "gs.trustedHosts": [
            "*.sunet.se"
        ],
        "gss.discovery.manual.mapping.file": "\/var\/www\/html\/mappingfile.json",
        "gss.discovery.manual.mapping.parameter": "urn:oid:1.3.6.1.4.1.5923.1.1.1.6",
        "gss.discovery.manual.mapping.regex": true,
        "gss.jwt.key": "***REMOVED SENSITIVE VALUE***",
        "gss.master.admin": [
            "admin"
        ],
        "gss.master.url": "https:\/\/drive.test.sunet.se",
        "gss.mode": "slave",
        "gss.user.discovery.module": "\\OCA\\GlobalSiteSelector\\UserDiscoveryModules\\ManualUserMapping",
        "gss.username_format": "sanitize",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "integrity.check.disabled": true,
        "log_type": "file",
        "loglevel": 1,
        "lookup_server": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpsecure": "tls",
        "mail_template_class": "OCA\\DriveEmailTemplate\\EMailTemplate",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "mysql.utf8mb4": true,
        "objectstore": {
            "class": "\\OC\\Files\\ObjectStore\\S3",
            "arguments": {
                "bucket": "primary-sunet-drive-test.sunet.se",
                "key": "***REMOVED SENSITIVE VALUE***",
                "secret": "***REMOVED SENSITIVE VALUE***",
                "region": "us-east-1",
                "hostname": "***REMOVED SENSITIVE VALUE***",
                "port": "",
                "useMultipartCopy": false,
                "objectPrefix": "urn:oid:",
                "autocreate": false,
                "use_ssl": true,
                "use_path_style": true,
                "legacy_auth": false
            }
        },
        "overwrite.cli.url": "https:\/\/sunet.drive.test.sunet.se",
        "overwritehost": "sunet.drive.test.sunet.se",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "redis.cluster": {
            "failover_mode": 1,
            "password": "***REMOVED SENSITIVE VALUE***",
            "read_timeout": 0,
            "seeds": "***REMOVED SENSITIVE VALUE***",
            "timeout": 1.1
        },
        "secret": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "",
        "templatedirectory": "",
        "trusted_domains": [
            "localhost"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin",
            "forcemfa"
        ],
        "twofactor_enforced_excluded_groups": [],
        "updatechecker": false,
        "version": "29.0.4.2"
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - admin_audit: 1.19.0
  - announcementcenter: 6.8.1
  - assistant: 1.1.0
  - bruteforcesettings: 2.9.0
  - calendar: 4.7.15
  - checksum: 1.2.4
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - collectives: 2.13.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - dicomviewer: 2.1.2
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_accesscontrol: 1.19.1
  - files_automatedtagging: 1.19.0
  - files_confidential: 3.0.1
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_lock: 29.0.1
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - forms: 4.2.4
  - integration_jupyterhub: 0.1.2
  - integration_openai: 2.0.3
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - mail: 3.7.7
  - mfazones: 0.1.4
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - polls: 7.2.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - rds: 0.0.3
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - richdocuments: 8.4.4
  - security_guard: 2.0.1
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - stepupauth: 0.2.0
  - stt_helper: 1.1.1
  - support: 1.12.0
  - systemtags: 1.19.0
  - tasks: 0.16.0
  - text: 3.10.1
  - text2image_helper: 1.0.2
  - theming: 2.4.0
  - twofactor_admin: 4.5.0
  - twofactor_backupcodes: 1.18.0
  - twofactor_totp: 11.0.0-dev
  - twofactor_webauthn: 1.4.0
  - updatenotification: 1.19.1
  - user_saml: 6.2.0
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - drive_email_template: 0.1
  - edusign: 0.0.3 (installed 0.0.3)
  - encryption: 2.17.0
  - firstrunwizard: 2.18.0 (installed 2.18.0)
  - globalsiteselector: 2.5.1 (installed 2.5.1)
  - login_notes: 1.6.0
  - sciencemesh: 0.5.0 (installed 0.5.0)
  - survey_client: 1.17.0 (installed 1.14.0)
  - suspicious_login: 7.0.0
  - theming_customcss: 1.17.0
  - user_ldap: 1.20.0

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

Seems to be related to #45731 and it is unclear if this particular issue has been also fixed with nextcloud/viewer/pull/2368

solracsf commented 2 months ago

Duplicate of #47565 ?

joshtrichards commented 2 months ago

Seems to be related to https://github.com/nextcloud/server/issues/45731 and it is unclear if this particular issue has been also fixed with https://github.com/nextcloud/viewer/pull/2368

Yes, in 29.0.5, but you seem to be running 29.0.4:

    "version": "29.0.4.2"
skjnldsv commented 1 month ago

SHould be fixed in upcoming releases