IQSS / IQSS/dataverse

Convert User: Cannot convert user from remote to local if preserving email address

Open
#3,834 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Account & User Info Feature: API Type: Bug User Role: Sysadmin
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.