Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,955
Community Members
 
Community Events
184
Community Groups

How to handle group names with spaces?

DI2E Licensing
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 09, 2017

https://confluence.atlassian.com/crowd/integrating-crowd-with-subversion-104824970.html says that we should enumerate required groups in the svn config file like so:

[groups]
developers=

However, how can we use group names that contain a space character?  When using:

[groups]
atlassian sysadmin=

The generate-authz-svn-access-file.py runs without complaining but does not enumerate the members of that group.

When using:

[groups]
atlassian+sysadmin=

The generate-authz-svn-access-file.py generates an error when trying to enumerate the members of that group.  It seems to encode the plus sign which the crowd API does not like.

Failed to fetch https://my.crowd.com/crowd/rest/usermanagement/1/group/user/nested?groupname=atlassian%2Bsysadmin: {'status': '404', 'x-embedded-crowd-version': 'Crowd/2.10.1', 'x-asen': 'SEN-5815732', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'set-cookie': 'JSESSIONID=30797E388B5AE42A978484565933B3CE; Path=/crowd/; Secure; HttpOnly', 'strict-transport-security': 'max-age=604800; includeSubdomains, max-age=604800; includeSubdomains', 'vary': 'Accept-Encoding, Accept-Encoding', 'content-length': '82', 'server': 'nginx', 'x-crowd-user-management-version': '1.4', 'connection': 'keep-alive', '-content-encoding': 'gzip', 'date': 'Thu, 09 Feb 2017 12:08:30 GMT', 'content-type': 'application/json'}

Using:

[groups]
atlassian\+sysadmin=

provides no better results (encoding both the backslash and plus sign).

Crowd is configured to lowercase all users/groups for this application.

2 answers

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 11, 2022 • edited Apr 28, 2023

Hi @DI2E Licensing ,

unfortunately, you can't create a crowd group with spaces in the name

I dug into the code to discover the problem.  It passes over groupnames with internal spaces.  I wrote a patch and pull request to update the behavior to allow spaces within a group name.

https://bitbucket.org/atlassian/cwdapache/pull-requests/24/allow-group-names-with-spaces-encode-the/diff

I opened this ticket on the support site: https://support.atlassian.com/servicedesk/customer/portal/16/CWDSUP-13594

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events