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

Fixed searching for groups in the sharing sideview #1395

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

jngrb
Copy link
Contributor

@jngrb jngrb commented Mar 27, 2021

The result of FolderManager::getGroups and ::searchGroups are indexed
arrays. Thus, the data returned by the .../search?... route
are JSON Objects and not arrays.

The result of FolderManager::getGroups and ::searchGroups are indexed
arrays. Thus, the data returned by the .../search?... route
are JSON Objects and not array.

Signed-off-by: Jan Niklas Grieb (home) <jan.grieb@gmail.com>
@fschrempf fschrempf added the 3. to review Items that need to be reviewed label Mar 27, 2021
@fschrempf fschrempf added the feature: search Items related to the search label Mar 27, 2021
…xtcloud#633 nextcloud#1096

Filter for any non-existing group reference before returning GID and
displayname. This enables to continue editing the ACLs despite
outdated group references in the groupfolder's permissions.

Signed-off-by: Jan Niklas Grieb (home) <jan.grieb@gmail.com>
@jngrb
Copy link
Contributor Author

jngrb commented Mar 27, 2021

I added a second commit that avoids calling getGID() on null when searching for available groups, referring to issues #633 and #1096 .

This other fix is in the backend and filters for any non-existing group reference before returning GID and displayname. This enables to continue editing the ACLs despite outdated group references in the groupfolder's permissions.

If desirable, I could also split the frontend and backend fixes into two PRs.

@juliushaertl juliushaertl merged commit 6d6ffbe into nextcloud:master Apr 9, 2021
@juliushaertl
Copy link
Member

/backport to stable21

@juliushaertl
Copy link
Member

/backport to stable20

@juliushaertl
Copy link
Member

/backport to stable19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Items that need to be reviewed feature: search Items related to the search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants