airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aarushi Bisht (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (AIRAVATA-2788) SharingServiceDBEventHandler: new user is assigned a username of "firstname lastname" instead of username
Date Tue, 04 Feb 2020 00:03:00 GMT

     [ https://issues.apache.org/jira/browse/AIRAVATA-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aarushi Bisht resolved AIRAVATA-2788.
-------------------------------------
    Fix Version/s: master
       Resolution: Fixed

> 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
>             Fix For: master
>
>
> 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)

Mime
View raw message