Unable to share addressbook with a Nextcloud group that contains space
Describe the bug
Since recently (I haven't been able to bisect the issue), sharing an addressbook with a nextcloud group doesn't work.
To Reproduce Steps to reproduce the behavior:
- Share an addressbook with a Nextcloud Group
- Log to a member of the group (that is not the owner of the addressbook)
- See that the addressbook isn't available
Expected behavior
The addressbook should be available
Actual behavior
The addressbook isn't shared anymore
I have the same problem with NC 20, but only if my group name contains white space(s).
- Which NC version do you use?
- Did it work in NC 19 but with 20 it doesn't?
- Does your group name contain white spaces?
For me:
- Upgraded from 19.0.2 to 20.0.5 last week
- NC 19.0.2 worked as expected
- NC 20.0.5 shares for groups only work, if they don't contain white spaces
Hi,
NC 20.0.7
same Problem here. Group names that contains white space(s) not working to share with.
White Spaces show as %2b

Just test the new Version 20.0.8. Problem still exist.
Just test new Version 20.0.9 and 21.0.1 ... Problem still exist.
@tintou can you confirm that your Nc group does contain space?
@pierreozoux The NC Group indeed contains a space
It might also be a webserver issue, some doesn't really process the urlencode properly.
We use nginx, @tintou @chrissooo @k00ni what do you use?
But well, there are also these issues: https://github.com/nextcloud/server/issues/17610 https://github.com/nextcloud/server/issues/25165
Don't think it is all related to nginx.
Actually, I don't get why the gid in a group is not a real id, and if you agree that it is technical debt, why don't you plan a migration? (probably not the right place to discuss that, if there is a better one, I'm eager to understand) If you plan to use/dev Nc for the next 20years, what do you think ? :) I'm wondering if there is a good argument against migration.
@pierreozoux to whom is addressed your mast comment? :)
We have the same problem! It affects contact address book sharing. File sharing and calendar sharing works like expected.
Version: 20.0.8.
Same here. When you add several groups to share setting, they seem to be added properly. But only groups without any space in its name are really added. You can verify this simply by reloading the Contacts page with the admin account : every group containing space(s) are now missing.
Versions
- Nextcloud 22.2.3
- Contacts 4.0.6
NB : we had a similar issue with Calendar (#17610 & #25165) but we just updated to 2.4.0 and it is now solved.
Had the same problem here after a fresh install for some migration pre-tests NC: 24.0.2 Contacts: 4.1.1
There was a user group with spaces. Contacts App lost the group share of a address-book for this group on a page refresh. Spaces in the group name in the share panel showed as %2b. (I guess it should be %20) No problems on other apps.
Changing the group name by replacing the spaces with an underscore in the group name (in the admin back end) did not help. In the share panel of contacts they still showed with %2b (even after a waiting time of about 1 hr.). It looks like the database does not get updated on a change of the group name.
It worked after deleting the old group and creating a new one without any spaces. That is fine for me now that I know it.
Additional information: If you want to share with a single contact that has a space in its name, it correctly shows with %20 in the share panel.