nextcloud / server

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

After reactivating disabled users there shared "public" folder isn't listed #40204

Open Npi4 opened 1 year ago

Npi4 commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

I just found a strange behavior on the server V 27.0.2:

Steps to reproduce

see above

Expected behavior

after reactivating a user the folder sharing options for the group should work again.

Installation method

None

Nextcloud Server version

27

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?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "1": "192.168.222.100",
            "2": "***REMOVED SENSITIVE VALUE***",
            "3": "nextcloudpi.fritz.box",
            "4": "***REMOVED SENSITIVE VALUE***",
            "5": "nextcloudpi.fritz.box",
            "6": "nextcloudpi",
            "7": "127.0.0.1",
            "8": "***REMOVED SENSITIVE VALUE***",
            "9": "***REMOVED SENSITIVE VALUE***",
            "12": "***REMOVED SENSITIVE VALUE***",
            "13": "***REMOVED SENSITIVE VALUE***",
            "14": "nextcloudpi.fritz.box",
            "20": "***REMOVED SENSITIVE VALUE***",
            "22": "***REMOVED SENSITIVE VALUE***",
            "11": "***REMOVED SENSITIVE VALUE***"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.0.2.1",
        "overwrite.cli.url": "https:\/\/nextcloudpi.fritz.box\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "1024",
        "preview_max_y": "1024",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "tempdirectory": "\/media\/USBstick\/nctmp",
        "logfile": "\/media\/USBdrive\/ncdata\/nextcloud.log",
        "loglevel": "2",
        "log_type": "file",
        "mail_sendmailmode": "smtp",
        "theme": "",
        "htaccess.RewriteBase": "\/",
        "auth.bruteforce.protection.enabled": true,
        "versions_retention_obligation": "auto, 7",
        "trashbin_retention_obligation": "auto, 7",
        "app_install_overwrite": [
            "previewgenerator",
            "transfer"
        ],
        "preview_max_memory": 512,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "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\\JPG",
            "OC\\Preview\\Movie"
        ],
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "data-fingerprint": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "stable"
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - calendar: 4.4.4
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.3.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_automatedtagging: 1.17.0
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - geoblocker: 0.5.11
  - login_notes: 1.2.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - news: 23.0.0
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - notify_push: 0.6.3
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - theming: 2.2.0
  - transfer: 0.6.1
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - bruteforcesettings: 2.7.0 (installed 2.2.0)
  - circles: 27.0.1 (installed 24.0.1)
  - encryption: 2.15.0
  - files_external: 1.19.0
  - nextcloudpi: 0.0.1 (installed 0.0.1)
  - previewgenerator: 99.99.99 (installed 99.99.99)
  - related_resources: 1.2.0 (installed 1.0.3)
  - suspicious_login: 5.0.0
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

clean

Additional info

No response

joshtrichards commented 1 year ago

Hi @Npi4 - Thanks for your report! Couple questions to make sure I understand the situation.

I assume the "public" share is owned by some permanent (never disabled) user, correct?

  • I had temporarily disabled some users.

The "public" folder remained visible and functioning for the other (still enabled) group members when these users were disabled, correct?

  • After reactivation of these users, the group's "public" folder sharing was no longer displayed.

The "public" folder only disappeared for all group members after the disabled users were enabled again, correct?

Npi4 commented 1 year ago

I assume the "public" share is owned by some permanent (never disabled) user, correct? I had temporarily disabled some users.

correct (owned by admin ncp)

The "public" folder remained visible and functioning for the other (still enabled) group members when these users were disabled, correct?

correct

After reactivation of these users, the group's "public" folder sharing was no longer displayed. The "public" folder only disappeared for all group members after the disabled users were enabled again, correct?

No, the folder only disappeared for the disabled users. The other (never disabled) users could see the shared folder. After reactivating the disabled users there shared "public" folder isn't listed again.