镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Bug]: SAML users without file access in 29.0.3rcX, 28.0.7rcX, 27.1.11rcX #46070

Closed

Description

@blizzz

⚠️ This issue respects the following points: ⚠️

Bug description

The regression was introduced with adding a second scope in the scope-mechanism. The related PR is #43942

We have a LockdownManager and it has a logic that double checks whether file access exists in: https://github.com/nextcloud/server/blob/master/lib/private/Lockdown/LockdownManager.php#L61-L64

It's conditions are:

  1. Either no scope is set
  2. Or filesystem is set in the scope

In the login logic, when auth succeed without a password, we set the SCOPE_SKIP_PASSWORD_VALIDATION only.

A quick workaround is to set the filesystem access there as well.

Steps to reproduce

  1. Login via user_saml
  2. Go to Files, but see no Files
  3. Trying to upload files fails

Expected behavior

Files are present and accessible

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 24, 2024
  2. changed the title [-][Bug]: SAML users without fileaccess in 29.0.3rcX, 28.0.7rcX, 27.1.11rcX[/-] [+][Bug]: SAML users without file access in 29.0.3rcX, 28.0.7rcX, 27.1.11rcX[/+] on Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap30-feedbackbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions