[
https://issues.apache.org/jira/browse/AIRAVATA-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aarushi Bisht reassigned AIRAVATA-2788:
---------------------------------------
Assignee: Aarushi Bisht
> SharingServiceDBEventHandler: new user is assigned a username of "firstname
> lastname" instead of username
> ---------------------------------------------------------------------------------------------------------
>
> Key: AIRAVATA-2788
> URL: https://issues.apache.org/jira/browse/AIRAVATA-2788
> Project: Airavata
> Issue Type: Bug
> Reporter: Marcus Christie
> Assignee: Aarushi Bisht
> Priority: Major
>
> TODO:
> *
> org.apache.airavata.sharing.registry.utils.ThriftDataModelConversion#getUser
> sets the sharing user 'userName' to 'firstname lastname', but should instead
> set it to the UserProfile.userId.
> * The sharing user model has firstName and lastName fields so these should be
> used instead.
> * However, SharingServiceDBEventHandler replaces UserProfile.userId with
> airavataInternalUserId so this needs to be fixed too
> * This will need a database migration to fix up these entries.
> Workaround:
> * for now to get the username one has to split the sharing User.userId on the
> "@" sign and take the first bit. Care has to be taken though when the
> username itself contains a "@".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)