Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Sep 7, 2022

In UserManager::createUser we check whether the instance is over limits (subscription or one-click-instance) and would refuse to add users. It works for local backends only. This PR offers a comfort method for assertion and makes the LDAP backend taking advantage of it.

@blizzz blizzz added the 2. developing Work in progress label Sep 7, 2022
@blizzz blizzz added this to the Nextcloud 25 milestone Sep 7, 2022
This was referenced Sep 7, 2022
@skjnldsv skjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 22, 2022
@blizzz
Copy link
Member Author

blizzz commented Oct 18, 2022

Downside of the current solution: With on-demand mapping, an end user may face an infinite spinner when trying to share a file, when a user would have to be mapped. The sharing frontend code does not handle well 500 results.

My idea now is to perhaps react on the request: throw the exception only when the request is done via provisioning api, otherwise just skip mapping.

- unbreaks functionality for end users when on demand mapping takes
  place

Signed-off-by: Arthur Schiwon <[email protected]>
- do not stack notifications, replace them
- and replace them once a day only
- with LDAP it might end in total spam terror (also push) otherwise

Signed-off-by: Arthur Schiwon <[email protected]>
@blizzz blizzz force-pushed the fix/noid/fair-use-ldap branch from 2fc503c to 7d3457e Compare October 18, 2022 21:36
@blizzz blizzz marked this pull request as ready for review October 18, 2022 21:37
@blizzz blizzz requested a review from nickvergessen October 18, 2022 21:37
@blizzz blizzz added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 18, 2022
@blizzz
Copy link
Member Author

blizzz commented Oct 18, 2022

/backport to stable25

@blizzz
Copy link
Member Author

blizzz commented Oct 18, 2022

/backport to stable24

Co-authored-by: Simon L. <[email protected]>
Signed-off-by: blizzz <[email protected]>
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 code looks fine

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@szaimen szaimen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 21, 2022
@szaimen
Copy link
Contributor

szaimen commented Oct 21, 2022

Can someone restart drone? Not sure if the failure is really related...

@PVince81
Copy link
Member

yeah, a bit weird:

    The Language column in Users Settings could not be found after 100 seconds (NoSuchElementException)

I've restarted the Drone builds

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

Labels

4. to release Ready to be released and/or waiting for tests to finish feature: ldap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants