Convert User: Cannot convert user from remote to local if preserving email address
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Found while moving a user from Shib to OAuth, see RT 248518
If we use shibtolocal or remotetolocal endpoints, if we set the destination email to be the same as the source it fails with an error like:
{"status":"ERROR","message":"User id 1234 could not be converted from Shibboleth to BuiltIn. Details from Exception: java.lang.Exception: User id 1234 (@joeuser) cannot be converted from remote to BuiltIn because the email address joeuser@my.edu is already in use by user id 1234 (@joeuser). "}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the shibtolocal and remotetolocal endpoints and the user-conversion path that checks email uniqueness. Reproduce the case where the destination email matches the source email, using the error details in this issue as the expected failure. Done means a remote-to-local conversion can preserve that email without reporting it as already in use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100