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]: Set default expiration date (shareapiDefaultExpireDate) #33036

Closed
5 of 8 tasks
killerbees19 opened this issue Jun 27, 2022 · 1 comment
Closed
5 of 8 tasks

[Bug]: Set default expiration date (shareapiDefaultExpireDate) #33036

killerbees19 opened this issue Jun 27, 2022 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@killerbees19
Copy link

killerbees19 commented Jun 27, 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

Checkbox state will be saved, but it's new state isn't visible and extended config options (shareapiExpireAfterNDays & shareapiEnforceExpireDate) are hidden (or still shown) without an explicit page reload via F5 key.

Steps to reproduce

  1. Go to: Administration » Sharing
  2. Enable: Allow users to share via link and emails
  3. Toggle checkbox: Set default expiration date (shareapiDefaultExpireDate)

Expected behavior

Optical checkbox state should change and extended config options (Expire after <n> days / Enforce expiration date) should be visible or hidden.

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

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. 22.2.3 to 22.2.4)

Are you using the Nextcloud Server Encryption module?

No response

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": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.2.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mysql.utf8mb4": true,
        "maintenance": false,
        "default_phone_region": "AT",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_smtpmode": "sendmail",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "",
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "lost_password_link": "disabled",
        "auth.webauthn.enabled": false,
        "simpleSignUpLink.shown": false,
        "theme": "",
        "loglevel": 2,
        "app_install_overwrite": [
            "twofactor_gateway",
            "twofactor_admin",
            "files_texteditor"
        ],
        "defaultapp": "files"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - announcementcenter: 6.3.1
  - apporder: 0.15.0
  - bruteforcesettings: 2.4.0
  - calendar: 3.4.0
  - checksum: 1.1.4
  - cloud_federation_api: 1.7.0
  - cms_pico: 1.0.19
  - contacts: 4.1.1
  - contactsinteraction: 1.5.0
  - dashboard: 7.4.0
  - dav: 1.22.0
  - federatedfilesharing: 1.14.0
  - files: 1.19.0
  - files_external: 1.16.1
  - files_linkeditor: 1.1.10
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_texteditor: 2.14.0
  - files_videoplayer: 1.13.0
  - impersonate: 1.11.0
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - maps: 0.1.10
  - metadata: 0.16.0
  - nextcloud_announcements: 1.13.0
  - notes: 4.3.1
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - password_policy: 1.14.0
  - photos: 1.6.0
  - provisioning_api: 1.14.0
  - recommendations: 1.3.0
  - richdocuments: 6.1.0
  - richdocumentscode: 21.11.402
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - spreed: 14.0.2
  - tasks: 0.14.4
  - text: 3.5.1
  - theming: 1.15.0
  - timemanager: 0.3.1
  - twofactor_backupcodes: 1.13.0
  - twofactor_email: 2.5.0
  - twofactor_gateway: 0.19.0
  - twofactor_nextcloud_notification: 3.4.0
  - twofactor_totp: 6.4.0
  - updatenotification: 1.14.0
  - viewer: 1.8.0
  - workflowengine: 2.6.0
Disabled:
  - admin_audit
  - circles: 24.0.0
  - comments: 1.14.0
  - encryption
  - federation: 1.14.0
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - firstrunwizard: 2.13.0
  - privacy: 1.8.0
  - sharebymail: 1.14.0
  - support: 1.7.0
  - survey_client: 1.12.0
  - systemtags: 1.14.0
  - user_ldap
  - user_status: 1.4.0
  - weather_status: 1.4.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

(No relevant error messages in server logs and browser's developer console.)

Additional info

  • Client OS: Xubuntu 20.04
  • Browser: Firefox 101.0.1
@killerbees19 killerbees19 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 27, 2022
@Xavierando
Copy link
Contributor

Hi
same problem here. I found two identical input, deleting one of the two make thing work again

PVince81 added a commit that referenced this issue Sep 1, 2022
…on-date-(shareapiDefaultExpireDate)

#33036 [Bug]: Set default expiration date
szaimen added a commit that referenced this issue Sep 26, 2022
[stable24] #33036 [Bug]: Set default expiration date
@solracsf solracsf closed this as completed Oct 7, 2022
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

3 participants