'Lower Case Output' option in Crowd can cause InvalidUserException in JIRA

Situation

  • Crowd
    • Crowd version is 2.5.3
    • User with Upper case username K0000 has been added to Crowd.
    • User with Lower case username k0001 has been added to Crowd.
    • 「Applications」(JIRA) - 「Options」 - 「Lower Case Output」 is turned on.
    • 「Applications」(JIRA) - 「Permissions」 - 「Modyfy User」 is turned on.
  • JIRA
    • JIRA version is 5.2.5.
    • Integrating JIRA with Crowd.
    • 「Crowd Permissions」 - 「Read/Write」 is turned on.
    • 「User Directories」 - 「Synchronise」
    • User with Lower case username k0000 has been added to JIRA.
    • User with Lower case username k0001 has been added to JIRA.
    • k0001 edited successfully the e-mail address.
    • k0000 failed to edit the e-mail address, and InvalidUserExcepton is occured.
      see an attachment Error.png, atlassia-jira.log.

I think Crowd can`t handle
Upper case username when Lower Case Output is turned on.
How do should I solve this problem.
Could you give us any advice?
Error.png

4 answers

1 accepted

1 vote

I believe you're running into an issue reported as CWD-3307 ("Usernames in updates posted to /user should be checked case-insensitively"). This is fixed in Crowd 2.6.3.

Hi Ryosuke,

This is in fact expected behaviour because Crowd will convert the uppercase username to lower case when the "enforce lower case" option is set, meaning Crowd will convert any upper-case and mixed-case information, (usernames etc), to lower case before passing the information to the application.

So enabling this option should only be done when the application is expecting lowercase usernames because it will cause incoherence if it is enabled and you pass content containing uppercase characters as described in this document: https://confluence.atlassian.com/display/CROWD/Enforcing+Lower-Case+Usernames+and+Groups+for+an+Application

All
the best,
John

Thanks John.
Thanks Jeseph.

I try to run Crowd 2.6.3. and I will report the results at a later date.

Thanks Jeseph.

I confirmed that the problem can be solved by upgrade to Crowd 2.6.3.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

182 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you