Skip to content

Conversation

@rotdrop
Copy link
Contributor

@rotdrop rotdrop commented Aug 22, 2023

A couple of updates

  • claim to support PHP >= 8, NC 25 - 27
  • clarify use of username column in README.md
  • properly log exceptions in DataQuery classs
  • implement ISearchableGroupBackend
  • fix use of disabled column (FIND_GROUP_USERS, BELONGS_TO_ADMIN)
  • use LEFT JOIN rather than selecting from multiple tables
  • fix the issue that the cache cannot store objects, just arrays
  • protect statement prepare with try-catch
  • allow delegation of admin settings

This PR supersedes my other PRs.

rotdrop added 14 commits August 22, 2023 12:59
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
… to avoid duplicates.

In particular when using the catch-all group ("Default Group" setting)
the queries which count and select users from the User-Group table need
the "DISTINCT" option: the catch-all group is replaced by a '%'
wild-card in the query. As users may belong by design to more than one
group counting and selecting users comes out wrong. Even worse: the many
duplicates interfere with the paging logic of the user admin-settings.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
…rom an array representation to the User-object.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
The code used union selects; left joins at least are easier to read. In
some places it was also not so clear that the WHERE part for the
disabled column really worked.

The query FIND_GROUP_USERS also needs to take the disabled column in to
account.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
… username column.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
@rotdrop rotdrop force-pushed the production/cafevdb/stable27 branch from c238516 to 2d83a88 Compare August 22, 2023 10:59
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
@rotdrop rotdrop force-pushed the production/cafevdb/stable27 branch from 22c01bb to 3cc3bf2 Compare August 22, 2023 13:59
@rotdrop rotdrop requested a review from mlojewski-me September 7, 2023 13:19
@pacohope
Copy link

Thanks for doing this. I'm not a developer on here, but I wanted to confirm that I'm running Nextcloud 27.1.1 with php8.2 on FreeBSD 13.2-RELEASE and I just installed the version referenced by this PR and it is working on my system. I mean, I know that's not much: it's just one dude saying "works on my machine". But hey, it works on my machine. Thanks for making the PR available!

@xylo
Copy link

xylo commented Nov 9, 2023

Any news on this PR?

@dregad
Copy link

dregad commented May 15, 2024

@rotdrop many thanks for this, you're a life saver !

And finally this got merged, but we still need to have a new version tagged... @mlojewski-me ?

@rotdrop rotdrop deleted the production/cafevdb/stable27 branch October 28, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants